perl-Class-Inner-vl.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Summary: A perlish implementation of Java like inner classes
  2. Name: perl-Class-Inner
  3. Version: 0.1
  4. Release: 3%{?_dist_release}
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Class-Inner/
  8. Source0: http://search.cpan.org/CPAN/authors/id/P/PD/PDCAWLEY/Class-Inner-%{version}.tar.gz
  9. # Upstream RT bug 33533
  10. Patch0: perl-Class-Inner-0.1-perl510-testfix.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl >= 5.004
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. Yet another implementation of an anonymous class with per object
  19. overrideable methods, but with the added attraction of sort of working
  20. dispatch to the parent class's method.
  21. %prep
  22. %setup -q -n Class-Inner-%{version}
  23. %patch0 -p1
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  26. make
  27. %install
  28. rm -rf %{buildroot}
  29. make DESTDIR=%{buildroot} pure_install
  30. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  31. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  32. chmod -R u+w $RPM_BUILD_ROOT/*
  33. %check
  34. make test
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %defattr(-,root,root)
  39. %doc README Changes
  40. %dir %{perl_vendorlib}/Class
  41. %{perl_vendorlib}/Class/*
  42. %{_mandir}/man3/*.3*
  43. %changelog
  44. * Wed Dec 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.1-3
  45. - rebuilt with perl 5.16.3
  46. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-2
  47. - rebuild with perl-5.12.3
  48. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-1vl5
  49. - applied new versioning policy
  50. - added Patch0 from Fedora for fixing test on perl 5.10
  51. * Thu Feb 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-0vl2
  52. - changed Group Development/Libraries
  53. * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.1-0vl1
  54. - first build for Vine Linux