SPECS: php-pecl-crack.spec - updated to 0.3 - switch to conf.d
adamg
adamg at pld-linux.org
Mon Sep 5 15:33:05 CEST 2005
Author: adamg Date: Mon Sep 5 13:33:05 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 0.3
- switch to conf.d
---- Files affected:
SPECS:
php-pecl-crack.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/php-pecl-crack.spec
diff -u SPECS/php-pecl-crack.spec:1.8 SPECS/php-pecl-crack.spec:1.9
--- SPECS/php-pecl-crack.spec:1.8 Sun Mar 20 21:55:04 2005
+++ SPECS/php-pecl-crack.spec Mon Sep 5 15:32:58 2005
@@ -1,29 +1,29 @@
# $Revision$, $Date$
%define _modname crack
-%define _status stable
+%define _status beta
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: %{_modname} - checks if password is vulnerable to dictionary attacks
Summary(pl): %{_modname} - sprawdzanie czy hasło jest podatne na ataki słownikowe
Name: php-pecl-%{_modname}
-Version: 0.2
+Version: 0.3
Release: 1
-License: Artistic
+License: PHP
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
-# Source0-md5: 0fbce1787086f21683f0ba5115902223
+# Source0-md5: 43a3dc3e4f2d16bf1e30ccea0d384183
Patch0: %{name}-m4_fixes.patch
URL: http://pecl.php.net/package/crack/
BuildRequires: cracklib-devel
BuildRequires: libtool
BuildRequires: php-devel >= 3:5.0.0
-Requires: php-common >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.230
+%requires_eq_to php-common php-devel
Obsoletes: php-crack
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
This package provides an interface to the cracklib (libcrack)
libraries that come standard on most unix-like distributions. This
@@ -42,7 +42,7 @@
%prep
%setup -q -c
-%patch0 -p1
+%patch0 -p0
%build
cd %{_modname}-%{version}
@@ -52,24 +52,33 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%postun
+if [ "$1" = 0 ]; then
+ [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+ [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
fi
%files
%defattr(644,root,root,755)
%doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_modname}.ini
%attr(755,root,root) %{extensionsdir}/%{_modname}.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -78,6 +87,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2005/09/05 13:32:58 adamg
+- updated to 0.3
+- switch to conf.d
+
Revision 1.8 2005/03/20 20:55:04 adamg
- typo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pecl-crack.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list