From e3e3c8d85e9f63bd62a350522d88fda6c3d4effa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Sat, 22 Feb 2020 19:26:32 +0100 Subject: [PATCH] - rebuild ac, sync a bit with rsync.spec --- rsync-bpc.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/rsync-bpc.spec b/rsync-bpc.spec index 8ea9db5..e88cc72 100644 --- a/rsync-bpc.spec +++ b/rsync-bpc.spec @@ -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 \ -- 2.44.0