]> 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 293c6d9820787f19aa698df2bf0fd6df7f50889e..123bd9f8ce6d45f747f42b53047f13d3b6adf877 100644 (file)
@@ -1,16 +1,14 @@
-# TODO
-# - doesn't build
-%define                _modname        mailparse
-%define                _status         beta
-Summary:       Email message manipulation
-Summary(pl.UTF-8):   Obrabianie wiadomości E-mail
-Name:          php-pecl-%{_modname}
-Version:       0.9.2
-Release:       0.3
+%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://pecl.php.net/get/%{_modname}-%{version}.tgz
-# Source0-md5: 73478cc638522aefb7315cc1976f76d4
+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
@@ -22,23 +20,23 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 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}.
+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}.
+To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
+%setup -qc
+mv %{modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure \
-       --with-%{_modname}=%{_prefix}/X11R6/include/X11/
+       --with-%{modname}=%{_prefix}/X11R6/include/X11/
 
 %{__make} CPPFLAGS="-DHAVE_CONFIG_H -I%{_prefix}/X11R6/include/X11"
 
@@ -46,10 +44,10 @@ phpize
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
 
-install %{_smodname}-%{version}/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
+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
@@ -65,6 +63,6 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/CREDITS
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_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.027099 seconds and 4 git commands to generate.