perl-XML-Twig-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. %define _use_internal_dependency_generator 0
  2. Name: perl-XML-Twig
  3. Version: 3.48
  4. Release: 1%{?_dist_release}
  5. Summary: A perl module for processing huge XML documents in tree mode.
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~mirod/XML-Twig/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.8.2, perl-XML-Parser >= 2.23
  11. Requires: perl >= 5.8.2, perl-XML-Parser >= 2.23
  12. Buildarch: noarch
  13. Source0: XML-Twig-%{version}.tar.gz
  14. %description
  15. This module provides a way to process XML documents. It is build on
  16. top of XML::Parser. XML::Twig offers a tree interface to the
  17. document, while allowing you to output the parts of it that have been
  18. completely processed. It allows minimal resource (CPU and memory)
  19. usage by building the tree only for the parts of the documents that
  20. need actual processing, through the use of the twig_roots and
  21. twig_print_outside_roots options.
  22. %prep
  23. %setup -q -n XML-Twig-%{version}
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor <<_OPT_
  26. y
  27. _OPT_
  28. make
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  32. make DESTDIR=$RPM_BUILD_ROOT install
  33. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  34. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  35. find $RPM_BUILD_ROOT/usr -type f -print | \
  36. sed "s@^$RPM_BUILD_ROOT@@g" | \
  37. grep -v perllocal.pod | \
  38. grep -v %{_mandir} | \
  39. grep -v "\.packlist" > XML-Twig-%{version}-filelist
  40. if [ "$(cat XML-Twig-%{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 XML-Twig-%{version}-filelist
  49. %defattr(-,root,root)
  50. %{_mandir}/man1/xml*.1*
  51. %{_mandir}/man3/*3pm*
  52. %changelog
  53. * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.48-1
  54. - new upstream release.
  55. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.29-3
  56. - fix typo
  57. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.29-2
  58. - rebuilt with perl-5.12.3
  59. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-1
  60. - rebuilt with perl-5.10.0
  61. - applied new versioning policy
  62. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-0vl1
  63. - new upstream
  64. - changed Group to Development/Libraries
  65. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.15-0vl2
  66. - rebuilt for VineSeed (4.0)
  67. - changed Group to Development/Languages
  68. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 3.15-0vl1
  69. - new upstream release
  70. - build on perl-5.8.6-0vl1
  71. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl2
  72. - built on perl-5.8.2
  73. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl1
  74. - new updtream version
  75. - built on perl-5.8.1
  76. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl2
  77. - build on perl-5.8.0
  78. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl1
  79. - build for VineLinux
  80. * Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
  81. - update to latest version from CPAN
  82. * Mon Aug 26 2002 Chip Turner <cturner@redhat.com>
  83. - rebuild for build failure
  84. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  85. - automated release bump and build
  86. * Wed May 29 2002 cturner@redhat.com
  87. - Specfile autogenerated