Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail Name: opendkim Version: 2.10.3 Release: 0.2 License: BSD and Sendmail Group: Daemons Source0: http://downloads.sourceforge.net/opendkim/%{name}-%{version}.tar.gz Source1: %{name}.conf Source2: %{name}.sysconfig Source3: %{name}.init Source4: signing.table Source5: key.table Source6: trusted.hosts # Source0-md5: 916e691cdd16cfabd1cd6efe745323f9 URL: http://opendkim.org/ BuildRequires: db-devel BuildRequires: libbsd-devel BuildRequires: libmemcached-devel BuildRequires: libmilter-devel BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: unbound-devel Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define no_install_post_check_tmpfiles 1 %description OpenDKIM allows signing and/or verification of email through an open source library that implements the DKIM service, plus a milter-based filter application that can plug in to any milter-aware MTA, including sendmail, Postfix, or any other MTA that supports the milter protocol. %package libs Summary: An open source DKIM library Group: Libraries %description libs This package contains the library files required for running services built using libopendkim. %package libs-devel Summary: Development files for libopendkim Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description libs-devel This package contains the static libraries, headers, and other support files required for developing applications against libopendkim. %prep %setup -q %build %configure \ --with-unbound \ --with-libmemcached \ --with-db \ %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,%{name}/keys} install -d $RPM_BUILD_ROOT%{_initrddir} install -d $RPM_BUILD_ROOT%{systemdunitdir} install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name} install -d $RPM_BUILD_ROOT%{_localstatedir}/run/%{name} cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name} cp -p %{SOURCE1} %{SOURCE4} %{SOURCE5} %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/%{name} #cp -p contrib/systemd/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service cp -p contrib/init/redhat/%{name}-default-keygen $RPM_BUILD_ROOT%{_sbindir}/%{name}-default-keygen %clean rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 322 -r %{name} %useradd -r -u 322 -d /usr/share/empty -s /bin/false -c "OpenDKIM User" -g %{name} %{name} # MTA group in general? #%addusertogroup %{name} postfix %preun if [ "$1" = "0" ];then %service %{name} stop /sbin/chkconfig --del %{name} fi %systemd_preun %{name}.service %postun if [ "$1" = "0" ]; then %userremove %{name} %groupremove %{name} fi %systemd_reload %files %defattr(644,root,root,755) %doc FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail RELEASE_NOTES RELEASE_NOTES.Sendmail INSTALL %doc contrib/convert/convert_keylist.sh %{name}/*.sample %doc %{name}/%{name}.conf.simple-verify %{name}/%{name}.conf.simple %doc %{name}/README %attr(754,root,root) /etc/rc.d/init.d/%{name} %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/signing.table %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/key.table %config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/trusted.hosts %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %dir %attr(700,%{name},%{name}) %{_sysconfdir}/%{name}/keys %attr(755,root,root) %{_sbindir}/%{name}* %{_mandir}/man*/* %dir %attr(-,%{name},%{name}) %{_localstatedir}/spool/%{name} %dir %attr(770,root,%{name}) %{_localstatedir}/run/%{name} %dir %attr(-,root,%{name}) %{_sysconfdir}/%{name} #%{systemdunitdir}/%{name}.service %files libs %defattr(644,root,root,755) %doc LICENSE LICENSE.Sendmail README %{_libdir}/libopendkim.so.* %files libs-devel %defattr(644,root,root,755) %doc LICENSE LICENSE.Sendmail %doc libopendkim/docs/*.html %{_includedir}/%{name} %{_libdir}/*.so %{_pkgconfigdir}/*.pc