perl-Data-Phrasebook-Loader-YAML-vl.spec 1.7 KB

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