|
|
907741c |
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
|
|
|
907741c |
%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
|
|
|
907741c |
|
|
|
907741c |
%define pecl_name mailparse
|
|
cvsextras |
61e73db |
|
|
|
0e158a1 |
Summary: PHP PECL package for parsing and working with email messages
|
|
cvsextras |
61e73db |
Name: php-pecl-mailparse
|
|
|
f9d9a8a |
Version: 2.1.4
|
|
|
fc503ee |
Release: 1%{?dist}
|
|
|
44384fe |
License: PHP
|
|
cvsextras |
61e73db |
Group: Development/Languages
|
|
cvsextras |
61e73db |
URL: http://pecl.php.net/package/mailparse
|
|
cvsextras |
61e73db |
Source0: http://pecl.php.net/get/mailparse-%{version}.tgz
|
|
cvsextras |
61e73db |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
0e158a1 |
Requires: php-mbstring
|
|
|
0e158a1 |
Requires: php(zend-abi) = %{php_zend_api}
|
|
|
0e158a1 |
Requires: php(api) = %{php_core_api}
|
|
|
907741c |
Requires(post): %{__pecl}
|
|
|
907741c |
Requires(postun): %{__pecl}
|
|
|
907741c |
Provides: php-pecl(%{pecl_name}) = %{version}-%{release}
|
|
|
907741c |
BuildRequires: php-devel, php-pear
|
|
|
907741c |
# mbstring need for tests
|
|
|
907741c |
BuildRequires: php-mbstring
|
|
cvsextras |
61e73db |
# Required by phpize
|
|
|
6c6375a |
BuildRequires: autoconf, automake, libtool
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
%description
|
|
cvsextras |
61e73db |
Mailparse is an extension for parsing and working with email messages.
|
|
cvsextras |
61e73db |
It can deal with rfc822 and rfc2045 (MIME) compliant messages.
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
|
|
|
831fe84 |
%prep
|
|
|
0e158a1 |
# We need to create our working directory since the package*.xml files from
|
|
|
0e158a1 |
# the sources extract straight to it
|
|
|
0e158a1 |
%setup -q -c
|
|
|
907741c |
|
|
|
0e158a1 |
# Move back all other sources to the top level working directory
|
|
|
0e158a1 |
%{__mv} mailparse-%{version}/* .
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
%build
|
|
cvsextras |
61e73db |
phpize
|
|
cvsextras |
61e73db |
%configure
|
|
cvsextras |
2a26934 |
%{__make} %{?_smp_mflags}
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
%install
|
|
cvsextras |
61e73db |
%{__rm} -rf %{buildroot}
|
|
cvsextras |
61e73db |
%{__make} install INSTALL_ROOT=%{buildroot}
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
# Drop in the bit of configuration
|
|
cvsextras |
61e73db |
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
|
|
0c24211 |
%{__cat} > %{buildroot}%{_sysconfdir}/php.d/z-mailparse.ini << 'EOF'
|
|
cvsextras |
61e73db |
; Enable mailparse extension module
|
|
|
0e158a1 |
extension = mailparse.so
|
|
cvsextras |
2a26934 |
|
|
cvsextras |
2a26934 |
; Set the default charset
|
|
cvsextras |
2a26934 |
;mailparse.def_charset = us-ascii
|
|
cvsextras |
61e73db |
EOF
|
|
cvsextras |
61e73db |
|
|
|
907741c |
# Install XML package description
|
|
|
907741c |
# use 'name' rather than 'pecl_name' to avoid conflict with pear extensions
|
|
|
907741c |
%{__mkdir_p} %{buildroot}%{pecl_xmldir}
|
|
|
907741c |
%{__install} -m 644 package2.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
|
|
|
907741c |
|
|
|
907741c |
|
|
|
907741c |
%check
|
|
|
907741c |
cp %{php_extdir}/mbstring.so modules
|
|
|
907741c |
TEST_PHP_EXECUTABLE=$(which php) php run-tests.php \
|
|
|
907741c |
-n -q -d extension_dir=modules \
|
|
|
907741c |
-d extension=mbstring.so \
|
|
|
907741c |
-d extension=%{pecl_name}.so \
|
|
|
907741c |
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
%clean
|
|
cvsextras |
61e73db |
%{__rm} -rf %{buildroot}
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
|
|
|
907741c |
%if 0%{?pecl_install:1}
|
|
|
907741c |
%post
|
|
|
907741c |
%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
|
|
|
907741c |
%endif
|
|
|
907741c |
|
|
|
907741c |
|
|
|
907741c |
%if 0%{?pecl_uninstall:1}
|
|
|
907741c |
%postun
|
|
|
907741c |
if [ $1 -eq 0 ] ; then
|
|
|
907741c |
%{pecl_uninstall} %{pecl_name} >/dev/null || :
|
|
|
907741c |
fi
|
|
|
907741c |
%endif
|
|
|
907741c |
|
|
|
907741c |
|
|
cvsextras |
61e73db |
%files
|
|
|
0e158a1 |
%defattr(-,root,root,-)
|
|
cvsextras |
61e73db |
%doc README try.php
|
|
|
0e158a1 |
# We prefix the config file with "z-" so that it loads after mbstring.ini
|
|
|
0c24211 |
%config(noreplace) %{_sysconfdir}/php.d/z-mailparse.ini
|
|
cvsextras |
61e73db |
%{php_extdir}/mailparse.so
|
|
|
907741c |
%{pecl_xmldir}/%{name}.xml
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
%changelog
|
|
|
f9d9a8a |
* Mon Apr 14 2008 Remi Collet <Fedora@FamilleCollet.com> 2.1.4-1
|
|
|
f9d9a8a |
- update to 2.1.4 (bugfix)
|
|
|
f9d9a8a |
- package2.xml is now provided
|
|
|
f9d9a8a |
|
|
|
907741c |
* Sun Feb 24 2008 Remi Collet <Fedora@FamilleCollet.com> 2.1.3-1
|
|
|
907741c |
- update to 2.1.3
|
|
|
907741c |
- add post(un) scriplet
|
|
|
907741c |
- add check
|
|
|
907741c |
|
|
|
907741c |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.1.1-9
|
|
|
907741c |
- Autorebuild for GCC 4.3
|
|
|
907741c |
|
|
|
47767ac |
* Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-8
|
|
|
47767ac |
- Rebuild for new BuildID feature.
|
|
|
47767ac |
|
|
|
44384fe |
* Mon Aug 6 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-7
|
|
|
44384fe |
- Update License field.
|
|
|
44384fe |
- Remove dist tag, since the package will seldom change.
|
|
|
44384fe |
|
|
|
0e158a1 |
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.1.1-6
|
|
|
0e158a1 |
- Fix package requirements by adding build-time zend-abi version.
|
|
|
0e158a1 |
- Clean up spec to conform to current PHP packaging rules.
|
|
|
0e158a1 |
- No longer bundle part of mbstring (mbfl), at last! (makes spec F7+ specific)
|
|
|
0e158a1 |
|
|
|
6f4a54c |
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 2.1.1-5
|
|
|
6f4a54c |
- FC6 rebuild.
|
|
|
6f4a54c |
- Add php-api requirement and php-pecl(mailparse) provides.
|
|
|
6f4a54c |
|
|
|
6c6375a |
* Mon Mar 6 2006 Matthias Saou <http://freshrpms.net/> 2.1.1-4
|
|
|
6c6375a |
- Add missing php-mbstring requirement (#197410).
|
|
|
6c6375a |
|
|
|
8cf648f |
* Mon Mar 6 2006 Matthias Saou <http://freshrpms.net/> 2.1.1-3
|
|
|
8cf648f |
- FC5 rebuild.
|
|
|
8cf648f |
|
|
|
4e2ae12 |
* Thu Feb 9 2006 Matthias Saou <http://freshrpms.net/> 2.1.1-2
|
|
|
4e2ae12 |
- Rebuild for new gcc/glibc and FC5's PHP 5.1.
|
|
|
4e2ae12 |
|
|
|
0c24211 |
* Wed Jul 20 2005 Matthias Saou <http://freshrpms.net/> 2.1.1-1
|
|
|
0c24211 |
- Update to 2.1.1.
|
|
|
0c24211 |
- Update mbfl tarball to 4.4.0 PHP sources.
|
|
|
0c24211 |
- Rename .ini file to "z-<name>" to have it load after mbstring.so.
|
|
|
0c24211 |
|
|
|
5cd48a6 |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
5cd48a6 |
- rebuilt
|
|
|
5cd48a6 |
|
|
|
0356ee1 |
* Wed Feb 16 2005 Matthias Saou <http://freshrpms.net/> 2.1-1
|
|
|
0356ee1 |
- Update to 2.1.
|
|
|
0356ee1 |
|
|
|
96854f5 |
* Thu Jan 13 2005 Matthias Saou <http://freshrpms.net/> 2.0b-5
|
|
|
96854f5 |
- Bump release.
|
|
|
96854f5 |
|
|
cvsextras |
2a26934 |
* Tue Jul 27 2004 Matthias Saou <http://freshrpms.net/> 2.0b-4
|
|
cvsextras |
2a26934 |
- Update included mbfl source to 4.3.8 as the current 4.3.4 doesn't work
|
|
cvsextras |
2a26934 |
anymore.
|
|
cvsextras |
2a26934 |
|
|
cvsextras |
2a26934 |
* Fri May 21 2004 Matthias Saou <http://freshrpms.net/> 2.0b-3
|
|
cvsextras |
2a26934 |
- Rebuild for Fedora Core 2.
|
|
cvsextras |
2a26934 |
- No need for a strict dependency on this package, it works fine with
|
|
cvsextras |
2a26934 |
php 4.3.6 when compiled against 4.3.4.
|
|
cvsextras |
2a26934 |
|
|
cvsextras |
61e73db |
* Fri May 7 2004 Matthias Saou <http://freshrpms.net/> 2.0b-2
|
|
cvsextras |
61e73db |
- Added php.d entry to auto-load the module with recent php packages.
|
|
cvsextras |
61e73db |
- Added more macros to the spec file.
|
|
cvsextras |
61e73db |
|
|
cvsextras |
61e73db |
* Mon Apr 26 2004 Matthias Saou <http://freshrpms.net/> 2.0b-1
|
|
cvsextras |
61e73db |
- Initial RPM release.
|
|
cvsextras |
61e73db |
- Included part of php-4.3.4's mbfl includes, ugly.
|
|
cvsextras |
61e73db |
|