summaryrefslogtreecommitdiffstats
path: root/pearup
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-10-15 06:34:03 +0200
committerRemi Collet <fedora@famillecollet.com>2013-10-15 06:34:03 +0200
commit7d4f43121d6074e9a4cf7d73ff6b9ef0eb41430d (patch)
tree2a16f74a1f8b3822ed1758763aa1cf35e4cc5fc4 /pearup
parent50d39af3aa77da682e7ce990a427505efabfb1a6 (diff)
php-pecl-uri-template: 1.0
Diffstat (limited to 'pearup')
-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/>=/< /' \