perl-LDAP-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. Name: perl-LDAP
  2. Version: 0.44
  3. Release: 2%{?_dist_release}
  4. Summary: LDAP Perl module
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/perl-ldap/
  8. Source0: http://www.cpan.org/authors/id/G/GB/GBARR/perl-ldap-%{version}.tar.gz
  9. BuildArch: noarch
  10. # [Core Features]
  11. BuildRequires: perl(Convert::ASN1)
  12. BuildRequires: perl(IO::Socket::SSL)
  13. # [optional modules]
  14. BuildRequires: perl(Authen::SASL) >= 2.00
  15. BuildRequires: perl(URI::ldap) >= 1.1
  16. BuildRequires: perl(MIME::Base64)
  17. BuildRequires: perl(XML::SAX::Writer)
  18. # [test]
  19. BuildRequires: perl(Test::More)
  20. BuildRequires: perl(LWP::UserAgent)
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Requires: perl(Authen::SASL)
  23. Provides: perl-ldap = %{version}-%{release}
  24. Obsoletes: perl-ldap < 0.44
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: shaolin
  28. %description
  29. Net::LDAP is a collection of modules that implements a LDAP services API
  30. for Perl programs. The module may be used to search directories or perform
  31. maintenance functions such as adding, deleting or modifying entries.
  32. %description -l ja
  33. Net::LDAP は、LDAP サービス API を実装する Perl モジュール集です。
  34. このモジュールを使って、LDAP ディレクトリ検索や、LDAP エントリの
  35. 追加・削除・修正などの機能を Perl から利用可能になります。
  36. %prep
  37. %setup -q -n perl-ldap-%{version}
  38. chmod -c 644 bin/* contrib/* lib/Net/LDAP/DSML.pm
  39. %{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' contrib/*
  40. # Filter unwanted Provides:
  41. cat << \EOF > %{name}-prov
  42. #!/bin/sh
  43. %{__perl_provides} $* |\
  44. sed -e '/perl(Net::LDAP::Filter)$/d'
  45. EOF
  46. %define __perl_provides %{_builddir}/perl-ldap-%{version}/%{name}-prov
  47. chmod +x %{__perl_provides}
  48. %build
  49. %{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf %{buildroot}
  53. make pure_install DESTDIR=%{buildroot}
  54. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  55. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  56. chmod -R u+w %{buildroot}/*
  57. %check
  58. make test
  59. %clean
  60. rm -rf %{buildroot}
  61. %files
  62. %doc Changes CREDITS
  63. %doc contrib/ bin/
  64. %{perl_vendorlib}/Bundle/
  65. %{perl_vendorlib}/LWP/
  66. %{perl_vendorlib}/Net/
  67. %{_mandir}/man3/*.3pm*
  68. %changelog
  69. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.44-2
  70. - rebuild
  71. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.44-1
  72. - renamed to perl-LDAP from perl-ldap for consistency
  73. - updated to 0.44
  74. - previous Vine changelog as follows:
  75. - Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 0.3202-1vl5
  76. - spec in utf-8
  77. - applied vine5 versioning policy
  78. - Sun Sep 03 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3202-0vl2
  79. - changed Group to Development/Libraries
  80. - Sun Apr 03 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3202-0vl1
  81. - new upstream release
  82. - Tue Feb 08 2005 HOTTA Michihide <hotta@net-newbie.com> 0.31-0vl1
  83. - Initial build for Vine Linux 3.1.
  84. - Mon Feb 23 2004 <yasuma@miraclelinux.com> 0.31-1
  85. - Initial build.
  86. * Mon Feb 6 2012 Marcela Maslanova <mmaslano@redhat.com> - 1:0.44-1
  87. - update which should fix RT#66753
  88. - clean specfile according to new guidelines
  89. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-6
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  91. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1:0.40-5
  92. - Perl mass rebuild
  93. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-4
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  95. * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-3
  96. - 661697 rebuild for fixing problems with vendorach/lib
  97. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-2
  98. - Mass rebuild with perl-5.12.0
  99. * Mon Apr 12 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.40-1
  100. - update
  101. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1:0.34-7
  102. - rebuild against perl 5.10.1
  103. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-6
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  105. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-5
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  107. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.34-4
  108. - rebuild for new perl
  109. * Mon Apr 09 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-3
  110. - Resolves: bz#226267
  111. - Only filter out the unversioned Provides: perl(Net::LDAP::Filter) to
  112. avoid breaking dependencies.
  113. * Thu Apr 05 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-2
  114. - Resolves: bz#226267
  115. - Filter out provides perl(Net::LDAP::Filter) per package review.
  116. * Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-1
  117. - New version: 0.34
  118. * Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 1:0.33-3
  119. - Bugzilla: 207430
  120. - Incorporate fixes from Jose Oliveira's patch
  121. - Add perl(IO::Socket::SSL) as a BuildRequires as well
  122. - Other cleanups from Jose
  123. * Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 0.33-1.3
  124. - Add a requirement for IO::Socket::SSL, per bug #122066
  125. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
  126. - rebuild
  127. * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.33-1.2
  128. - rebuild for new perl-5.8.8
  129. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  130. - rebuilt for new gcc
  131. * Tue Apr 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.33-1
  132. - Update to 0.33.
  133. * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.3202-1
  134. - Update to 0.3202.
  135. - Specfile cleanup. (#153766)
  136. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.31-5
  137. - rebuild
  138. * Wed Mar 10 2004 Chip Turner <cturner@redhat.com> - 0.31-1
  139. - Specfile autogenerated.