]> git.pld-linux.org Git - packages/php4-pecl-http.git/commitdiff
- use %php4_webserver_restart macro
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Jan 2008 02:44:40 +0000 (02:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php4-pecl-http.spec -> 1.23

php4-pecl-http.spec

index eb74495402a08d015d18d19a083a555291dc7701..d1d8925feaf68b2c2eb8d572f372d64b4e10d9a5 100644 (file)
@@ -3,7 +3,6 @@
 %define                _status         stable
 %define                _sysconfdir     /etc/php4
 %define                extensionsdir   %(php-config --extension-dir 2>/dev/null)
-
 Summary:       %{_modname} - extended HTTP support
 Summary(pl.UTF-8):     %{_modname} - rozszerzona obsługa protokołu HTTP
 Name:          php4-pecl-%{_modname}
@@ -15,9 +14,9 @@ Source0:      http://pecl.php.net/get/%{_fmodname}-%{version}.tgz
 # Source0-md5: 96c16435936eab288d5fdd5750e3f863
 URL:           http://pecl.php.net/package/pecl_http/
 BuildRequires: php4-devel >= 3:4.3.0
-BuildRequires: rpmbuild(macros) >= 1.322
+BuildRequires: rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires:      %{_sysconfdir}/conf.d
+Requires:      php4-common >= 3:4.4.0-3
 Obsoletes:     php-pear-%{_modname}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -103,13 +102,11 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+%php4_webserver_restart
 
 %postun
 if [ "$1" = 0 ]; then
-       [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+       %php4_webserver_restart
 fi
 
 %files
This page took 0.094723 seconds and 4 git commands to generate.