Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-backports-src > by-pkgid > ad604b08d19d6d4143687726606eda6f > files > 3

php-mailparse-3.1.0-2.mga7.src.rpm

%define modname mailparse
%define soname %{modname}.so
%define inifile A12_%{modname}.ini

Summary:	Email message manipulation for PHP
Name:		php-%{modname}
Version:	3.1.0
Release:	%mkrel 2
License:	PHP License
Group:		Development/PHP
URL:		http://pecl.php.net/package/mailparse
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Source1:	%{modname}.ini
#Patch1:		mailparse-2.1.5-libmbfl_is_external.diff
Requires:	php >= 3:7.4.0
Requires:	php-common = 3:7.4
Requires:	php-mbstring
BuildRequires:	php-devel >= 3:7.3.0
BuildRequires:	mbfl-devel
Epoch:		1

%description
Mailparse is an extension for parsing and working with email messages. It can
deal with rfc822 and rfc2045 (MIME) compliant messages.

%prep

%setup -q -n %{modname}-%{version}
%autopatch -p0

# fix strange attribs
find tests -type f|xargs chmod 644

ln -s %{_usrsrc}/php-devel/ext .

cp %{SOURCE1} %{inifile}

%build
%serverbuild

phpize
%configure2_5x \
    --enable-%{modname}=shared,%{_prefix}

%make_build
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}
install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

%files
%doc tests CREDITS try.php
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}




%changelog
* Thu Jun 18 2020 mokraemer <mokraemer> 1:3.1.0-2.mga7
+ Revision: 1595950
- Fix dependency
- backport for php 7.4
- backport php 7.4

* Wed Apr 22 2020 mokraemer <mokraemer> 1:3.1.0-1.mga8
+ Revision: 1570982
- new version 3.1.0

* Tue Feb 18 2020 umeabot <umeabot> 1:3.0.4-2.mga8
+ Revision: 1541138
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sat Dec 21 2019 mokraemer <mokraemer> 1:3.0.4-1.mga8
+ Revision: 1469325
- new version 3.0.4

* Fri Nov 29 2019 mokraemer <mokraemer> 1:3.0.3-3.mga8
+ Revision: 1463530
+ rebuild (emptylog)

* Mon Oct 21 2019 mokraemer <mokraemer> 1:3.0.3-2.mga8
+ Revision: 1454922
- removed dirname

* Wed Mar 20 2019 mokraemer <mokraemer> 1:3.0.3-1.mga7
+ Revision: 1379232
- new version 3.0.3
- reimported mailparse
- removed package, since not compatible with php 7.3
- rebuild

* Fri Oct 26 2018 mokraemer <mokraemer> 1:3.0.2-5.mga7
+ Revision: 1325844
- updated requirements

* Sun Sep 23 2018 umeabot <umeabot> 1:3.0.2-4.mga7
+ Revision: 1300229
- Mageia 7 Mass Rebuild

* Wed Apr 11 2018 pterjan <pterjan> 1:3.0.2-3.mga7
+ Revision: 1217374
- Rebuild for php 7.2, it was built with old php on arm

* Sun Dec 03 2017 mokraemer <mokraemer> 1:3.0.2-2.mga7
+ Revision: 1180981
+ rebuild (emptylog)

* Mon Nov 13 2017 zezinho <zezinho> 1:3.0.2-1.mga7
+ Revision: 1177144
- new version

* Tue Mar 22 2016 oden <oden> 1:2.1.6-1.mga6
+ Revision: 994023
- 2.1.6 (3.x is for php-7.x only)
+ luigiwalser <luigiwalser>
- httpd restart is handled by filetriggers now
+ spuhler <spuhler>
- imported package php-mailparse