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