aboutsummaryrefslogtreecommitdiff
path: root/1-build-srpms.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-05-17 22:16:31 -0400
committerB. Stack <bgstack15@gmail.com>2022-05-17 22:16:31 -0400
commitca9dfb2c22fcf7c161699be72144a629389ea081 (patch)
tree843ce1be30bf7b52f36853e9afeb26629f161426 /1-build-srpms.sh
parentinitial commit (diff)
downloadbuild-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.tar.gz
build-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.tar.bz2
build-radicale-el7-ca9dfb2c22fcf7c161699be72144a629389ea081.zip
improve radicale.spec deps exact versions
Diffstat (limited to '1-build-srpms.sh')
-rwxr-xr-x1-build-srpms.sh12
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 ;
bgstack15