dirmngr-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. Name: dirmngr
  2. Summary: Client for Managing/Downloading CRLs
  3. Version: 1.1.1
  4. Release: 1%{?_dist_release}
  5. License: GPLv3+
  6. Group: Applications/System
  7. URL: http://www.gnupg.org/
  8. Source0: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2
  9. Source1: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2.sig
  10. Source10: dirmngr.conf
  11. Source11: ldapservers.conf
  12. Source12: dirmngr.logrotate
  13. Source13: dirmngrtmp.conf
  14. Patch1: dirmngr-1.1.0-ocsp-crash.patch
  15. Patch2: dirmngr-1.1.1-pth-fix.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. BuildRequires: gawk
  18. BuildRequires: gettext
  19. BuildRequires: libassuan-devel >= 2.0.0
  20. BuildRequires: libgcrypt-devel >= 1.2.0
  21. BuildRequires: libksba-devel >= 1.0.0
  22. BuildRequires: openldap-devel
  23. BuildRequires: pth-devel
  24. Requires(post): /sbin/install-info
  25. Requires(postun): /sbin/install-info
  26. Requires: logrotate
  27. %description
  28. Dirmngr is a server for managing and downloading certificate
  29. revocation lists (CRLs) for X.509 certificates and for downloading
  30. the certificates themselves. Dirmngr also handles OCSP requests as
  31. an alternative to CRLs. Dirmngr is either invoked internally by
  32. gpgsm (from gnupg2) or when running as a system daemon through
  33. the dirmngr-client tool.
  34. %prep
  35. %setup -q
  36. %patch1 -p1 -b .crash
  37. %patch2 -p0 -b .pth-fix
  38. pushd doc
  39. iconv -f iso-8859-1 -t utf-8 dirmngr.texi -o dirmngr.texi.NEW && mv dirmngr.texi.NEW dirmngr.texi
  40. iconv -f iso-8859-1 -t utf-8 dirmngr.info -o dirmngr.info.NEW && mv dirmngr.info.NEW dirmngr.info
  41. popd
  42. %build
  43. sed -i "s|\"-lldap\"||" configure.ac
  44. autoreconf -if
  45. %configure \
  46. --disable-dependancy-tracking
  47. make %{?_smp_mflags}
  48. %install
  49. rm -rf %{buildroot}
  50. # dirs
  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. mkdir -p %{buildroot}%{_var}/log/dirmngr
  55. mkdir -p %{buildroot}%{_var}/run/dirmngr
  56. make install DESTDIR=%{buildroot}
  57. # dirmngr.log, logrotate
  58. install -p -m644 -D %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/dirmngr
  59. # conf files
  60. install -p -m644 %{SOURCE10} %{SOURCE11} %{buildroot}%{_sysconfdir}/dirmngr/
  61. # autocreate /var/run/dirmngr on boot
  62. install -p -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/dirmngr.conf
  63. %find_lang %{name}
  64. ## unpackaged files
  65. rm -f %{buildroot}%{_infodir}/dir
  66. rm -rf %{buildroot}%{_docdir}/dirmngr/examples
  67. %check
  68. make check
  69. %post
  70. /sbin/install-info %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
  71. %postun
  72. if [ $1 -eq 0 ]; then
  73. /sbin/install-info --delete %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
  74. fi
  75. %clean
  76. rm -rf %{buildroot}
  77. %files -f %{name}.lang
  78. %defattr(-,root,root,-)
  79. %doc COPYING README ChangeLog NEWS
  80. %doc doc/examples
  81. %{_bindir}/dirmngr*
  82. %{_libexecdir}/dirmngr_ldap
  83. %{_infodir}/dirmngr.info*
  84. %{_mandir}/man1/*
  85. # TODO/FIXME
  86. #{_initrddir}/*
  87. ## files/dirs for --daemon mode
  88. %dir %{_sysconfdir}/dirmngr
  89. %config(noreplace) %{_sysconfdir}/dirmngr/*.conf
  90. %config %{_sysconfdir}/logrotate.d/*
  91. %{_prefix}/lib/tmpfiles.d/*.conf
  92. %{_var}/cache/dirmngr/
  93. %{_var}/lib/dirmngr/
  94. %{_var}/log/dirmngr/
  95. %{_var}/run/dirmngr/
  96. %changelog
  97. * Mon Jan 19 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1.1-1
  98. - updated to 1.1.1
  99. - added Patch0 and Patch1 from Fedora
  100. * Mon Dec 15 2014 Tomáš Mráz <tmraz@redhat.com> - 1.1.1-6
  101. - fix missing pth initialization with libgcrypt-1.6.x (#1172997)
  102. * Wed Dec 1 2010 Tomas Mraz <tmraz@redhat.com> - 1.1.0-4
  103. - fix crash on some OCSP responses (patch by Tomas Trnka) (#658230)
  104. - built with libgrypt 1.6.0
  105. * Sun Jun 24 2012 Yoji TOYODA <bsymaato@sea.plala.or.jp> - 1.1.0-1
  106. - update to 1.1.0
  107. - remove Patch100
  108. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.2-2
  109. - rebuilt with openldap-2.4.11
  110. * Thu Aug 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.2-1
  111. - initial build for VineSeed
  112. * Fri Aug 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-1
  113. - dirmngr-1.0.2
  114. * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
  115. - respin (gcc43)
  116. * Thu Jan 03 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1
  117. - dirmngr-1.0.1
  118. * Tue Dec 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-7
  119. - respin for openldap
  120. * Wed Oct 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-6
  121. - /var/log/dirmngr.log -> /var/log/dirmngr/dirmngr.log
  122. - remove use of %%ghost (e.g. dirmngr.log shouldn't be owned)
  123. - BR: gettext
  124. * Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-5
  125. - BR: gawk
  126. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-4
  127. - respin (BuildID)
  128. * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3
  129. - License: GPLv2+
  130. * Wed Nov 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0.0-2
  131. - dirmngr-1.0.0
  132. * Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-2
  133. - BR: libassuan-static
  134. * Tue Sep 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-1
  135. - dirmngr-0.9.6
  136. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-5
  137. - fc6 respin
  138. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-4
  139. - %%config(noreplace) %%_sysconfdir/logrotate.d/dirmngr
  140. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-3
  141. - use 'iconv -f iso-8859-1 -t utf-8' to avoid dropping characters
  142. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-2
  143. - remove non-ASCII chars from dirmngr.info
  144. - %%config %%_sysconfdir/logrotate.d/dirmngr
  145. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-1
  146. - 0.9.4
  147. - %%doc COPYING
  148. - drop upstreamed info patch
  149. - use logrotate on dirmngr.log
  150. - add comment to (previously) empty ldapservers.conf
  151. * Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.3-1
  152. - 0.9.3
  153. * Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-3
  154. - create/own more files/dirs for --daemon mode
  155. - TODO: proper init script
  156. * Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-2
  157. - drop BR: libgpg-error-devel, texinfo
  158. - drop goofy conditional 'make install-strip '
  159. - BR: libksba-devel >= 0.9.11
  160. - BR: libassuan-devel >= 0.6.8
  161. - fix spelling error(s) in %%description
  162. - --disable-dependancy-tracking
  163. * Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-1
  164. - 0.9.2
  165. * Mon Mar 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-0.fdr.1
  166. - 0.9.1
  167. * Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.2
  168. - fix info entry (so deletion/uninstallation works)
  169. * Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.1
  170. - 0.9.0
  171. * Thu Dec 16 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.2
  172. - 64bit fix (look for openldap in %%_libdir, not just /usr/lib)
  173. * Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.1
  174. - first try