packages: php-pecl-ps/php-pecl-ps.spec - unify php-pecl package; rel 3
glen
glen at pld-linux.org
Wed Dec 2 11:02:05 CET 2009
Author: glen Date: Wed Dec 2 10:02:05 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- unify php-pecl package; rel 3
---- Files affected:
packages/php-pecl-ps:
php-pecl-ps.spec (1.16 -> 1.17)
---- Diffs:
================================================================
Index: packages/php-pecl-ps/php-pecl-ps.spec
diff -u packages/php-pecl-ps/php-pecl-ps.spec:1.16 packages/php-pecl-ps/php-pecl-ps.spec:1.17
--- packages/php-pecl-ps/php-pecl-ps.spec:1.16 Sun Apr 26 19:17:17 2009
+++ packages/php-pecl-ps/php-pecl-ps.spec Wed Dec 2 11:01:59 2009
@@ -1,14 +1,14 @@
# $Revision$, $Date$
-%define _modname ps
-%define _status stable
-Summary: %{_modname} - an extension to create PostScript files
-Summary(pl.UTF-8): %{_modname} - rozszerzenie do tworzenia plików PostScript
-Name: php-pecl-%{_modname}
+%define modname ps
+%define status stable
+Summary: %{modname} - an extension to create PostScript files
+Summary(pl.UTF-8): %{modname} - rozszerzenie do tworzenia plików PostScript
+Name: php-pecl-%{modname}
Version: 1.3.6
-Release: 2
+Release: 3
License: PHP 3.01
Group: Development/Languages/PHP
-Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 256c5cc3877b03b67963896b84fef306
URL: http://pecl.php.net/package/ps/
BuildRequires: php-devel >= 3:5.0.0
@@ -16,40 +16,42 @@
BuildRequires: pslib-devel
%{?requires_php_extension}
Requires: php-common >= 4:5.0.4
-Obsoletes: php-pear-%{_modname}
+Obsoletes: php-pear-%{modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ps is an extension similar to the pdf extension but for creating
PostScript files. Its API is modelled after the pdf extension.
-In PECL status of this package is: %{_status}.
+In PECL status of this package is: %{status}.
%description -l pl.UTF-8
ps jest rozszerzeniem podobnym do pdf ale służącym do tworzenia plików
PostScript. API jest wzorowane na rozszerzeniu pdf.
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
%prep
%setup -q -c
+mv %{modname}-%{version}/* .
%build
-cd %{_modname}-%{version}
phpize
%configure
%{__make}
%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}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+install -p 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
@@ -63,9 +65,10 @@
%files
%defattr(644,root,root,755)
-%doc %{_modname}-%{version}/{CREDITS,examples}
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%doc CREDITS
+%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
@@ -73,6 +76,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.17 2009/12/02 10:01:59 glen
+- unify php-pecl package; rel 3
+
Revision 1.16 2009/04/26 17:17:17 adamg
- license fixes Andrzej Mateja <amateja () pimpek.one.pl>
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-ps/php-pecl-ps.spec?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list