perl-libxml-perl-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. %define _use_internal_dependency_generator 0
  3. %define module libxml-perl
  4. Summary: A collection of Perl modules for working with XML.
  5. Name: perl-%{module}
  6. Version: 0.08
  7. Release: 1%{?_dist_release}
  8. License: distributable
  9. Group: Development/Libraries
  10. Source0: http://search.cpan.org/CPAN/authors/id/K/KM/KMACLEOD/%{module}-%{version}.tar.gz
  11. URL: http://www.cpan.org
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl >= 5.8.2
  15. BuildRequires: perl-XML-Parser >= 2.19
  16. Requires: perl >= 5.8.2
  17. Requires: perl-XML-Parser >= 2.19
  18. %description
  19. libxml-perl is a collection of smaller Perl modules, scripts, and
  20. documents for working with XML in Perl. libxml-perl software works in
  21. combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and
  22. others.
  23. %prep
  24. %setup -q -n %{module}-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  31. make DESTDIR=$RPM_BUILD_ROOT install
  32. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  33. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  34. find $RPM_BUILD_ROOT/usr -type f -print |
  35. sed "s@^$RPM_BUILD_ROOT@@g" |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > perl-libxml-perl-%{version}-filelist
  38. if [ "$(cat perl-libxml-perl-%{version}-filelist)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. %check
  43. make test || /bin/true
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files -f perl-libxml-perl-%{version}-filelist
  47. %defattr(-,root,root)
  48. %doc README ChangeLog Changes doc examples
  49. %dir %{perl_vendorlib}/Data
  50. %dir %{perl_vendorlib}/Data/Grove
  51. %dir %{perl_vendorlib}/XML
  52. %dir %{perl_vendorlib}/XML/Handler
  53. %dir %{perl_vendorlib}/XML/Parser
  54. %dir %{perl_vendorlib}/XML/PatAct
  55. %changelog
  56. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.0.8-1
  57. - applied new versioning policy
  58. - rebuilt with perl-5.10.0-2
  59. - changed Group to Development/Libraries
  60. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.0.8-0vl2
  61. - rebuilt with perl-5.8.6
  62. - changed Group to Development/Languages
  63. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 0.0.8-0vl1
  64. - new upstream release
  65. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 0.0.7-28vl4
  66. - rebuilt on perl-5.8.2
  67. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 0.0.7-28vl3
  68. - rebuilt on perl-5.8.1
  69. * Wed Apr 30 2003 IWAI Masaharu <iwai@alib.jp> 0.07-28vl2
  70. - build with perl-5.8.0
  71. - add some documents
  72. - add some directories
  73. - add perl-XML-Parser's version in {Build,}Requires
  74. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 0.07-28vl1
  75. - build for VineLinux
  76. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  77. - automated release bump and build
  78. * Wed Mar 27 2002 Chip Turner <cturner@redhat.com>
  79. - move to vendor_perl
  80. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  81. - automated rebuild
  82. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 0.07-5
  83. - imported from mandrake. tweaked man path.
  84. * Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.07-4mdk
  85. - Rebuild for the latest perl.
  86. - Remove Distribution and Vendor tag.
  87. - Don't run make test for now.
  88. * Tue Mar 13 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 0.07-3mdk
  89. - BuildArch: noarch
  90. - add docs
  91. - rename spec file
  92. - clean up spec a bit
  93. - run automated tests
  94. * Sat Sep 16 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 0.07-2mdk
  95. - Call spec-helper before creating filelist
  96. * Wed Aug 09 2000 Jean-Michel Dault <jmdault@mandrakesoft.com> 0.07-1mdk
  97. - Macroize package