bdsync package creation (with source)
Signed-off-by: fpdpbuilder_pel7ppc64bebuilder0 <fpdpbuilder@powerel.org>master
parent
44a3195cc9
commit
1f4929d79d
Binary file not shown.
|
@ -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 <rolf.fokkens@target-holding.nl>
|
||||||
|
- rebased on github 0.8
|
||||||
|
|
||||||
|
* Thu Oct 02 2014 Rolf Fokkens <rolf.fokkens@target-holding.nl>
|
||||||
|
- rebased on github 0.7
|
||||||
|
|
||||||
|
* Thu Jun 28 2012 Rolf Fokkens <rolf@rolffokkens.nl>
|
||||||
|
- bump release (0.3)
|
||||||
|
|
||||||
|
* Sun Jun 24 2012 Rolf Fokkens <rolf@rolffokkens.nl>
|
||||||
|
- initial package (0.1)
|
Loading…
Reference in New Issue