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