perl-XML-Parser-vl.spec 3.0 KB

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