[521] | 1 | Summary: A perlish implementation of Java like inner classes |
---|
| 2 | Name: perl-Class-Inner |
---|
| 3 | Version: 0.1 |
---|
[3736] | 4 | Release: 2%{?_dist_release} |
---|
[521] | 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 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildArch: noarch |
---|
| 14 | BuildRequires: perl >= 5.004 |
---|
| 15 | Requires: perl >= 5.004 |
---|
| 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Yet another implementation of an anonymous class with per object |
---|
| 21 | overrideable methods, but with the added attraction of sort of working |
---|
| 22 | dispatch to the parent class's method. |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q -n Class-Inner-%{version} |
---|
| 26 | %patch0 -p1 |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 30 | make |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf %{buildroot} |
---|
| 34 | make DESTDIR=%{buildroot} pure_install |
---|
| 35 | |
---|
| 36 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
| 37 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 38 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
| 39 | |
---|
| 40 | %check |
---|
| 41 | make test |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -rf %{buildroot} |
---|
| 45 | |
---|
| 46 | %files |
---|
| 47 | %defattr(-,root,root) |
---|
| 48 | %doc README Changes |
---|
| 49 | %dir %{perl_vendorlib}/Class |
---|
| 50 | %{perl_vendorlib}/Class/* |
---|
| 51 | %{_mandir}/man3/*.3* |
---|
| 52 | |
---|
| 53 | %changelog |
---|
[3736] | 54 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-2 |
---|
| 55 | - rebuild with perl-5.12.3 |
---|
| 56 | |
---|
[521] | 57 | * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-1vl5 |
---|
| 58 | - applied new versioning policy |
---|
| 59 | - added Patch0 from Fedora for fixing test on perl 5.10 |
---|
| 60 | |
---|
| 61 | * Thu Feb 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-0vl2 |
---|
| 62 | - changed Group Development/Libraries |
---|
| 63 | |
---|
| 64 | * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.1-0vl1 |
---|
| 65 | - first build for Vine Linux |
---|