[12516] | 1 | %bcond_without php80 |
---|
| 2 | %bcond_without php74 |
---|
| 3 | |
---|
| 4 | %define extname mailparse |
---|
| 5 | |
---|
| 6 | Summary: Email message manipulation for PHP |
---|
| 7 | Summary(ja): PHP用e-mailメッセージ操作拡張 |
---|
| 8 | Name: php-ext-%{extname} |
---|
| 9 | Version: 3.1.1 |
---|
| 10 | Release: 1%{_dist_release} |
---|
| 11 | Group: programming |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: tomop |
---|
| 15 | |
---|
| 16 | License: The PHP License |
---|
| 17 | URL: https://pecl.php.net/package/mailparse |
---|
| 18 | Source: https://pecl.php.net/get/%{extname}-%{version}.tgz |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | Mailparse is an extension for parsing and working with email messages. |
---|
| 23 | It can deal with rfc822 and rfc2045 (MIME) compliant messages. |
---|
| 24 | |
---|
| 25 | %description -l ja |
---|
| 26 | Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。 |
---|
| 27 | rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。 |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %if %{with php74} |
---|
| 31 | %package -n php74-ext-mailparse |
---|
| 32 | Summary: Email message manipulation for PHP-7.4 |
---|
| 33 | Summary(ja): PHP-7.4用e-mailメッセージ操作拡張 |
---|
| 34 | Group: programming |
---|
| 35 | BuildRequires: php74-devel |
---|
| 36 | %if "%{?req_php74_api}" != "" |
---|
| 37 | Requires: %{req_php74_api} |
---|
| 38 | %endif |
---|
| 39 | |
---|
| 40 | %description -n php74-ext-mailparse |
---|
| 41 | Mailparse is an extension for parsing and working with email messages. |
---|
| 42 | It can deal with rfc822 and rfc2045 (MIME) compliant messages. |
---|
| 43 | |
---|
| 44 | %description -n php74-ext-mailparse -l ja |
---|
| 45 | Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。 |
---|
| 46 | rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。 |
---|
| 47 | %endif |
---|
| 48 | |
---|
| 49 | %if %{with php80} |
---|
| 50 | %package -n php80-ext-mailparse |
---|
| 51 | Summary: Email message manipulation for PHP-8.0 |
---|
| 52 | Summary(ja): PHP-8.0用e-mailメッセージ操作拡張 |
---|
| 53 | Group: programming |
---|
| 54 | BuildRequires: php80-devel |
---|
| 55 | %if "%{?req_php80_api}" != "" |
---|
| 56 | Requires: %{req_php80_api} |
---|
| 57 | %endif |
---|
| 58 | |
---|
| 59 | %description -n php80-ext-mailparse |
---|
| 60 | Mailparse is an extension for parsing and working with email messages. |
---|
| 61 | It can deal with rfc822 and rfc2045 (MIME) compliant messages. |
---|
| 62 | |
---|
| 63 | %description -n php80-ext-mailparse -l ja |
---|
| 64 | Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。 |
---|
| 65 | rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。 |
---|
| 66 | %endif |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %debug_package |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %prep |
---|
| 73 | %setup -q -c -n %{extname}-%{version} |
---|
| 74 | cp %{extname}-%{version}/{LICENSE,README.md,CREDITS} ./ |
---|
| 75 | |
---|
| 76 | %if %{with php74} |
---|
| 77 | cp -a %{extname}-%{version} php74 |
---|
| 78 | pushd php74 |
---|
| 79 | phpize74 |
---|
| 80 | popd |
---|
| 81 | %endif |
---|
| 82 | |
---|
| 83 | %if %{with php80} |
---|
| 84 | cp -a %{extname}-%{version} php80 |
---|
| 85 | pushd php80 |
---|
| 86 | phpize80 |
---|
| 87 | popd |
---|
| 88 | %endif |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %build |
---|
| 92 | %if %{with php74} |
---|
| 93 | pushd php74 |
---|
| 94 | %configure --with-php-config=%{_bindir}/php-config74 |
---|
| 95 | %__make %{?_smp_mflags} |
---|
| 96 | popd |
---|
| 97 | %endif |
---|
| 98 | |
---|
| 99 | %if %{with php80} |
---|
| 100 | pushd php80 |
---|
| 101 | %configure --with-php-config=%{_bindir}/php-config80 |
---|
| 102 | %__make %{?_smp_mflags} |
---|
| 103 | popd |
---|
| 104 | %endif |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %install |
---|
| 108 | rm -rf %{buildroot} |
---|
| 109 | %if %{with php74} |
---|
| 110 | mkdir -p %{buildroot}%{_libdir}/php74/ |
---|
| 111 | mkdir -p %{buildroot}%{_sysconfdir}/php74/php.d |
---|
| 112 | pushd php74 |
---|
| 113 | %makeinstall INSTALL_ROOT=%{buildroot} |
---|
| 114 | popd |
---|
| 115 | |
---|
| 116 | cat > %{buildroot}%{_sysconfdir}/php74/php.d/%{extname}.ini <<EOF |
---|
| 117 | ; Enable %{extname} extension module |
---|
| 118 | extension=%{extname}.so |
---|
| 119 | |
---|
| 120 | EOF |
---|
| 121 | %endif |
---|
| 122 | |
---|
| 123 | %if %{with php80} |
---|
| 124 | mkdir -p %{buildroot}%{_libdir}/php80/ |
---|
| 125 | mkdir -p %{buildroot}%{_sysconfdir}/php80/php.d |
---|
| 126 | pushd php80 |
---|
| 127 | %makeinstall INSTALL_ROOT=%{buildroot} |
---|
| 128 | popd |
---|
| 129 | |
---|
| 130 | cat > %{buildroot}%{_sysconfdir}/php80/php.d/%{extname}.ini <<EOF |
---|
| 131 | ; Enable %{extname} extension module |
---|
| 132 | extension=%{extname}.so |
---|
| 133 | |
---|
| 134 | EOF |
---|
| 135 | %endif |
---|
| 136 | |
---|
| 137 | |
---|
| 138 | %clean |
---|
| 139 | rm -rf %{buildroot} |
---|
| 140 | |
---|
| 141 | %if %{with php74} |
---|
| 142 | %files -n php74-ext-mailparse |
---|
| 143 | %defattr(-,root,root) |
---|
| 144 | %license LICENSE |
---|
| 145 | %doc README CREDITS |
---|
| 146 | %{_libdir}/php74/* |
---|
| 147 | %config(noreplace) %{_sysconfdir}/php74/php.d/* |
---|
| 148 | %endif |
---|
| 149 | |
---|
| 150 | %if %{with php80} |
---|
| 151 | %files -n php80-ext-mailparse |
---|
| 152 | %defattr(-,root,root) |
---|
| 153 | %license LICENSE |
---|
| 154 | %doc README CREDITS |
---|
| 155 | %{_libdir}/php80/* |
---|
| 156 | %config(noreplace) %{_sysconfdir}/php80/php.d/* |
---|
| 157 | %endif |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | %changelog |
---|
| 161 | * Sat Dec 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.1-1 |
---|
| 162 | - new upstream release. |
---|
| 163 | - added php80 support. |
---|
| 164 | - dropped php73 support. |
---|
| 165 | |
---|
| 166 | * Thu Dec 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.3-1 |
---|
| 167 | - dropped Patch0: fixed in upstream. |
---|
| 168 | - added php74 support. |
---|
| 169 | - dropped php72 support. |
---|
| 170 | |
---|
| 171 | * Sat Dec 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2-2 |
---|
| 172 | - added php73 support. |
---|
| 173 | |
---|
| 174 | * Wed Dec 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2-1 |
---|
| 175 | - new upstream release. |
---|
| 176 | - built with php72. |
---|
| 177 | |
---|
| 178 | * Fri Apr 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.6-2 |
---|
| 179 | - rebuilt with php5-5.6.7. |
---|
| 180 | |
---|
| 181 | * Fri Dec 13 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.6-1 |
---|
| 182 | - initial build. |
---|
| 183 | |
---|