perl-LDAP-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Name: perl-LDAP
  2. Version: 0.44
  3. Release: 1%{?_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-1
  70. - renamed to perl-LDAP from perl-ldap for consistency
  71. - updated to 0.44
  72. - previous Vine changelog as follows:
  73. - Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 0.3202-1vl5
  74. - spec in utf-8
  75. - applied vine5 versioning policy
  76. - Sun Sep 03 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3202-0vl2
  77. - changed Group to Development/Libraries
  78. - Sun Apr 03 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3202-0vl1
  79. - new upstream release
  80. - Tue Feb 08 2005 HOTTA Michihide <hotta@net-newbie.com> 0.31-0vl1
  81. - Initial build for Vine Linux 3.1.
  82. - Mon Feb 23 2004 <yasuma@miraclelinux.com> 0.31-1
  83. - Initial build.
  84. * Mon Feb 6 2012 Marcela Maslanova <mmaslano@redhat.com> - 1:0.44-1
  85. - update which should fix RT#66753
  86. - clean specfile according to new guidelines
  87. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-6
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  89. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1:0.40-5
  90. - Perl mass rebuild
  91. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.40-4
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  93. * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-3
  94. - 661697 rebuild for fixing problems with vendorach/lib
  95. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.40-2
  96. - Mass rebuild with perl-5.12.0
  97. * Mon Apr 12 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.40-1
  98. - update
  99. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1:0.34-7
  100. - rebuild against perl 5.10.1
  101. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-6
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  103. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.34-5
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  105. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.34-4
  106. - rebuild for new perl
  107. * Mon Apr 09 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-3
  108. - Resolves: bz#226267
  109. - Only filter out the unversioned Provides: perl(Net::LDAP::Filter) to
  110. avoid breaking dependencies.
  111. * Thu Apr 05 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-2
  112. - Resolves: bz#226267
  113. - Filter out provides perl(Net::LDAP::Filter) per package review.
  114. * Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 1:0.34-1
  115. - New version: 0.34
  116. * Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 1:0.33-3
  117. - Bugzilla: 207430
  118. - Incorporate fixes from Jose Oliveira's patch
  119. - Add perl(IO::Socket::SSL) as a BuildRequires as well
  120. - Other cleanups from Jose
  121. * Wed Sep 27 2006 Robin Norwood <rnorwood@redhat.com> - 0.33-1.3
  122. - Add a requirement for IO::Socket::SSL, per bug #122066
  123. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
  124. - rebuild
  125. * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.33-1.2
  126. - rebuild for new perl-5.8.8
  127. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  128. - rebuilt for new gcc
  129. * Tue Apr 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.33-1
  130. - Update to 0.33.
  131. * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.3202-1
  132. - Update to 0.3202.
  133. - Specfile cleanup. (#153766)
  134. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.31-5
  135. - rebuild
  136. * Wed Mar 10 2004 Chip Turner <cturner@redhat.com> - 0.31-1
  137. - Specfile autogenerated.