669f0a7
3f02fdc
# Fedora Review: http://bugzilla.redhat.com/171289
669f0a7
ddf78e1
Name:	 dirmngr
669f0a7
Summary: Client for Managing/Downloading CRLs
18f9cfe
Version: 1.1.1
bb01e23
Release: 6%{?dist}
669f0a7
18f9cfe
License: GPLv3+
669f0a7
Group:	 System Environment/Libraries
669f0a7
URL:	 http://www.gnupg.org/
089a61b
Source0: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2
089a61b
Source1: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2.sig
669f0a7
669f0a7
Source10: dirmngr.conf
669f0a7
Source11: ldapservers.conf
669f0a7
Source12: dirmngr.logrotate
5d9ba89
Source13: dirmngrtmp.conf
669f0a7
bcf0991
Patch1:  dirmngr-1.1.0-ocsp-crash.patch
bb01e23
Patch2:  dirmngr-1.1.1-pth-fix.patch
bcf0991
76a86b7
BuildRequires: gawk
748c246
BuildRequires: gettext
8487554
BuildRequires: libassuan-devel >= 2.0.0
8487554
BuildRequires: libgcrypt-devel
8487554
BuildRequires: libksba-devel
669f0a7
BuildRequires: openldap-devel
76a86b7
BuildRequires: pth-devel
669f0a7
669f0a7
Requires(post): /sbin/install-info
0ebd78e
Requires(preun): /sbin/install-info
669f0a7
Requires: logrotate
669f0a7
669f0a7
%description
669f0a7
Dirmngr is a server for managing and downloading certificate
669f0a7
revocation lists (CRLs) for X.509 certificates and for downloading
669f0a7
the certificates themselves. Dirmngr also handles OCSP requests as
669f0a7
an alternative to CRLs. Dirmngr is either invoked internally by
669f0a7
gpgsm (from gnupg2) or when running as a system daemon through
669f0a7
the dirmngr-client tool.
669f0a7
669f0a7
669f0a7
%prep
669f0a7
%setup -q
8594264
%patch1 -p1 -b .crash
bb01e23
%patch2 -p0 -b .pth-fix
669f0a7
669f0a7
pushd doc
669f0a7
iconv -f iso-8859-1 -t utf-8 dirmngr.texi -o dirmngr.texi.NEW && mv dirmngr.texi.NEW dirmngr.texi
669f0a7
iconv -f iso-8859-1 -t utf-8 dirmngr.info -o dirmngr.info.NEW && mv dirmngr.info.NEW dirmngr.info
669f0a7
popd
669f0a7
669f0a7
669f0a7
%build
669f0a7
a01672c
# FIX for https://bugzilla.redhat.com/565131
a01672c
# not sure how best to turn this into something more upstreamable
a01672c
# patch configure to try this combo first? -- Rex
a01672c
export LDAPLIBS="-lldap -llber"
a01672c
669f0a7
%configure \
669f0a7
  --disable-dependancy-tracking
669f0a7
669f0a7
make %{?_smp_mflags}
669f0a7
669f0a7
669f0a7
%install
669f0a7
748c246
# dirs
748c246
mkdir -p %{buildroot}%{_sysconfdir}/dirmngr/trusted-certs
748c246
mkdir -p %{buildroot}%{_var}/cache/dirmngr/crls.d
748c246
mkdir -p %{buildroot}%{_var}/lib/dirmngr/extra-certs
748c246
mkdir -p %{buildroot}%{_var}/log/dirmngr
748c246
mkdir -p %{buildroot}%{_var}/run/dirmngr
669f0a7
748c246
make install DESTDIR=%{buildroot}
669f0a7
748c246
# dirmngr.log, logrotate
748c246
install -p -m644 -D %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/dirmngr
669f0a7
748c246
# conf files
748c246
install -p -m644 %{SOURCE10} %{SOURCE11} %{buildroot}%{_sysconfdir}/dirmngr/
669f0a7
5d9ba89
# autocreate /var/run/dirmngr on boot
18f9cfe
install -p -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/dirmngr.conf
5d9ba89
669f0a7
%find_lang %{name}
669f0a7
748c246
## unpackaged files
748c246
rm -f %{buildroot}%{_infodir}/dir
5551602
rm -rf %{buildroot}%{_docdir}/dirmngr/examples
669f0a7
669f0a7
cf18e5c
%check
cf18e5c
make check
cf18e5c
cf18e5c
669f0a7
%post
669f0a7
/sbin/install-info %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
669f0a7
0ebd78e
%preun
669f0a7
if [ $1 -eq 0 ]; then
669f0a7
  /sbin/install-info --delete %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
