SPECS: php-magickwand.spec - added ini file

emes emes at pld-linux.org
Fri Jun 15 00:40:51 CEST 2007


Author: emes                         Date: Thu Jun 14 22:40:51 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added ini file

---- Files affected:
SPECS:
   php-magickwand.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/php-magickwand.spec
diff -u SPECS/php-magickwand.spec:1.3 SPECS/php-magickwand.spec:1.4
--- SPECS/php-magickwand.spec:1.3	Fri Jun 15 00:19:12 2007
+++ SPECS/php-magickwand.spec	Fri Jun 15 00:40:46 2007
@@ -1,10 +1,11 @@
 # $Revision$, $Date$
 %define     _pkgname MagickWandForPHP
+%define     _modname magickwand
 %define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
 Summary:	ImageMagick MagickWand API bindings for PHP
-Name:		php-magickwand
+Name:		php-%{_modname}
 Version:	1.0.4
-Release:	0.2
+Release:	0.3
 License:	Apache-like
 Group:		Development/Languages/PHP
 Source0:	http://www.magickwand.org/download/php/%{_pkgname}-%{version}.tar.bz2
@@ -30,8 +31,13 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
-install modules/magickwand.so $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{extensionsdir},%{php_sysconfdir}/conf.d}
+install modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -39,6 +45,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README LICENSE ChangeLog AUTHOR
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/magickwand.ini
 %attr(755,root,root) %{extensionsdir}/magickwand.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -47,6 +54,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2007/06/14 22:40:46  emes
+- added ini file
+
 Revision 1.3  2007/06/14 22:19:12  emes
 - fixed Reqs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-magickwand.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list