/[packages]/cauldron/dirmngr/current/SPECS/dirmngr.spec
ViewVC logotype

Contents of /cauldron/dirmngr/current/SPECS/dirmngr.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 404859 - (show annotations) (download)
Sun Mar 24 15:20:47 2013 UTC (11 years, 1 month ago) by colin
File size: 2183 byte(s)
Add systemd requires and general post/pre fixes (mga#9302)
1 Summary: Client for Managing/Downloading CRLs
2 Name: dirmngr
3 Version: 1.1.0
4 Release: %mkrel 6
5 License: GPLv2+
6 Group: System/Libraries
7 URL: http://www.gnupg.org/
8 Source0: ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
9 Source1: %{SOURCE0}.sig
10 # (blino) fix underlinking with lber
11 # inspired from a gnupg patch by Marcus Brinkmann
12 # http://lists.gnupg.org/pipermail/gnupg-devel/2012-March/026625.html
13 Patch0: dirmngr-1.1.0-lber.patch
14 BuildRequires: libgcrypt-devel >= 1.1.94
15 BuildRequires: libgpg-error-devel >= 0.7
16 BuildRequires: libksba-devel >= 0.9.11
17 BuildRequires: libassuan-devel >= 0.9.3
18 BuildRequires: libpth-devel
19 # won't work with ldap1
20 BuildRequires: openldap-devel
21 # (blino) for patch0, so that autoreconf can find autopoint
22 BuildRequires: gettext-devel
23 Requires(post): systemd >= %{systemd_required_version}
24 Requires(post): info-install
25 Requires(preun): info-install
26
27
28 %description
29 Dirmngr is a client for managing and downloading certificate revocation
30 lists (CRLs) for X509 certificates and for downloading the certificates
31 themselves. Dirmngr is usually invoked by gpgsm and in general not used
32 directly.
33
34 %prep
35 %setup -q -n %{name}-%{version}
36 %patch0 -p1 -b .lber
37
38 # fix build with new automake 1.13
39 sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.ac
40
41 %build
42
43 # (blino) for patch0
44 autoreconf -fi
45
46 %configure2_5x --localstatedir=%{_var}
47 %make
48
49 %install
50 mkdir -p %{buildroot}%{_sysconfdir}/dirmngr
51 mkdir -p %{buildroot}%{_sysconfdir}/dirmngr/trusted-certs
52 mkdir -p %{buildroot}%{_var}/cache/dirmngr/crls.d
53 mkdir -p %{buildroot}%{_var}/lib/dirmngr/extra-certs
54
55 %makeinstall_std
56
57 mkdir -p %{buildroot}%{_tmpfilesdir}
58 cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
59 d /run/dirmngr 0755 root root
60 EOF
61
62 %find_lang %{name}
63
64 %post
65 %_tmpfilescreate %{name}
66 %_install_info %{name}.info
67
68 %preun
69 %_remove_install_info %{name}.info
70
71 %files -f %{name}.lang
72 %doc README* ChangeLog NEWS
73 %dir %{_sysconfdir}/dirmngr
74 %dir %{_sysconfdir}/dirmngr/trusted-certs
75 %{_tmpfilesdir}/%{name}.conf
76 %{_bindir}/*
77 %{_infodir}/*.info*
78 %{_libexecdir}/dirmngr_ldap
79 %{_mandir}/man1/dirmngr-client.*
80 %{_mandir}/man1/dirmngr.*
81 %{_var}/cache/dirmngr
82 %{_var}/lib/dirmngr

  ViewVC Help
Powered by ViewVC 1.1.30