]> git.pld-linux.org Git - packages/opendkim.git/blob - opendkim.spec
- raw
[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.9.2
4 Release:        0.1
5 License:        BSD and Sendmail
6 Group:          Daemons
7 URL:            http://opendkim.org/
8 Source0:        http://downloads.sourceforge.net/opendkim/%{name}-%{version}.tar.gz
9 # Source0-md5:  08cc80a2aedec62b0444d8d6af24a155
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
36 Requires:       libopendkim = %{version}-%{release}
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
53
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 cp -p contrib/systemd/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
61 cp -p contrib/init/redhat/%{name} $RPM_BUILD_ROOT%{_initrddir}/%{name}
62 cp -p contrib/init/redhat/%{name}-default-keygen $RPM_BUILD_ROOT%{_sbindir}/%{name}-default-keygen
63
64 %post libs -p /sbin/ldconfig
65 %postun libs -p /sbin/ldconfig
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
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
104
This page took 0.086967 seconds and 4 git commands to generate.