[packages/php-pecl-fdf] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:21:44 CEST 2013
commit 5acc6fbeb133c25bac0b81799d4ce57728eebe64
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:37 2013 +0300
support building for multiple php versions
php-pecl-fdf.spec | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/php-pecl-fdf.spec b/php-pecl-fdf.spec
index 7a0867e..6da9b6d 100644
--- a/php-pecl-fdf.spec
+++ b/php-pecl-fdf.spec
@@ -1,42 +1,43 @@
-%define _modname fdf
-%define _status beta
-Summary: %{_modname} - PDF Form Data Format functions
-Summary(pl.UTF-8): %{_modname} - funkcje do obsługi formularzy PDF (PDF Form Data Format)
-Name: php-pecl-%{_modname}
-Version: 5.0
+%define php_name php%{?php_suffix}
+%define modname fdf
+%define status beta
%define subver rc1
%define svnver 297330
+Summary: %{modname} - PDF Form Data Format functions
+Summary(pl.UTF-8): %{modname} - funkcje do obsługi formularzy PDF (PDF Form Data Format)
+Name: %{php_name}-pecl-%{modname}
+Version: 5.0
Release: 0.%{subver}.1
License: PHP 3.01
Group: Development/Languages/PHP
# svn checkout http://svn.php.net/repository/pecl/fdf/trunk fdf
-Source0: %{_modname}-%{version}%{subver}-%{svnver}.tgz
+Source0: %{modname}-%{version}%{subver}-%{svnver}.tgz
# Source0-md5: d47e547e7247cfd260ec611c44fc8184
# not yet
-#Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
-Patch0: %{name}-tsrm.patch
-Patch1: %{name}-update.patch
+#Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
+Patch0: php-pecl-%{modname}-tsrm.patch
+Patch1: php-pecl-%{modname}-update.patch
# not yet
-#URL: http://pecl.php.net/package/Fdf/
URL: http://pecl.php.net/
+#URL: http://pecl.php.net/package/Fdf/
+BuildRequires: %{php_name}-devel >= 3:5.0.0
BuildRequires: fdftk-devel >= 5
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: rpmbuild(macros) >= 1.650
%{?requires_php_extension}
-Requires: php-common >= 4:5.0.4
+Requires: php(core) >= 5.0.4
Obsoletes: php-fdf
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
FDF module provides functions for PDF Forms Data Format handling.
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
%description -l pl.UTF-8
Moduł FDF udostępnia funkcje do obsługi formularzy PDF (Forms Data
Format).
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
%prep
%setup -q -c
@@ -57,9 +58,9 @@ install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
%{__make} -C fdf install \
INSTALL_ROOT=$RPM_BUILD_ROOT \
EXTENSION_DIR=%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
EOF
%clean
@@ -76,5 +77,5 @@ fi
%files
%defattr(644,root,root,755)
%doc fdf/CREDITS
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-fdf.git/commitdiff/5acc6fbeb133c25bac0b81799d4ce57728eebe64
More information about the pld-cvs-commit
mailing list