php-ext-mailparse-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. %bcond_without php84
  2. %bcond_without php83
  3. %bcond_with php82
  4. %bcond_with php81
  5. %bcond_with php74
  6. %define extname mailparse
  7. Summary: Email message manipulation for PHP
  8. Summary(ja): PHP用e-mailメッセージ操作拡張
  9. Name: php-ext-%{extname}
  10. Version: 3.1.8
  11. Release: 1%{_dist_release}
  12. Group: programming
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: tomop
  16. License: The PHP License
  17. URL: https://pecl.php.net/package/mailparse
  18. Source: https://pecl.php.net/get/%{extname}-%{version}.tgz
  19. %description
  20. Mailparse is an extension for parsing and working with email messages.
  21. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  22. %description -l ja
  23.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  24. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  25. %if %{with php74}
  26. %package -n php74-ext-mailparse
  27. Summary: Email message manipulation for PHP-7.4
  28. Summary(ja): PHP-7.4用e-mailメッセージ操作拡張
  29. Group: programming
  30. BuildRequires: php74-devel
  31. %if "%{?req_php74_api}" != ""
  32. Requires: %{req_php74_api}
  33. %endif
  34. %description -n php74-ext-mailparse
  35. Mailparse is an extension for parsing and working with email messages.
  36. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  37. %description -n php74-ext-mailparse -l ja
  38.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  39. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  40. %endif
  41. %if %{with php84}
  42. %package -n php84-ext-mailparse
  43. Summary: Email message manipulation for PHP-8.4
  44. Summary(ja): PHP-8.4用e-mailメッセージ操作拡張
  45. Group: programming
  46. BuildRequires: php84-devel
  47. %if "%{?req_php84_api}" != ""
  48. Requires: %{req_php84_api}
  49. %endif
  50. %description -n php84-ext-mailparse
  51. Mailparse is an extension for parsing and working with email messages.
  52. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  53. %description -n php84-ext-mailparse -l ja
  54.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  55. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  56. %endif
  57. %if %{with php83}
  58. %package -n php83-ext-mailparse
  59. Summary: Email message manipulation for PHP-8.3
  60. Summary(ja): PHP-8.3用e-mailメッセージ操作拡張
  61. Group: programming
  62. BuildRequires: php83-devel
  63. %if "%{?req_php83_api}" != ""
  64. Requires: %{req_php83_api}
  65. %endif
  66. %description -n php83-ext-mailparse
  67. Mailparse is an extension for parsing and working with email messages.
  68. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  69. %description -n php83-ext-mailparse -l ja
  70.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  71. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  72. %endif
  73. %if %{with php82}
  74. %package -n php82-ext-mailparse
  75. Summary: Email message manipulation for PHP-8.2
  76. Summary(ja): PHP-8.2用e-mailメッセージ操作拡張
  77. Group: programming
  78. BuildRequires: php82-devel
  79. %if "%{?req_php82_api}" != ""
  80. Requires: %{req_php82_api}
  81. %endif
  82. %description -n php82-ext-mailparse
  83. Mailparse is an extension for parsing and working with email messages.
  84. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  85. %description -n php82-ext-mailparse -l ja
  86.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  87. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  88. %endif
  89. %if %{with php81}
  90. %package -n php81-ext-mailparse
  91. Summary: Email message manipulation for PHP-8.0
  92. Summary(ja): PHP-8.1用e-mailメッセージ操作拡張
  93. Group: programming
  94. BuildRequires: php81-devel
  95. %if "%{?req_php81_api}" != ""
  96. Requires: %{req_php81_api}
  97. %endif
  98. %description -n php81-ext-mailparse
  99. Mailparse is an extension for parsing and working with email messages.
  100. It can deal with rfc822 and rfc2045 (MIME) compliant messages.
  101. %description -n php81-ext-mailparse -l ja
  102.  Mailparseモジュールは、e-mailメッセージの解析・操作を行うPHP拡張です。
  103. rfc822やrfc2045 (MIME)に準拠したメッセージを取り扱うことが可能です。
  104. %endif
  105. %debug_package
  106. %prep
  107. %setup -q -c -n %{extname}-%{version}
  108. cp %{extname}-%{version}/{LICENSE,README.md,CREDITS} ./
  109. %if %{with php74}
  110. cp -a %{extname}-%{version} php74
  111. pushd php74
  112. phpize74
  113. popd
  114. %endif
  115. %if %{with php84}
  116. cp -a %{extname}-%{version} php84
  117. pushd php84
  118. phpize84
  119. popd
  120. %endif
  121. %if %{with php83}
  122. cp -a %{extname}-%{version} php83
  123. pushd php83
  124. phpize83
  125. popd
  126. %endif
  127. %if %{with php82}
  128. cp -a %{extname}-%{version} php82
  129. pushd php82
  130. phpize82
  131. popd
  132. %endif
  133. %if %{with php81}
  134. cp -a %{extname}-%{version} php81
  135. pushd php81
  136. phpize81
  137. popd
  138. %endif
  139. %build
  140. %if %{with php74}
  141. pushd php74
  142. %configure --with-php-config=%{_bindir}/php-config74
  143. %__make %{?_smp_mflags}
  144. popd
  145. %endif
  146. %if %{with php84}
  147. pushd php84
  148. %configure --with-php-config=%{_bindir}/php-config84
  149. %__make %{?_smp_mflags}
  150. popd
  151. %endif
  152. %if %{with php83}
  153. pushd php83
  154. %configure --with-php-config=%{_bindir}/php-config83
  155. %__make %{?_smp_mflags}
  156. popd
  157. %endif
  158. %if %{with php82}
  159. pushd php82
  160. %configure --with-php-config=%{_bindir}/php-config82
  161. %__make %{?_smp_mflags}
  162. popd
  163. %endif
  164. %if %{with php81}
  165. pushd php81
  166. %configure --with-php-config=%{_bindir}/php-config81
  167. %__make %{?_smp_mflags}
  168. popd
  169. %endif
  170. %install
  171. rm -rf %{buildroot}
  172. %if %{with php74}
  173. mkdir -p %{buildroot}%{_libdir}/php74/
  174. mkdir -p %{buildroot}%{_sysconfdir}/php74/php.d
  175. pushd php74
  176. %makeinstall INSTALL_ROOT=%{buildroot}
  177. popd
  178. cat > %{buildroot}%{_sysconfdir}/php74/php.d/%{extname}.ini <<EOF
  179. ; Enable %{extname} extension module
  180. extension=%{extname}.so
  181. EOF
  182. %endif
  183. %if %{with php84}
  184. mkdir -p %{buildroot}%{_libdir}/php84/
  185. mkdir -p %{buildroot}%{_sysconfdir}/php84/php.d
  186. pushd php84
  187. %makeinstall INSTALL_ROOT=%{buildroot}
  188. popd
  189. cat > %{buildroot}%{_sysconfdir}/php84/php.d/%{extname}.ini <<EOF
  190. ; Enable %{extname} extension module
  191. extension=%{extname}.so
  192. EOF
  193. %endif
  194. %if %{with php83}
  195. mkdir -p %{buildroot}%{_libdir}/php83/
  196. mkdir -p %{buildroot}%{_sysconfdir}/php83/php.d
  197. pushd php83
  198. %makeinstall INSTALL_ROOT=%{buildroot}
  199. popd
  200. cat > %{buildroot}%{_sysconfdir}/php83/php.d/%{extname}.ini <<EOF
  201. ; Enable %{extname} extension module
  202. extension=%{extname}.so
  203. EOF
  204. %endif
  205. %if %{with php82}
  206. mkdir -p %{buildroot}%{_libdir}/php82/
  207. mkdir -p %{buildroot}%{_sysconfdir}/php82/php.d
  208. pushd php82
  209. %makeinstall INSTALL_ROOT=%{buildroot}
  210. popd
  211. cat > %{buildroot}%{_sysconfdir}/php82/php.d/%{extname}.ini <<EOF
  212. ; Enable %{extname} extension module
  213. extension=%{extname}.so
  214. EOF
  215. %endif
  216. %if %{with php81}
  217. mkdir -p %{buildroot}%{_libdir}/php81/
  218. mkdir -p %{buildroot}%{_sysconfdir}/php81/php.d
  219. pushd php81
  220. %makeinstall INSTALL_ROOT=%{buildroot}
  221. popd
  222. cat > %{buildroot}%{_sysconfdir}/php81/php.d/%{extname}.ini <<EOF
  223. ; Enable %{extname} extension module
  224. extension=%{extname}.so
  225. EOF
  226. %endif
  227. %clean
  228. rm -rf %{buildroot}
  229. %if %{with php74}
  230. %files -n php74-ext-mailparse
  231. %defattr(-,root,root)
  232. %license LICENSE
  233. %doc README CREDITS
  234. %{_libdir}/php74/*
  235. %config(noreplace) %{_sysconfdir}/php74/php.d/*
  236. %endif
  237. %if %{with php84}
  238. %files -n php84-ext-mailparse
  239. %defattr(-,root,root)
  240. %license LICENSE
  241. %doc README CREDITS
  242. %{_libdir}/php84/*
  243. %config(noreplace) %{_sysconfdir}/php84/php.d/*
  244. %endif
  245. %if %{with php83}
  246. %files -n php83-ext-mailparse
  247. %defattr(-,root,root)
  248. %license LICENSE
  249. %doc README CREDITS
  250. %{_libdir}/php83/*
  251. %config(noreplace) %{_sysconfdir}/php83/php.d/*
  252. %endif
  253. %if %{with php82}
  254. %files -n php82-ext-mailparse
  255. %defattr(-,root,root)
  256. %license LICENSE
  257. %doc README CREDITS
  258. %{_libdir}/php82/*
  259. %config(noreplace) %{_sysconfdir}/php82/php.d/*
  260. %endif
  261. %if %{with php81}
  262. %files -n php81-ext-mailparse
  263. %defattr(-,root,root)
  264. %license LICENSE
  265. %doc README CREDITS
  266. %{_libdir}/php81/*
  267. %config(noreplace) %{_sysconfdir}/php81/php.d/*
  268. %endif
  269. %changelog
  270. * Fri Nov 22 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-1
  271. - new upstream release.
  272. - added php84 support.
  273. - disabled php82 support.
  274. * Sat Jan 20 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.6-1
  275. - new upstream release.
  276. - added php83 support.
  277. - disabled php81 support.
  278. * Fri Mar 17 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.4-1
  279. - new upstream release.
  280. - added php82 support.
  281. - dropped php80 support.
  282. - disabled php74 support.
  283. * Fri Nov 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.2-2
  284. - added php81 support.
  285. * Mon Nov 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.2-1
  286. - new upstream release.
  287. * Sat Dec 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.1-1
  288. - new upstream release.
  289. - added php80 support.
  290. - dropped php73 support.
  291. * Thu Dec 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.3-1
  292. - dropped Patch0: fixed in upstream.
  293. - added php74 support.
  294. - dropped php72 support.
  295. * Sat Dec 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2-2
  296. - added php73 support.
  297. * Wed Dec 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2-1
  298. - new upstream release.
  299. - built with php72.
  300. * Fri Apr 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.6-2
  301. - rebuilt with php5-5.6.7.
  302. * Fri Dec 13 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.6-1
  303. - initial build.