diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-10-15 06:34:03 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-10-15 06:34:03 +0200 |
commit | 7d4f43121d6074e9a4cf7d73ff6b9ef0eb41430d (patch) | |
tree | 2a16f74a1f8b3822ed1758763aa1cf35e4cc5fc4 /pearup | |
parent | 50d39af3aa77da682e7ce990a427505efabfb1a6 (diff) |
php-pecl-uri-template: 1.0
Diffstat (limited to 'pearup')
-rwxr-xr-x | pearup | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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/>=/< /' \ |