perl-libxml-enno-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define _use_internal_dependency_generator 0
  2. Summary: A collection of Perl modules for XML parsing and validation.
  3. Name: perl-libxml-enno
  4. Version: 1.02
  5. Release: 31%{?_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. Source0: libxml-enno-%{version}.tar.gz
  9. Url: http://www.cpan.org
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root/
  11. BuildRequires: perl >= 5.8.2
  12. Requires: perl >= 5.8.2
  13. Provides: perl(XML::Handler::DOM)
  14. BuildRequires: perl-Parse-Yapp
  15. BuildRequires: perl-libwww-perl
  16. BuildRequires: perl-Date-Manip
  17. BuildArch: noarch
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. libxml-enno contains the modules XML::DOM, XML::XQL, XML::Checker and
  22. several other packages used for parsing XML from Perl.
  23. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  24. # Provide perl-specific find-{provides,requires}.
  25. %define __find_provides /usr/lib/rpm/find-provides.perl
  26. %define __find_requires /usr/lib/rpm/find-requires.perl
  27. %endif
  28. %prep
  29. %setup -q -n libxml-enno-%{version}
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  32. make
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  38. find $RPM_BUILD_ROOT/usr -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > libxml-enno-%{version}-filelist
  42. if [ "$(cat libxml-enno-%{version}-filelist)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. #check
  49. #make test || /bin/true
  50. %files -f libxml-enno-%{version}-filelist
  51. %defattr(-,root,root)
  52. %changelog
  53. * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 1.02-31
  54. - rename to perl-Date-Manip in BuildRequires
  55. - build with perl 5.12.3
  56. - defined __find_{provides,requires} with vl4 and vl5
  57. - add Vendor and Distribution tags
  58. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.02-30
  59. - applied new versioning policy
  60. - rebuilt with perl-5.10.0-2
  61. * Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.02-29vl6
  62. - changed Group to Development/Libraries
  63. - installed files to vendor_perl dir
  64. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.02-29vl5
  65. - build on perl-5.8.6-0vl1
  66. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.02-29vl4
  67. - built on perl-5.8.2
  68. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.02-29vl3
  69. - built on perl-5.8.1
  70. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.02-29vl2
  71. - build on perl-5.8.0
  72. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.02-29vl1
  73. - build for VineLinux
  74. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  75. - automated release bump and build
  76. * Mon Aug 5 2002 Chip Turner <cturner@redhat.com>
  77. - updated description
  78. * Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
  79. - properly claim directories owned by package so they are removed when package is removed
  80. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  81. - automated rebuild
  82. * Fri Dec 7 2001 root <root@redhat.com>
  83. - Spec file was autogenerated.