rpms/php-pecl-mailparse/F-7 php-pecl-mailparse.spec, 1.12, 1.13 sources, 1.7, 1.8

Remi Collet (remi) fedora-extras-commits at redhat.com
Thu Feb 28 20:52:14 UTC 2008


Author: remi

Update of /cvs/extras/rpms/php-pecl-mailparse/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31074

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-7/php-pecl-mailparse.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- php-pecl-mailparse.spec	19 Jun 2007 12:55:04 -0000	1.12
+++ php-pecl-mailparse.spec	28 Feb 2008 20:51:38 -0000	1.13
@@ -1,10 +1,13 @@
-%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: 6%{?dist}
-License: The PHP License
+Version: 2.1.3
+Release: 1%{?dist}
+License: PHP
 Group: Development/Languages
 URL: http://pecl.php.net/package/mailparse
 Source0: http://pecl.php.net/get/mailparse-%{version}.tgz
@@ -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,63 @@
 ;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.
+
+* Mon Aug  6 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-7
+- Update License field.
+- Remove dist tag, since the package will seldom change.
+
 * Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-6
 - Fix package requirements by adding build-time zend-abi version.
 - Clean up spec to conform to current PHP packaging rules.


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-mailparse/F-7/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- sources	19 Jun 2007 12:55:04 -0000	1.7
+++ sources	28 Feb 2008 20:51:38 -0000	1.8
@@ -1 +1 @@
-14c058d79f1f6c01aa53273565bd4a54  mailparse-2.1.1.tgz
+286cd789079763f975164e450ec62f39  mailparse-2.1.3.tgz




More information about the fedora-extras-commits mailing list