dirmngr-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # Fedora Review: http://bugzilla.redhat.com/171289
  2. Name: dirmngr
  3. Summary: Client for Managing/Downloading CRLs
  4. Version: 1.0.2
  5. Release: 2%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://www.gnupg.org/
  9. Source0: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2
  10. Source1: ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-%{version}.tar.bz2.sig
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. Source10: dirmngr.conf
  13. Source11: ldapservers.conf
  14. Source12: dirmngr.logrotate
  15. ## upstream patches
  16. Patch100: dirmngr-1.0.2-libgcrypt12.patch
  17. BuildRequires: gawk
  18. BuildRequires: gettext
  19. BuildRequires: libassuan-devel
  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. %patch100 -p1 -b .libgcrypt12
  37. pushd doc
  38. iconv -f iso-8859-1 -t utf-8 dirmngr.texi -o dirmngr.texi.NEW && mv dirmngr.texi.NEW dirmngr.texi
  39. iconv -f iso-8859-1 -t utf-8 dirmngr.info -o dirmngr.info.NEW && mv dirmngr.info.NEW dirmngr.info
  40. popd
  41. %build
  42. %configure \
  43. --disable-dependancy-tracking
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf %{buildroot}
  47. # dirs
  48. mkdir -p %{buildroot}%{_sysconfdir}/dirmngr/trusted-certs
  49. mkdir -p %{buildroot}%{_var}/cache/dirmngr/crls.d
  50. mkdir -p %{buildroot}%{_var}/lib/dirmngr/extra-certs
  51. mkdir -p %{buildroot}%{_var}/log/dirmngr
  52. mkdir -p %{buildroot}%{_var}/run/dirmngr
  53. make install DESTDIR=%{buildroot}
  54. # dirmngr.log, logrotate
  55. install -p -m644 -D %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/dirmngr
  56. # conf files
  57. install -p -m644 %{SOURCE10} %{SOURCE11} %{buildroot}%{_sysconfdir}/dirmngr/
  58. %find_lang %{name}
  59. ## unpackaged files
  60. rm -f %{buildroot}%{_infodir}/dir
  61. rm -rf %{buildroot}%{_docdir}/dirmngr/examples
  62. %check
  63. make check
  64. %post
  65. /sbin/install-info %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
  66. %postun
  67. if [ $1 -eq 0 ]; then
  68. /sbin/install-info --delete %{_infodir}/dirmngr.info.gz %{_infodir}/dir ||:
  69. fi
  70. %clean
  71. rm -rf %{buildroot}
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %doc COPYING README ChangeLog NEWS
  75. %doc doc/examples
  76. %{_bindir}/dirmngr*
  77. %{_libexecdir}/dirmngr_ldap
  78. %{_infodir}/dirmngr.info*
  79. %{_mandir}/man1/*
  80. # TODO/FIXME
  81. #{_initrddir}/*
  82. ## files/dirs for --daemon mode
  83. %dir %{_sysconfdir}/dirmngr
  84. %config(noreplace) %{_sysconfdir}/dirmngr/*.conf
  85. %config %{_sysconfdir}/logrotate.d/*
  86. %{_var}/cache/dirmngr/
  87. %{_var}/lib/dirmngr/
  88. %{_var}/log/dirmngr/
  89. %{_var}/run/dirmngr/
  90. %changelog
  91. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.2-2
  92. - rebuilt with openldap-2.4.11
  93. * Thu Aug 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.2-1
  94. - initial build for VineSeed
  95. * Fri Aug 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-1
  96. - dirmngr-1.0.2
  97. * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
  98. - respin (gcc43)
  99. * Thu Jan 03 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1
  100. - dirmngr-1.0.1
  101. * Tue Dec 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-7
  102. - respin for openldap
  103. * Wed Oct 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-6
  104. - /var/log/dirmngr.log -> /var/log/dirmngr/dirmngr.log
  105. - remove use of %%ghost (e.g. dirmngr.log shouldn't be owned)
  106. - BR: gettext
  107. * Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-5
  108. - BR: gawk
  109. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-4
  110. - respin (BuildID)
  111. * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3
  112. - License: GPLv2+
  113. * Wed Nov 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0.0-2
  114. - dirmngr-1.0.0
  115. * Mon Nov 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-2
  116. - BR: libassuan-static
  117. * Tue Sep 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.6-1
  118. - dirmngr-0.9.6
  119. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-5
  120. - fc6 respin
  121. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-4
  122. - %%config(noreplace) %%_sysconfdir/logrotate.d/dirmngr
  123. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-3
  124. - use 'iconv -f iso-8859-1 -t utf-8' to avoid dropping characters
  125. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-2
  126. - remove non-ASCII chars from dirmngr.info
  127. - %%config %%_sysconfdir/logrotate.d/dirmngr
  128. * Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.4-1
  129. - 0.9.4
  130. - %%doc COPYING
  131. - drop upstreamed info patch
  132. - use logrotate on dirmngr.log
  133. - add comment to (previously) empty ldapservers.conf
  134. * Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.3-1
  135. - 0.9.3
  136. * Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-3
  137. - create/own more files/dirs for --daemon mode
  138. - TODO: proper init script
  139. * Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-2
  140. - drop BR: libgpg-error-devel, texinfo
  141. - drop goofy conditional 'make install-strip '
  142. - BR: libksba-devel >= 0.9.11
  143. - BR: libassuan-devel >= 0.6.8
  144. - fix spelling error(s) in %%description
  145. - --disable-dependancy-tracking
  146. * Thu Oct 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-1
  147. - 0.9.2
  148. * Mon Mar 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-0.fdr.1
  149. - 0.9.1
  150. * Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.2
  151. - fix info entry (so deletion/uninstallation works)
  152. * Fri Jan 07 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.0-0.fdr.1
  153. - 0.9.0
  154. * Thu Dec 16 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.2
  155. - 64bit fix (look for openldap in %%_libdir, not just /usr/lib)
  156. * Wed Oct 20 2004 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.5-0.fdr.1
  157. - first try