perl-XML-XQL-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Name: perl-XML-XQL
  2. Version: 0.68
  3. Release: 1%{?_dist_release}
  4. Summary: Perl module for querying XML tree structures with XQL
  5. Summary(ja): XQL を利用して XML ツリー構造を問い合わせるための Perl モジュール
  6. License: GPL+ or Artistic
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/XML-XQL/
  9. Source0: http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-XQL-%{version}.tar.gz
  10. Patch0: %{name}-tput-147465.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. BuildRequires: perl(Date::Manip) >= 5.33
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(LWP::UserAgent)
  16. BuildRequires: perl(Parse::Yapp)
  17. BuildRequires: perl(XML::DOM) >= 1.29
  18. BuildRequires: perl(XML::Parser) >= 2.30
  19. Requires: perl(XML::DOM)
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. Source99: XML-XQL-filter-provides.sh
  22. %global real_perl_provides %{__perl_provides}
  23. %define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
  24. %description
  25. This is a Perl extension that allows you to perform XQL queries on XML
  26. object trees. Currently only the XML::DOM module is supported, but
  27. other implementations, like XML::Grove, may soon follow.
  28. %prep
  29. %setup -q -n XML-XQL-%{version}
  30. %patch0 -p0
  31. sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
  32. chmod +x %{__perl_provides}
  33. %build
  34. %{__perl} Makefile.PL INSTALLDIRS=vendor
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  39. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  40. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  41. %{_fixperms} $RPM_BUILD_ROOT/*
  42. %check
  43. make test
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT %{__perl_provides}
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc Changes README
  49. %{_bindir}/xql.pl
  50. %{perl_vendorlib}/XML/
  51. %{_mandir}/man3/XML::XQL*.3*
  52. %changelog
  53. * Wed Sep 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.68-1
  54. - initial build for Vine Linux
  55. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.68-8
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  57. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.68-7
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  59. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.68-6
  60. - Rebuild for perl 5.10 (again)
  61. * Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.68-5
  62. - rebuild for new perl
  63. * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.68-4
  64. - Reformat to match cpanspec output.
  65. - Fix find option order.
  66. - Use fixperms macro instead of our own chmod incantation.
  67. - BR ExtUtils::MakeMaker.
  68. * Mon Aug 27 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.68-3
  69. - Rebuild for FC6
  70. * Thu Jun 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.68-2
  71. - rebuilt and spec clean.
  72. * Sun Nov 6 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-1
  73. - First Fedora Extras release.
  74. * Thu Nov 3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.3
  75. - Add minimum version to XML::DOM build dependency, filter out
  76. versionless perl(XML::DOM) provision (#172332, Ralf Corsepius).
  77. * Thu Nov 3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.2
  78. - Fix insecure $PATH error in taint mode (#147465).
  79. - Avoid warnings with empty (but defined) $TERM (#147465).
  80. * Thu Oct 27 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.1
  81. - First build (#128879).