perl-libxml-perl-vl.spec 4.0 KB

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