1 %include /usr/lib/rpm/macros.php
2 %define php_min_version 5.0.0
4 Summary: PHP Implementation of DKIM
9 Group: Development/Languages/PHP
10 Source0: http://downloads.sourceforge.net/php-dkim/php-dkim.zip
11 # Source0-md5: 6d7e89b035f76c83ad93e597ffe9f06c
13 URL: http://php-dkim.sourceforge.net/
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.533
18 Requires: php(core) >= %{php_min_version}
20 Requires: php(openssl)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _noautopear pear
28 # put it together for rpmbuild
29 %define _noautoreq %{?_noautophp} %{?_noautopear}
32 PHP-DKIM add a Domain Key Identified Mail (DKIM RFC 4871) signatures
33 to emails sent by PHP.
35 It is based on the openssl extensions of PHP. It can generate DKIM
36 signature but cannot verify them. Php-dkim supports RSA signature and
37 SHA-1 hash for DKIM. The relaxed header canonicalization is supported
38 (only simple body canonicalization).
40 Php-dkim allows any PHP application to send email with a DKIM
41 signature this should decrease the probability of getting this email
46 %undos README.html *.php
49 mv dkim-cfg-dist.php dkim-cfg.php
52 lynx -dump --nolist README.html > README
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{php_data_dir}
57 cp -a dkim.php $RPM_BUILD_ROOT%{php_data_dir}
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 cp -a dkim-cfg.php dkim-test.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %{php_data_dir}/dkim.php
68 %{_examplesdir}/%{name}-%{version}