perl-Class-Inner-vl.spec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Summary: A perlish implementation of Java like inner classes
  2. Name: perl-Class-Inner
  3. Version: 0.1
  4. Release: 1%{?_dist_release}
  5. Group: Development/Libraries
  6. License: GOL+ 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 >= 5.004
  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. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-1vl5
  45. - applied new versioning policy
  46. - added Patch0 from Fedora for fixing test on perl 5.10
  47. * Thu Feb 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-0vl2
  48. - changed Group Development/Libraries
  49. * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.1-0vl1
  50. - first build for Vine Linux