summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpearup5
1 files changed, 4 insertions, 1 deletions
diff --git a/pearup b/pearup
index 3af5231..e256351 100755
--- a/pearup
+++ b/pearup
@@ -8,8 +8,11 @@ if [ $# -lt 2 ]; then
exit 1
fi
+if ! grep -q pecl_name *spec; then
+sed -e '/^Release:/s/[0-9].*$/1%{?dist}/' \
+ -i *spec
+fi
sed -e "/^Version:/s/$1/$2/" \
- -e '/^Release:/s/[0-9].*$/1%{?dist}/' \
-e "s/%changelog/%changelog\n* $rpmdate $vendor - $2-1\n- Update to $2\n/" \
-e 's/\$RPM_BUILD_ROOT/%{buildroot}/' \
-e '/Conflicts:/s/>=/< /' \