1 Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail
5 License: BSD and Sendmail
7 Source0: http://downloads.sourceforge.net/opendkim/%{name}-%{version}.tar.gz
9 Source2: %{name}.sysconfig
11 Source4: signing.table
13 Source6: trusted.hosts
14 # Source0-md5: 916e691cdd16cfabd1cd6efe745323f9
15 URL: http://opendkim.org/
16 BuildRequires: db-devel
17 BuildRequires: libbsd-devel
18 BuildRequires: libmemcached-devel
19 BuildRequires: libmilter-devel
20 BuildRequires: openssl-devel
21 BuildRequires: pkgconfig
22 BuildRequires: unbound-devel
23 Requires: %{name}-libs = %{version}-%{release}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define no_install_post_check_tmpfiles 1
29 OpenDKIM allows signing and/or verification of email through an open
30 source library that implements the DKIM service, plus a milter-based
31 filter application that can plug in to any milter-aware MTA, including
32 sendmail, Postfix, or any other MTA that supports the milter protocol.
35 Summary: An open source DKIM library
39 This package contains the library files required for running services
40 built using libopendkim.
43 Summary: Development files for libopendkim
44 Group: Development/Libraries
45 Requires: %{name}-libs = %{version}-%{release}
47 %description libs-devel
48 This package contains the static libraries, headers, and other support
49 files required for developing applications against libopendkim.
61 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,%{name}/keys}
66 install -d $RPM_BUILD_ROOT%{_initrddir}
67 install -d $RPM_BUILD_ROOT%{systemdunitdir}
68 install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name}
69 install -d $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}
70 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
71 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
72 cp -p %{SOURCE1} %{SOURCE4} %{SOURCE5} %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
73 #cp -p contrib/systemd/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
74 cp -p contrib/init/redhat/%{name}-default-keygen $RPM_BUILD_ROOT%{_sbindir}/%{name}-default-keygen
77 rm -rf $RPM_BUILD_ROOT
80 %groupadd -g 322 -r %{name}
81 %useradd -r -u 322 -d /usr/share/empty -s /bin/false -c "OpenDKIM User" -g %{name} %{name}
82 # MTA group in general?
83 #%addusertogroup %{name} postfix
86 if [ "$1" = "0" ];then
88 /sbin/chkconfig --del %{name}
90 %systemd_preun %{name}.service
93 if [ "$1" = "0" ]; then
100 %defattr(644,root,root,755)
101 %doc FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail RELEASE_NOTES RELEASE_NOTES.Sendmail INSTALL
102 %doc contrib/convert/convert_keylist.sh %{name}/*.sample
103 %doc %{name}/%{name}.conf.simple-verify %{name}/%{name}.conf.simple
105 %attr(754,root,root) /etc/rc.d/init.d/%{name}
106 %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/%{name}.conf
107 %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/signing.table
108 %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/key.table
109 %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/trusted.hosts
110 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
111 %dir %attr(700,%{name},%{name}) %{_sysconfdir}/%{name}/keys
112 %attr(755,root,root) %{_sbindir}/%{name}*
114 %dir %attr(-,%{name},%{name}) %{_localstatedir}/spool/%{name}
115 %dir %attr(770,root,%{name}) %{_localstatedir}/run/%{name}
116 %dir %attr(-,root,%{name}) %{_sysconfdir}/%{name}
117 #%{systemdunitdir}/%{name}.service
120 %defattr(644,root,root,755)
121 %doc LICENSE LICENSE.Sendmail README
122 %{_libdir}/libopendkim.so.*
125 %defattr(644,root,root,755)
126 %doc LICENSE LICENSE.Sendmail
127 %doc libopendkim/docs/*.html
128 %{_includedir}/%{name}
130 %{_pkgconfigdir}/*.pc