perl-XML-Encoding-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %define _use_internal_dependency_generator 0
  2. %define module XML-Encoding
  3. Summary: A module for parsing encoded map XML files.
  4. Name: perl-%{module}
  5. Version: 2.08
  6. Release: 2%{?_dist_release}
  7. License: Artistic and GPL
  8. Group: Development/Libraries
  9. URL: http://search.cpan.org/~shay/XML-Encoding/
  10. Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/%{module}-%{version}.tar.gz
  11. BuildArch: noarch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: perl-XML-Parser
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. Requires: perl-XML-Parser
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. This module, which is built as a subclass of XML::Parser, provides a
  20. parser for encoding map files, which are XML files. The file
  21. maps/encmap.dtd in the distribution describes the structure of these
  22. files.
  23. %prep
  24. %setup -q -n %{module}-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. #make test || /bin/true
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  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" > XML-Encoding-%{version}-filelist
  40. if [ "$(cat XML-Encoding-%{version}-filelist)X" = "X" ] ; then
  41. echo "ERROR: EMPTY FILE LIST"
  42. exit -1
  43. fi
  44. %check
  45. make test
  46. %files -f XML-Encoding-%{version}-filelist
  47. %defattr(-,root,root)
  48. %changelog
  49. * Wed Nov 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.08-2
  50. - rebuilt with perl 5.16.3
  51. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.08-1
  52. - new upstream release
  53. - add Vendor and Distribution tags
  54. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.07-1
  55. - new upstream release
  56. - updated URL
  57. - changed Group to Development/Libraries
  58. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-24vl5
  59. - applied new versioning policy
  60. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-23vl6
  61. - changed Group to Development/Languages
  62. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.01-23vl5
  63. - build on perl-5.8.6-0vl1
  64. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl4
  65. - rebuilt on perl-5.8.2
  66. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl3
  67. - rebuilt on perl-5.8.1
  68. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl2
  69. - build on perl-5.8.0
  70. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl1
  71. - build for VineLinux
  72. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  73. - automated release bump and build
  74. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  75. - automated rebuild
  76. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.01-2
  77. - imported from mandrake. tweaked man path.
  78. * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 1.01-1mdk
  79. - Newly introduced for Foomatic.