]> git.pld-linux.org Git - SPECS.git/blob - php4-pecl-mailparse.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / php4-pecl-mailparse.spec
1 %define         _modname        mailparse
2 %define         _status         stable
3 %define         _sysconfdir     /etc/php4
4 %define         extensionsdir   %{_libdir}/php4
5 Summary:        Email message manipulation
6 Summary(pl.UTF-8):      Obrabianie wiadomości E-mail
7 Name:           php4-pecl-%{_modname}
8 Version:        2.1.1
9 Release:        2
10 License:        PHP
11 Group:          Development/Languages/PHP
12 Source0:        http://pecl.php.net/get/%{_modname}-%{version}.tgz
13 # Source0-md5:  14c058d79f1f6c01aa53273565bd4a54
14 URL:            http://pecl.php.net/package/mailparse/
15 BuildRequires:  php4-devel
16 BuildRequires:  rpmbuild(macros) >= 1.344
17 Requires:       php4-common >= 3:4.4.0-3
18 %{?requires_php_extension}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 In PECL status of this package is: %{_status}.
26
27 %description -l pl.UTF-8
28 Mailparse to rozszerzenie do analizy i pracy z wiadomościami poczty
29 elektronicznej. Radzi sobie z wiadomościami zgodnymi z RFC822 oraz
30 RFC2024 (MIME).
31
32 To rozszerzenie ma w PECL status: %{_status}.
33
34 %prep
35 %setup -q -c
36
37 %build
38 cd %{_modname}-%{version}
39 phpize
40 %configure
41
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
47
48 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
49 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
50 ; Enable %{_modname} extension module
51 extension=%{_modname}.so
52 EOF
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 %php4_webserver_restart
59
60 %postun
61 if [ "$1" = 0 ]; then
62         %php4_webserver_restart
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %doc %{_modname}-%{version}/CREDITS
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
69 %attr(755,root,root) %{extensionsdir}/%{_modname}.so
This page took 0.989698 seconds and 3 git commands to generate.