]> git.pld-linux.org Git - packages/php-pecl-mailparse.git/blobdiff - php-pecl-mailparse.spec
- updated to 2.1.6
[packages/php-pecl-mailparse.git] / php-pecl-mailparse.spec
index 125059798eb17350400eba36357817f8434309ad..123bd9f8ce6d45f747f42b53047f13d3b6adf877 100644 (file)
@@ -1,57 +1,68 @@
-%define                _modname        mailparse
-Summary:       Email message manipulation
-Summary(pl):   Manipulacje na wiadomo¶ciach Email
-Name:          php-pecl-%{_modname}
-Version:       0.9
-Release:       0.1
+%define                modname mailparse
+%define                status          stable
+Summary:       %{modname} - email message manipulation
+Summary(pl.UTF-8):     %{modname} - obrabianie wiadomości E-mail
+Name:          php-pecl-%{modname}
+Version:       2.1.6
+Release:       1
 License:       PHP 2.02
 Group:         Development/Languages/PHP
-Source0:       http://pear.php.net/get/%{_modname}-%{version}.tgz
-URL:           http://pear.php.net/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: php-devel
-Requires:      php-common
+Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: 0f84e1da1d074a4915a9bcfe2319ce84
+URL:           http://pecl.php.net/package/mailparse/
+BuildRequires: php-devel >= 4:5.2.0-7.2
+BuildRequires: rpmbuild(macros) >= 1.344
+%{?requires_php_extension}
+Requires:      php-common >= 4:5.0.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc/php
-%define                extensionsdir   %{_libdir}/php
-
 %description
 Mailparse is an extension for parsing and working with email messages.
 It can deal with rfc822 and rfc2045 (MIME) compliant messages.
 
+In PECL status of this package is: %{status}.
+
+%description -l pl.UTF-8
+Mailparse to rozszerzenie do analizy i pracy z wiadomościami poczty
+elektronicznej. Radzi sobie z wiadomościami zgodnymi z RFC822 oraz
+RFC2024 (MIME).
+
+To rozszerzenie ma w PECL status: %{status}.
+
 %prep
-%setup -q -c
+%setup -qc
+mv %{modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
-%{__aclocal}
-%{__autoconf}
 %configure \
-       --with-%{_modname}=%{_prefix}/X11R6/include/X11/
+       --with-%{modname}=%{_prefix}/X11R6/include/X11/
 
-%{__make} CPPFLAGS="-DHAVE_CONFIG_H -I%{_prefix}/X11R6/include/X11/"
+%{__make} CPPFLAGS="-DHAVE_CONFIG_H -I%{_prefix}/X11R6/include/X11"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
 
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php.ini
+%php_webserver_restart
 
-%preun
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php.ini
+%postun
+if [ "$1" = 0 ]; then
+       %php_webserver_restart
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/CREDITS
-%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+%doc CREDITS
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.07213 seconds and 4 git commands to generate.