669f0a7
fi
669f0a7
669f0a7
669f0a7
%files -f %{name}.lang
748c246
%defattr(-,root,root,-)
3f194b5
%doc COPYING README ChangeLog NEWS
5551602
%doc doc/examples
669f0a7
%{_bindir}/dirmngr*
669f0a7
%{_libexecdir}/dirmngr_ldap
669f0a7
%{_infodir}/dirmngr.info*
0cfb518
%{_mandir}/man1/*
669f0a7
# TODO/FIXME
669f0a7
#{_initrddir}/*
748c246
## files/dirs for --daemon mode
669f0a7
%dir %{_sysconfdir}/dirmngr
669f0a7
%config(noreplace) %{_sysconfdir}/dirmngr/*.conf
18f9cfe
%config(noreplace) %{_sysconfdir}/logrotate.d/*
18f9cfe
%{_prefix}/lib/tmpfiles.d/*.conf
748c246
%{_var}/cache/dirmngr/
748c246
%{_var}/lib/dirmngr/
748c246
%{_var}/log/dirmngr/
b41ee53
%dir %{_var}/run/dirmngr
669f0a7
669f0a7
669f0a7
%changelog
bb01e23
* Mon Dec 15 2014 Tomáš Mráz <tmraz@redhat.com> - 1.1.1-6
bb01e23
- fix missing pth initialization with libgcrypt-1.6.x (#1172997)
bb01e23
302eac9
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
302eac9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
302eac9
26e8cb4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
26e8cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
26e8cb4
5d93909
* Tue Apr 22 2014 Tomáš Mráz <tmraz@redhat.com> - 1.1.1-3
5d93909
- Rebuild for new libgcrypt
5d93909
d3210e7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
d3210e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d3210e7
18f9cfe
* Mon Apr 29 2013 Tomáš Mráz <tmraz@redhat.com> - 1.1.1-1
18f9cfe
- new upstream release
18f9cfe
0da6a7d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-9
0da6a7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0da6a7d
e28a032
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-8
e28a032
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e28a032
24d3fd4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-7
24d3fd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
24d3fd4
bcf0991
* Mon Jun 20 2011 Tomas Mraz <tmraz@redhat.com> - 1.1.0-6
bcf0991
- upstream fix for CVE-2011-2207 (blocking other request processing
bcf0991
  when one CRL request is being processed) (#710529)
bcf0991
01f18a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
01f18a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
01f18a2
8594264
* Wed Dec  1 2010 Tomas Mraz <tmraz@redhat.com> - 1.1.0-4
8594264
- fix crash on some OCSP responses (patch by Tomas Trnka) (#658230)
8594264
b41ee53
* Thu Nov 25 2010 Tomas Mraz <tmraz@redhat.com> - 1.1.0-3
b41ee53
- revert ghosting the /var/run/dirmngr so we do not need to create
b41ee53
  it in the post script
b41ee53
5d9ba89
* Wed Nov 24 2010 Tomas Mraz <tmraz@redhat.com> - 1.1.0-2
5d9ba89
- make /var/run/dirmngr ghost and create it with tmpfiles (#656573)
5d9ba89
8487554
* Tue Aug 10 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1
8487554
- dirmngr-1.1.0
8487554
a01672c
* Mon Feb 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-6
a01672c
- FTBFS dirmngr-1.0.3-5.fc13 (#565131)
a01672c
ddf78e1
* Mon Jan 11 2010 Tomas Mraz <tmraz@redhat.com> - 1.0.3-5
ddf78e1
- better ldapservers.conf file
ddf78e1
- correct the license field
ddf78e1
fc0ccaa
* Tue Dec  8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0.3-4
fc0ccaa
- Explicitly BR libassuan-static in accordance with the Packaging
fc0ccaa
  Guidelines (libassuan-devel is still static-only).
fc0ccaa
68a3496
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
68a3496
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
68a3496
0ebd78e
* Mon Jun 22 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-2
0ebd78e
- fix info scriptlet (uninstall)
0ebd78e
e26456f
* Wed Jun 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-1
e26456f
- dirmngr-1.0.3
e26456f
d673b6c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
d673b6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d673b6c
5551602
* Fri Aug 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-1
5551602
- dirmngr-1.0.2
5551602
105d1e3
* Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
105d1e3
- respin (gcc43)
105d1e3
cf18e5c
* Thu Jan 03 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1
cf18e5c
- dirmngr-1.0.1
cf18e5c
515b602
* Tue Dec 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-7
515b602
- respin for openldap 
515b602
748c246
* Wed Oct 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-6
748c246
- /var/log/dirmngr.log -> /var/log/dirmngr/dirmngr.log
748c246
- remove use of %%ghost (e.g. dirmngr.log shouldn't be owned)
748c246
- BR: gettext
748c246
76a86b7
* Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-5
76a86b7
- BR: gawk
76a86b7
29e1346
* Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-4
29e1346
- respin (BuildID)
29e1346
3f02fdc
* Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3
3f02fdc
- License: GPLv2+
3f02fdc
3f194b5
* Wed Nov 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0.0-2
089a61b
- dirmngr-1.0.0
089a61b
6868844
* Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-2
6868844
- BR: libassuan-static
6868844
0cfb518
* Tue Sep 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-1
089a61b
- dirmngr-0.9.6
0cfb518
cfeaefe
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-5
cfeaefe
- fc6 respin
cfeaefe
d61259e
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-4
d61259e
- %%config(noreplace) %%_sysconfdir/logrotate.d/dirmngr
d61259e
669f0a7
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-3
669f0a7
- use 'iconv -f iso-8859-1 -t utf-8' to avoid dropping characters
669f0a7
669f0a7
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-2
669f0a7
- remove non-ASCII chars from dirmngr.info
669f0a7
- %%config %%_sysconfdir/logrotate.d/dirmngr
669f0a7
669f0a7
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-1
669f0a7
- 0.9.4
669f0a7
- %%doc COPYING
669f0a7
- drop upstreamed info patch
669f0a7
- use logrotate on dirmngr.log
669f0a7
- add comment to (previously) empty ldapservers.conf
669f0a7
669f0a7
* Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.3-1
669f0a7
- 0.9.3
669f0a7
669f0a7
* Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-3
669f0a7
- create/own more files/dirs for --daemon mode
669f0a7
- TODO: proper init script
669f0a7
669f0a7
* Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-2
669f0a7
- drop BR: libgpg-error-devel, texinfo
669f0a7
- drop goofy conditional 'make install-strip '
669f0a7
- BR: libksba-devel >= 0.9.11
669f0a7
- BR: libassuan-devel >= 0.6.8
669f0a7
- fix spelling error(s) in %%description
669f0a7
- --disable-dependancy-tracking
669f0a7
669f0a7
* Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-1
669f0a7
- 0.9.2
669f0a7
669f0a7
* Mon Mar 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-0.fdr.1
669f0a7
- 0.9.1
669f0a7
669f0a7
* Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.2
669f0a7
- fix info entry (so deletion/uninstallation works)
669f0a7
669f0a7
* Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.1
669f0a7
- 0.9.0
669f0a7
669f0a7
* Thu Dec 16 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.2
669f0a7
- 64bit fix (look for openldap in %%_libdir, not just /usr/lib)
669f0a7
669f0a7
* Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.1
669f0a7
- first try
669f0a7