From ca9dfb2c22fcf7c161699be72144a629389ea081 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 17 May 2022 22:16:31 -0400 Subject: improve radicale.spec deps exact versions --- 1-build-srpms.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '1-build-srpms.sh') diff --git a/1-build-srpms.sh b/1-build-srpms.sh index 994835c..6b23142 100755 --- a/1-build-srpms.sh +++ b/1-build-srpms.sh @@ -9,6 +9,7 @@ # History: # Improve: # Reference: +# https://unix.stackexchange.com/questions/675833/how-can-i-duplicate-a-line-and-search-and-replace-on-the-duplicate-with-sed/675837#675837 # Dependencies: # git # Run this on CentOS 7 @@ -93,12 +94,13 @@ git clone https://src.fedoraproject.org/rpms/radicale radicale -e '/^\w*Requires(\(\w*\))?:/{s/policycoreutils-python-utils/policycoreutils-python/g;};' \ -e 's/^(Suggests|Recommends):/Requires:/;' \ -e '/%define.*radicale_major/a# stackrpms, 5\' \ - -e '%define pyver python3\' \ - -e '%if 0%{?centos}\' \ - -e '%define pyver python36\' \ - -e '%endif' \ + -e '%define pyver python3\' \ + -e '%if 0%{?centos}\' \ + -e '%define pyver python36\' \ + -e '%endif' \ -e '/^%autosetup/s/$/ -p1/;' \ - -e '/Patch0:/aPatch1: %{name}-proxy-ldap-auth-fn.js.patch' ; + -e '/Patch0:/aPatch1: %{name}-proxy-ldap-auth-fn.js.patch' \ + -e '/BuildRequires:.*(dateutil|vobject)/{p;s/^BuildR/R/;}' cp -pf "${SCRIPTDIR}/"*.patch ~/rpmbuild/SOURCES/ cp -pf * ~/rpmbuild/SOURCES/ rpmbuild -bs *.spec ; -- cgit