Name: dirmngr Summary: Client for Managing/Downloading CRLs Version: 1.1.1 Release: 1%{?_dist_release} License: GPLv3+ Group: Applications/System URL: http://www.gnupg.org/ Source0: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2.sig Source10: dirmngr.conf Source11: ldapservers.conf Source12: dirmngr.logrotate Source13: dirmngrtmp.conf Patch1: dirmngr-1.1.0-ocsp-crash.patch Patch2: dirmngr-1.1.1-pth-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gawk BuildRequires: gettext BuildRequires: libassuan-devel >= 2.0.0 BuildRequires: libgcrypt-devel >= 1.2.0 BuildRequires: libksba-devel >= 1.0.0 BuildRequires: openldap-devel BuildRequires: pth-devel Requires(post): /sbin/install-info Requires(postun): /sbin/install-info Requires: logrotate %description Dirmngr is a server for managing and downloading certificate revocation lists (CRLs) for X.509 certificates and for downloading the certificates themselves. Dirmngr also handles OCSP requests as an alternative to CRLs. Dirmngr is either invoked internally by gpgsm (from gnupg2) or when running as a system daemon through the dirmngr-client tool. %prep %setup -q %patch1 -p1 -b .crash %patch2 -p0 -b .pth-fix pushd doc iconv -f iso-8859-1 -t utf-8 dirmngr.texi -o dirmngr.texi.NEW && mv dirmngr.texi.NEW dirmngr.texi iconv -f iso-8859-1 -t utf-8 dirmngr.info -o dirmngr.info.NEW && mv dirmngr.info.NEW dirmngr.info popd %build sed -i "s|\"-lldap\"||" configure.ac autoreconf -if %configure \ --disable-dependancy-tracking make %{?_smp_mflags} %install rm -rf %{buildroot} # dirs mkdir -p %{buildroot}%{_sysconfdir}/dirmngr/trusted-certs mkdir -p %{buildroot}%{_var}/cache/dirmngr/crls.d mkdir -p %{buildroot}%{_var}/lib/dirmngr/extra-certs mkdir -p %{buildroot}%{_var}/log/dirmngr mkdir -p %{buildroot}%{_var}/run/dirmngr make install DESTDIR=%{buildroot} # dirmngr.log, logrotate install -p -m644 -D %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/dirmngr # conf files install -p -m644 %{SOURCE10} %{SOURCE11} %{buildroot}%{_sysconfdir}/dirmngr/ # autocreate /var/run/dirmngr on boot install -p -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/dirmngr.conf %find_lang %{name} ## unpackaged files rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_docdir}/dirmngr/examples %check make check %post /sbin/install-info %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||: %postun if [ $1 -eq 0 ]; then /sbin/install-info --delete %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||: fi %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING README ChangeLog NEWS %doc doc/examples %{_bindir}/dirmngr* %{_libexecdir}/dirmngr_ldap %{_infodir}/dirmngr.info* %{_mandir}/man1/* # TODO/FIXME #{_initrddir}/* ## files/dirs for --daemon mode %dir %{_sysconfdir}/dirmngr %config(noreplace) %{_sysconfdir}/dirmngr/*.conf %config %{_sysconfdir}/logrotate.d/* %{_prefix}/lib/tmpfiles.d/*.conf %{_var}/cache/dirmngr/ %{_var}/lib/dirmngr/ %{_var}/log/dirmngr/ %{_var}/run/dirmngr/ %changelog * Mon Jan 19 2015 Ryoichi INAGAKI - 1.1.1-1 - updated to 1.1.1 - added Patch0 and Patch1 from Fedora * Mon Dec 15 2014 Tomáš Mráz - 1.1.1-6 - fix missing pth initialization with libgcrypt-1.6.x (#1172997) * Wed Dec 1 2010 Tomas Mraz - 1.1.0-4 - fix crash on some OCSP responses (patch by Tomas Trnka) (#658230) - built with libgrypt 1.6.0 * Sun Jun 24 2012 Yoji TOYODA - 1.1.0-1 - update to 1.1.0 - remove Patch100 * Sat Apr 4 2009 MATSUBAYASHI Kohji - 1.0.2-2 - rebuilt with openldap-2.4.11 * Thu Aug 25 2008 MATSUBAYASHI Kohji - 1.0.2-1 - initial build for VineSeed * Fri Aug 01 2008 Rex Dieter 1.0.2-1 - dirmngr-1.0.2 * Mon Feb 11 2008 Rex Dieter 1.0.1-2 - respin (gcc43) * Thu Jan 03 2008 Rex Dieter 1.0.1-1 - dirmngr-1.0.1 * Tue Dec 04 2007 Rex Dieter 1.0.0-7 - respin for openldap * Wed Oct 03 2007 Rex Dieter 1.0.0-6 - /var/log/dirmngr.log -> /var/log/dirmngr/dirmngr.log - remove use of %%ghost (e.g. dirmngr.log shouldn't be owned) - BR: gettext * Sun Aug 26 2007 Rex Dieter 1.0.0-5 - BR: gawk * Sat Aug 25 2007 Rex Dieter 1.0.0-4 - respin (BuildID) * Thu Aug 09 2007 Rex Dieter 1.0.0-3 - License: GPLv2+ * Wed Nov 29 2006 Rex Dieter 1.0.0-2 - dirmngr-1.0.0 * Mon Nov 13 2006 Rex Dieter 0.9.6-2 - BR: libassuan-static * Tue Sep 05 2006 Rex Dieter 0.9.6-1 - dirmngr-0.9.6 * Tue Aug 29 2006 Rex Dieter 0.9.4-5 - fc6 respin * Mon Jun 26 2006 Rex Dieter 0.9.4-4 - %%config(noreplace) %%_sysconfdir/logrotate.d/dirmngr * Mon Jun 26 2006 Rex Dieter 0.9.4-3 - use 'iconv -f iso-8859-1 -t utf-8' to avoid dropping characters * Mon Jun 26 2006 Rex Dieter 0.9.4-2 - remove non-ASCII chars from dirmngr.info - %%config %%_sysconfdir/logrotate.d/dirmngr * Mon Jun 26 2006 Rex Dieter 0.9.4-1 - 0.9.4 - %%doc COPYING - drop upstreamed info patch - use logrotate on dirmngr.log - add comment to (previously) empty ldapservers.conf * Tue May 16 2006 Rex Dieter 0.9.3-1 - 0.9.3 * Sat Oct 22 2005 Rex Dieter 0.9.2-3 - create/own more files/dirs for --daemon mode - TODO: proper init script * Thu Oct 20 2005 Rex Dieter 0.9.2-2 - drop BR: libgpg-error-devel, texinfo - drop goofy conditional 'make install-strip ' - BR: libksba-devel >= 0.9.11 - BR: libassuan-devel >= 0.6.8 - fix spelling error(s) in %%description - --disable-dependancy-tracking * Thu Oct 20 2005 Rex Dieter 0.9.2-1 - 0.9.2 * Mon Mar 21 2005 Rex Dieter 0.9.1-0.fdr.1 - 0.9.1 * Fri Jan 07 2005 Rex Dieter 0.9.0-0.fdr.2 - fix info entry (so deletion/uninstallation works) * Fri Jan 07 2005 Rex Dieter 0.9.0-0.fdr.1 - 0.9.0 * Thu Dec 16 2004 Rex Dieter 0.5.5-0.fdr.2 - 64bit fix (look for openldap in %%_libdir, not just /usr/lib) * Wed Oct 20 2004 Rex Dieter 0.5.5-0.fdr.1 - first try