perl-XML-Parser-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Summary: XML-Parser module for perl
  2. Name: perl-XML-Parser
  3. Version: 2.44
  4. Release: 1%{?_dist_release}
  5. License: distributable
  6. Group: Development/Libraries
  7. Source0: http://www.cpan.org/authors/id/C/CO/COOPERCL/XML-Parser-%{version}.tar.gz
  8. Url: http://search.cpan.org/search?dist=XML-Parser
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.24.2, libexpat >= 1.95.0, expat-devel
  11. BuildRequires: libxcrypt-devel
  12. Requires: perl >= 5.8.6
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. This is a Perl extension interface to James Clark's XML parser, expat.
  18. %prep
  19. %setup -q -n XML-Parser-%{version}
  20. %build
  21. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  22. make
  23. find samples -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!%{__perl}|g"
  24. %install
  25. rm -rf $RPM_BUILD_ROOT
  26. mkdir -p $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man3}
  27. make DESTDIR=$RPM_BUILD_ROOT install
  28. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  29. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  30. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  31. sed "s@^$RPM_BUILD_ROOT@@g" |
  32. grep -v ^%{_mandir} |
  33. grep -v perllocal.pod |
  34. grep -v "\.packlist" > %{name}.files
  35. if [ "$(cat %{name}.files)X" = "X" ] ; then
  36. echo "ERROR: EMPTY FILE LIST"
  37. exit -1
  38. fi
  39. install -m 644 blib/man3/* %{buildroot}%{_mandir}/man3
  40. # %check
  41. # make test
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files -f %{name}.files
  45. %defattr(-,root,root)
  46. %doc README Changes samples
  47. %dir %{perl_vendorarch}/auto/XML
  48. %dir %{perl_vendorarch}/auto/XML/Parser
  49. %dir %{perl_vendorarch}/auto/XML/Parser/Expat
  50. %dir %{perl_vendorarch}/XML
  51. %dir %{perl_vendorarch}/XML/Parser
  52. %dir %{perl_vendorarch}/XML/Parser/Encodings
  53. %dir %{perl_vendorarch}/XML/Parser/Style
  54. %{_mandir}/*/*
  55. %changelog
  56. * Wed May 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.44-1
  57. - new upstream release.
  58. - added BR:libxcrypt-devel.
  59. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.40-2
  60. - build with Perl 5.16
  61. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.40-1
  62. - new upstream release
  63. - add Requires: perl(:MODULE_COMPAT_...)
  64. - fix date for 2.36-2 in changelog
  65. - add directory in files
  66. - add Vendor and Distribution tags
  67. * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36-2
  68. - rebuild with perl-5.12.3
  69. - drop %%check
  70. * Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.36-1vl5
  71. - new upstream release
  72. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.34-1vl5
  73. - rebuild with perl-5.10.0
  74. - installed modules into vendor_perl directory
  75. * Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.34-0vl5
  76. - rebuild with expat-2.0.1
  77. * Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.34-0vl4
  78. - s/Copyright/License/
  79. - add BuildRequires: expat-devel
  80. * Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 2.34-0vl3
  81. - build on perl-5.8.6-0vl1
  82. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl2
  83. - built on perl-5.8.2
  84. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.34-0vl1
  85. - new upstream version
  86. - built on perl-5.8.1
  87. * Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 2.31-0vl2
  88. - rebuild with perl-5.8.0
  89. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.31-0vl1
  90. - first release for Vine Linux