perl-Data-Phrasebook-vl.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. %define real_name Data-Phrasebook
  2. Summary: Base class for Phrasebook Models
  3. Name: perl-%{real_name}
  4. Version: 0.35
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Data-Phrasebook/
  9. Source0: http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl
  13. BuildRequires: perl(Test::More) >= 0.47
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Module::Pluggable) >= 2.7
  16. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  17. Requires: perl(Test::More) >= 0.47
  18. Requires: perl(Module::Pluggable) >= 2.7
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Base class for Phrasebook Models.
  23. %prep
  24. %setup -q -n %{real_name}-%{version}
  25. %build
  26. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
  27. make %{?_smp_mflags} OPTIMIZE="%{optflags}"
  28. %install
  29. rm -rf %{buildroot}
  30. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  31. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  32. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  33. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  34. chmod -R u+w %{buildroot}/*
  35. chmod -c -x examples/*
  36. %clean
  37. %{__rm} -rf %{buildroot}
  38. %files
  39. %defattr(-, root, root, 0755)
  40. %doc ChangeLog Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.* README
  41. %doc examples
  42. %{perl_vendorlib}/*
  43. %{_mandir}/man3/*
  44. %changelog
  45. * Wed Nov 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.35-1
  46. - updated to 0.35
  47. - built with perl 5.16.3
  48. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.31-1
  49. - initial build for Vine Linux