]>
Commit | Line | Data |
---|---|---|
a42a830d AM |
1 | Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail |
2 | Name: opendkim | |
3 | Version: 2.9.2 | |
4 | Release: 0.1 | |
5 | License: BSD and Sendmail | |
6 | Group: Daemons | |
a42a830d AM |
7 | Source0: http://downloads.sourceforge.net/opendkim/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 08cc80a2aedec62b0444d8d6af24a155 | |
96702607 | 9 | URL: http://opendkim.org/ |
a42a830d AM |
10 | BuildRequires: db-devel |
11 | BuildRequires: libmemcached-devel | |
12 | BuildRequires: openssl-devel | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: sendmail-devel | |
15 | BuildRequires: unbound-devel | |
16 | Requires: %{name}-libs = %{version}-%{release} | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | OpenDKIM allows signing and/or verification of email through an open | |
21 | source library that implements the DKIM service, plus a milter-based | |
22 | filter application that can plug in to any milter-aware MTA, including | |
23 | sendmail, Postfix, or any other MTA that supports the milter protocol. | |
24 | ||
25 | %package libs | |
26 | Summary: An open source DKIM library | |
27 | Group: Libraries | |
28 | ||
29 | %description libs | |
30 | This package contains the library files required for running services | |
31 | built using libopendkim. | |
32 | ||
33 | %package libs-devel | |
34 | Summary: Development files for libopendkim | |
35 | Group: Development/Libraries | |
96702607 | 36 | Requires: %{name}-libs = %{version}-%{release} |
a42a830d AM |
37 | |
38 | %description libs-devel | |
39 | This package contains the static libraries, headers, and other support | |
40 | files required for developing applications against libopendkim. | |
41 | ||
42 | %prep | |
43 | %setup -q | |
44 | ||
45 | %build | |
46 | %configure \ | |
47 | --with-unbound \ | |
48 | --with-libmemcached \ | |
49 | --with-db \ | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
a42a830d AM |
53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig | |
57 | install -d $RPM_BUILD_ROOT%{_initrddir} | |
58 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
96702607 | 59 | install -p contrib/init/redhat/%{name} $RPM_BUILD_ROOT%{_initrddir}/%{name} |
a42a830d | 60 | cp -p contrib/systemd/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service |
a42a830d AM |
61 | cp -p contrib/init/redhat/%{name}-default-keygen $RPM_BUILD_ROOT%{_sbindir}/%{name}-default-keygen |
62 | ||
a42a830d AM |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
96702607 ER |
66 | %post libs -p /sbin/ldconfig |
67 | %postun libs -p /sbin/ldconfig | |
68 | ||
a42a830d AM |
69 | %files |
70 | %defattr(644,root,root,755) | |
71 | %doc FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail RELEASE_NOTES RELEASE_NOTES.Sendmail INSTALL | |
72 | %doc contrib/convert/convert_keylist.sh %{name}/*.sample | |
73 | %doc %{name}/%{name}.conf.simple-verify %{name}/%{name}.conf.simple | |
74 | %doc %{name}/README contrib/lua/*.lua | |
75 | %doc contrib/stats/README.%{name}-reportstats | |
76 | %config(noreplace) %{_sysconfdir}/%{name}.conf | |
77 | %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf | |
78 | %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/SigningTable | |
79 | %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/KeyTable | |
80 | %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/TrustedHosts | |
81 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
82 | %attr(755,root,root) %{_sbindir}/* | |
83 | %{_mandir}/*/* | |
84 | %dir %attr(-,%{name},%{name}) %{_localstatedir}/spool/%{name} | |
85 | %dir %attr(-,%{name},%{name}) %{_localstatedir}/run/%{name} | |
86 | %dir %attr(-,root,%{name}) %{_sysconfdir}/%{name} | |
87 | %dir %attr(750,%{name},%{name}) %{_sysconfdir}/%{name}/keys | |
88 | %{systemdunitdir}/%{name}.service | |
89 | %attr(755,root,root) %{_sbindir}/%{name}-default-keygen | |
90 | ||
91 | %files libs | |
92 | %defattr(644,root,root,755) | |
93 | %doc LICENSE LICENSE.Sendmail README | |
94 | %{_libdir}/libopendkim.so.* | |
95 | ||
96 | %files libs-devel | |
97 | %defattr(644,root,root,755) | |
98 | %doc LICENSE LICENSE.Sendmail | |
99 | %doc libopendkim/docs/*.html | |
100 | %{_includedir}/%{name} | |
101 | %{_libdir}/*.so | |
102 | %{_pkgconfigdir}/*.pc |