diff --git a/SOURCES/bdsync-0.10.2-19083d0.tar.gz b/SOURCES/bdsync-0.10.2-19083d0.tar.gz new file mode 100644 index 0000000..9c819bd Binary files /dev/null and b/SOURCES/bdsync-0.10.2-19083d0.tar.gz differ diff --git a/SPECS/bdsync.spec b/SPECS/bdsync.spec new file mode 100644 index 0000000..ae66177 --- /dev/null +++ b/SPECS/bdsync.spec @@ -0,0 +1,71 @@ +%global gitcommit 19083d0 + +Name: bdsync +Summary: Kind of rsync for block devices +Version: 0.10.2 +Release: 1_git%{gitcommit}%{?dist} +Group: Applications/Internet +# git clone https://github.com/TargetHolding/bdsync.git +# cd bdsync +# COMMIT=bf31b1d8 ; git archive --format=tar --prefix=bdsync-0.8-$COMMIT/ $COMMIT | gzip > ../bdsync-0.8-$COMMIT.tar.gz +Source: bdsync-%{version}-%{gitcommit}.tar.gz +License: GPL +BuildRequires: gcc +BuildRequires: openssl-devel +#BuildRequires: pandoc +Requires: openssl + + + +%description +bdsync is a kind of rsync for block devices. Bdsync lacks most of of the rsync +functionality and options, but rsync lacks good block device synchronization. + + +%prep +%setup -q -n bdsync-%{version}-%{gitcommit} +sed 's/all:\ bdsync\ bdsync\.1/all:\ bdsync/' -i Makefile + + +%build +make CFLAGS="%{optflags}" + + +%check +make test + + +%install +rm -rf $RPM_BUILD_ROOT/ +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +#mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 +cp %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name} +#cp %{name}.1 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1 + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%doc README.md +%attr(755,root,root) %{_bindir}/%{name} +#%{_mandir}/man1/%{name}.1* + + +%postun + + +%changelog +* Tue Jan 20 2015 Rolf Fokkens +- rebased on github 0.8 + +* Thu Oct 02 2014 Rolf Fokkens +- rebased on github 0.7 + +* Thu Jun 28 2012 Rolf Fokkens +- bump release (0.3) + +* Sun Jun 24 2012 Rolf Fokkens +- initial package (0.1)