rpms/php-pecl-mailparse/F-8 php-pecl-mailparse.spec, 1.14, 1.15 sources, 1.7, 1.8
Remi Collet (remi)
fedora-extras-commits at redhat.com
Thu Feb 28 20:29:29 UTC 2008
- Previous message (by thread): rpms/heartbeat/devel IPaddr, NONE, 1.1 sources, 1.8, 1.9 .cvsignore, 1.8, 1.9 heartbeat.spec, 1.20, 1.21 heartbeat-2.1.2-open.patch, 1.1, NONE heartbeat-fedora-chkconfig.patch, 1.2, NONE
- Next message (by thread): rpms/luma/F-7 luma-2.4-extspc.patch, NONE, 1.1 luma.spec, 1.7, 1.8 sources, 1.2, 1.3 luma-2.3-extspc.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: remi
Update of /cvs/extras/rpms/php-pecl-mailparse/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30443
Modified Files:
php-pecl-mailparse.spec sources
Log Message:
update to 2.1.3
Index: php-pecl-mailparse.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-mailparse/F-8/php-pecl-mailparse.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- php-pecl-mailparse.spec 22 Aug 2007 18:40:47 -0000 1.14
+++ php-pecl-mailparse.spec 28 Feb 2008 20:28:51 -0000 1.15
@@ -1,9 +1,12 @@
-%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "failed")
+%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
+%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
+
+%define pecl_name mailparse
Summary: PHP PECL package for parsing and working with email messages
Name: php-pecl-mailparse
-Version: 2.1.1
-Release: 8
+Version: 2.1.3
+Release: 1
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/mailparse
@@ -12,8 +15,12 @@
Requires: php-mbstring
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
-Provides: php-pecl(mailparse) = %{version}-%{release}
-BuildRequires: php, php-devel
+Requires(post): %{__pecl}
+Requires(postun): %{__pecl}
+Provides: php-pecl(%{pecl_name}) = %{version}-%{release}
+BuildRequires: php-devel, php-pear
+# mbstring need for tests
+BuildRequires: php-mbstring
# Required by phpize
BuildRequires: autoconf, automake, libtool
@@ -26,6 +33,10 @@
# We need to create our working directory since the package*.xml files from
# the sources extract straight to it
%setup -q -c
+
+# Convert to version 2.0
+%{__pear} convert package.xml package2.xml
+
# Move back all other sources to the top level working directory
%{__mv} mailparse-%{version}/* .
@@ -50,20 +61,56 @@
;mailparse.def_charset = us-ascii
EOF
+# Install XML package description
+# use 'name' rather than 'pecl_name' to avoid conflict with pear extensions
+%{__mkdir_p} %{buildroot}%{pecl_xmldir}
+%{__install} -m 644 package2.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+
+
+%check
+cp %{php_extdir}/mbstring.so modules
+TEST_PHP_EXECUTABLE=$(which php) php run-tests.php \
+ -n -q -d extension_dir=modules \
+ -d extension=mbstring.so \
+ -d extension=%{pecl_name}.so \
+
%clean
%{__rm} -rf %{buildroot}
+%if 0%{?pecl_install:1}
+%post
+%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+%endif
+
+
+%if 0%{?pecl_uninstall:1}
+%postun
+if [ $1 -eq 0 ] ; then
+ %{pecl_uninstall} %{pecl_name} >/dev/null || :
+fi
+%endif
+
+
%files
%defattr(-,root,root,-)
%doc README try.php
# We prefix the config file with "z-" so that it loads after mbstring.ini
%config(noreplace) %{_sysconfdir}/php.d/z-mailparse.ini
%{php_extdir}/mailparse.so
+%{pecl_xmldir}/%{name}.xml
%changelog
+* Sun Feb 24 2008 Remi Collet <Fedora at FamilleCollet.com> 2.1.3-1
+- update to 2.1.3
+- add post(un) scriplet
+- add check
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 2.1.1-9
+- Autorebuild for GCC 4.3
+
* Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-8
- Rebuild for new BuildID feature.
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-mailparse/F-8/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- sources 19 Jun 2007 11:52:47 -0000 1.7
+++ sources 28 Feb 2008 20:28:51 -0000 1.8
@@ -1 +1 @@
-14c058d79f1f6c01aa53273565bd4a54 mailparse-2.1.1.tgz
+286cd789079763f975164e450ec62f39 mailparse-2.1.3.tgz
- Previous message (by thread): rpms/heartbeat/devel IPaddr, NONE, 1.1 sources, 1.8, 1.9 .cvsignore, 1.8, 1.9 heartbeat.spec, 1.20, 1.21 heartbeat-2.1.2-open.patch, 1.1, NONE heartbeat-fedora-chkconfig.patch, 1.2, NONE
- Next message (by thread): rpms/luma/F-7 luma-2.4-extspc.patch, NONE, 1.1 luma.spec, 1.7, 1.8 sources, 1.2, 1.3 luma-2.3-extspc.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list