SPECS: php-pecl-imagick.spec - package examples into %{_examplesdir}; rel 2
glen
glen at pld-linux.org
Tue Apr 21 10:06:03 CEST 2009
Author: glen Date: Tue Apr 21 08:06:03 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- package examples into %{_examplesdir}; rel 2
---- Files affected:
SPECS:
php-pecl-imagick.spec (1.43 -> 1.44)
---- Diffs:
================================================================
Index: SPECS/php-pecl-imagick.spec
diff -u SPECS/php-pecl-imagick.spec:1.43 SPECS/php-pecl-imagick.spec:1.44
--- SPECS/php-pecl-imagick.spec:1.43 Sat Feb 7 17:54:02 2009
+++ SPECS/php-pecl-imagick.spec Tue Apr 21 10:05:58 2009
@@ -5,7 +5,7 @@
Summary(pl.UTF-8): PHP-owy wrapper do biblioteki Image Magick
Name: php-pecl-%{_modname}
Version: 2.2.2
-Release: 1
+Release: 2
License: PHP 2.02
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
@@ -44,9 +44,9 @@
%prep
%setup -q -c
+mv %{_modname}-%{version}/* .
%build
-cd %{_modname}-%{version}
phpize
%configure
@@ -55,13 +55,14 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+install modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
; Enable %{_modname} extension module
extension=%{_modname}.so
EOF
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -79,9 +80,9 @@
%files
%defattr(644,root,root,755)
-%doc %{_modname}-%{version}/examples
%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%{_examplesdir}/%{name}-%{version}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -89,6 +90,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.44 2009/04/21 08:05:58 glen
+- package examples into %{_examplesdir}; rel 2
+
Revision 1.43 2009/02/07 16:54:02 adamg
- updated to 2.2.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pecl-imagick.spec?r1=1.43&r2=1.44&f=u
More information about the pld-cvs-commit
mailing list