dirmngr-vl.spec 5.9 KB

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