perl-XML-FOAF-vl.spec 2.5 KB

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