diff options
author | B. Stack <bgstack15@gmail.com> | 2022-05-17 22:16:31 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-05-17 22:16:31 -0400 |
commit | ca9dfb2c22fcf7c161699be72144a629389ea081 (patch) | |
tree | 843ce1be30bf7b52f36853e9afeb26629f161426 | |
parent | initial commit (diff) | |
download | build-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.tar.gz build-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.tar.bz2 build-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.zip |
improve radicale.spec deps exact versions
-rwxr-xr-x | 1-build-srpms.sh | 12 |
1 files changed, 7 insertions, 5 deletions
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 ; |