aboutsummaryrefslogtreecommitdiff
path: root/1-build-srpms.sh
diff options
context:
space:
mode:
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