perl-XML-NamespaceSupport-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: a simple generic namespace support class for perl
  2. Name: perl-XML-NamespaceSupport
  3. Version: 1.12
  4. Release: 1%{?_dist_release}
  5. License: distributable
  6. Group: Development/Libraries
  7. Source0: http://www.cpan.org/authors/id/R/RB/RBERJON/XML-NamespaceSupport-%{version}.tar.gz
  8. Url: http://search.cpan.org/search?dist=XML-NamespaceSupport
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl >= 2:5.26.2
  12. Requires: perl >= 2:5.26.2
  13. %description
  14. This module offers a simple to process namespaced XML names
  15. (unames) from within any application that may need them. It
  16. also helps maintain a prefix to namespace URI map, and provides
  17. a number of basic checks.
  18. %prep
  19. %setup -q -n XML-NamespaceSupport-%{version}
  20. %build
  21. %{__perl} Makefile.PL INSTALLDIRS=vendor
  22. make OPTIMIZE="$RPM_OPT_FLAGS"
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. make DESTDIR=$RPM_BUILD_ROOT install
  26. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  27. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  28. sed "s@^$RPM_BUILD_ROOT@@g" |
  29. grep -v ^%{_mandir} |
  30. grep -v perllocal.pod |
  31. grep -v "\.packlist" > %{name}.files
  32. if [ "$(cat %{name}.files)X" = "X" ] ; then
  33. echo "ERROR: EMPTY FILE LIST"
  34. exit -1
  35. fi
  36. find ${RPM_BUILD_ROOT} -type f -name .packlist -delete
  37. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -delete
  38. %check
  39. make test
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files -f %{name}.files
  43. %defattr(-,root,root)
  44. %doc README Changes
  45. %{_mandir}/man?/*
  46. %changelog
  47. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12-1
  48. - new upstream release.
  49. - rebuilt with perl-5.26.
  50. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11-1
  51. - new upstream release.
  52. * Fri May 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.09-2
  53. - rebuild with perl-5.12.3
  54. * Fri May 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.09-1
  55. - new upsteram release
  56. - used vendor_perl dir
  57. - changed Group to Development/Libraries
  58. - rebuilt with perl 5.10.0-2
  59. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.08-0vl2
  60. - build on perl-5.8.6-0vl1
  61. * Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 1.08-0vl1
  62. - new upstream version
  63. - changed to License
  64. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.04-0vl1
  65. - first build for Vine Linux