]> git.pld-linux.org Git - packages/rsync-bpc.git/commitdiff
- rebuild ac, sync a bit with rsync.spec auto/th/rsync-bpc-3.1.2.1-1
authorAdam Gołębiowski <adamg@pld-linux.org>
Sat, 22 Feb 2020 18:26:32 +0000 (19:26 +0100)
committerAdam Gołębiowski <adamg@pld-linux.org>
Sat, 22 Feb 2020 18:26:32 +0000 (19:26 +0100)
rsync-bpc.spec

index 8ea9db5f58411bd60edfbada80487f3a09d9b218..e88cc72602cb3391a4523560745d218d0ed00eec 100644 (file)
@@ -1,3 +1,6 @@
+# Conditional build:
+%bcond_with    tests   # perform "make test"
+#
 Summary:       A customized version of rsync that is used as part of BackupPC
 Name:          rsync-bpc
 Version:       3.1.2.1
@@ -9,7 +12,10 @@ Source0:      https://github.com/backuppc/rsync-bpc/releases/download/%{version}/%{na
 URL:           https://github.com/backuppc/rsync-bpc
 BuildRequires: acl-devel
 BuildRequires: attr-devel
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
 BuildRequires: popt-devel
+BuildRequires: rpmbuild(macros) >= 1.318
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,9 +36,21 @@ Rsync-bpc serves no purpose outside of BackupPC.
 %setup -q
 
 %build
-%configure
+cp -f /usr/share/automake/config.sub .
+%{__autoheader}
+%{__autoconf}
+%configure \
+       LIBS="-lcrypto" \
+       %{?with_rsh:--with-rsh=rsh} \
+       --enable-ipv6 \
+       --enable-acl-support \
+       --enable-xattr-support \
+       --disable-debug
+%{__make} proto
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
This page took 0.071173 seconds and 4 git commands to generate.