perl-XML-FOAF-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Summary: Parse FOAF (Friend of a Friend) data using Perl
  2. Summary(ja): Perl を使って FOAF (Friend of a Friend) を解析
  3. Name: perl-XML-FOAF
  4. Version: 0.04
  5. Release: 1%{?_dist_release}
  6. License: Artistic and GPL
  7. Group: Development/Libraries
  8. URL: http://www.cpan.org/dist/XML-FOAF/
  9. Source0: XML-FOAF-%{version}.tar.gz
  10. Source1: XML-FOAF-0.02.pod.ja
  11. Source2: XML-FOAF-Person-0.02.pod.ja
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl-ExtUtils-AutoInstall
  15. BuildRequires: perl-RDF-Core
  16. BuildRequires: perl-URI
  17. BuildRequires: perl-libwww-perl
  18. Requires: perl-RDF-Core
  19. Requires: perl-URI
  20. Requires: perl-libwww-perl
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. Parse FOAF (Friend of a Friend) data using Perl
  26. %description -l ja
  27. Perl を使って FOAF (Friend of a Friend) を解析
  28. %prep
  29. %setup -q -n XML-FOAF-%{version}
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor << _OPT_
  32. n
  33. _OPT_
  34. make
  35. cp %{SOURCE1} FOAF.ja.pm
  36. cp %{SOURCE2} Person.ja.pm
  37. %clean
  38. rm -rf %{buildroot}
  39. %install
  40. rm -rf %{buildroot}
  41. mkdir -p %{buildroot}%{_prefix}
  42. make DESTDIR=%{buildroot} install
  43. rm -f %{buildroot}%{perl_archlib}/perllocal.pod
  44. rm -f %{buildroot}%{perl_sitearch}/perllocal.pod
  45. rm -f %{buildroot}%{perl_sitearch}/auto/XML/FOAF/.packlist
  46. mkdir -p %{buildroot}%{_mandir}/ja/man3
  47. pod2man --section=3 FOAF.ja.pm %{buildroot}%{_mandir}/ja/man3/XML::FOAF.3pm
  48. pod2man --section=3 Person.ja.pm %{buildroot}%{_mandir}/ja/man3/XML::FOAF::Person.3pm
  49. find %{buildroot}%{_prefix} -type f -print |
  50. sed "s@^%{buildroot}@@g" |
  51. grep -v ^%{_mandir} > %{name}.files
  52. if [ "$(cat %{name}.files)X" = "X" ] ; then
  53. echo "ERROR: EMPTY FILE LIST"
  54. exit -1
  55. fi
  56. %check
  57. make test
  58. %files -f %{name}.files
  59. %defattr(-,root,root)
  60. %doc Changes README
  61. %{_mandir}/man3/*
  62. %{_mandir}/ja/man3/*
  63. %dir %{perl_vendorlib}/XML
  64. %dir %{perl_vendorlib}/XML/FOAF
  65. %changelog
  66. * Sun Nov 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.04-1
  67. - updated to 0.04
  68. - built with perl 5.16.3
  69. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.03-2
  70. - rebuild with perl-5.12.3
  71. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.03-1
  72. - new upstream release
  73. - built with perl-5.10.0
  74. - installed files to vendor_perl dir
  75. - applied new versioning policy, spec in UTF-8
  76. - changed Group to Development/Libraries
  77. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.02-0vl2
  78. - build with perl-5.8.6-0vl1
  79. - add manpage translated into Japanese ( Source1,2 ) from perldoc.jp
  80. - add Japanese Summary and description
  81. * Sun Jul 6 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1
  82. - first build for Vine Linux