[4915] | 1 | %define pkgname Class-Inspector |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
[12120] | 5 | Version: 1.34 |
---|
[4915] | 6 | Release: 1%{?_dist_release} |
---|
[9089] | 7 | Summary: Get information about a class and its structure |
---|
| 8 | Summary(ja): クラスおよびその構造について情報を得る |
---|
| 9 | |
---|
[4915] | 10 | License: Artistic or GPL |
---|
| 11 | Group: Development/Libraries |
---|
[9089] | 12 | URL: http://search.cpan.org/~adamk/Class-Inspector/ |
---|
| 13 | |
---|
[4915] | 14 | Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{pkgname}-%{version}.tar.gz |
---|
[9089] | 15 | |
---|
[4915] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9089] | 17 | BuildArch: noarch |
---|
| 18 | # Dependency |
---|
| 19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[4915] | 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: yasumichi |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Class::Inspector allows you to get information about a loaded class. Most or |
---|
| 28 | all of this information can be found in other ways, but they aren't always |
---|
| 29 | very friendly, and usually involve a relatively high level of Perl wizardry, |
---|
| 30 | or strange and unusual looking code. Class::Inspector attempts to provide an |
---|
| 31 | easier, more friendly interface to this information. |
---|
| 32 | |
---|
| 33 | #%%description -l ja |
---|
| 34 | #ここに日本語で詳細を記述してください。 |
---|
| 35 | |
---|
| 36 | %prep |
---|
[9089] | 37 | %setup -q -n %{pkgname}-%{version} |
---|
[4915] | 38 | |
---|
| 39 | %build |
---|
[9089] | 40 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 41 | make %{?_smp_mflags} |
---|
[4915] | 42 | |
---|
| 43 | %install |
---|
| 44 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[9089] | 45 | %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT} |
---|
[4915] | 46 | |
---|
[9089] | 47 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
| 48 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 49 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
[4915] | 50 | |
---|
| 51 | # remove unnecessary files. |
---|
[9089] | 52 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
| 53 | %{__rm} -f ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Class/Inspector/.packlist |
---|
[4915] | 54 | |
---|
[9089] | 55 | %check |
---|
| 56 | make test |
---|
[4915] | 57 | |
---|
| 58 | %clean |
---|
| 59 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 60 | |
---|
| 61 | |
---|
[9089] | 62 | %files |
---|
[4915] | 63 | %defattr(-,root,root) |
---|
[12120] | 64 | %license LICENSE |
---|
| 65 | %doc Changes README |
---|
[9089] | 66 | %{perl_vendorlib}/Class |
---|
[4915] | 67 | %{_mandir}/*/* |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %changelog |
---|
[12120] | 71 | * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.34-1 |
---|
| 72 | - new upstream release. |
---|
| 73 | - rebuilt with perl-5.26. |
---|
| 74 | |
---|
[9089] | 75 | * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.28-1 |
---|
| 76 | - updated to 1.28 |
---|
| 77 | - built with perl 5.16.3 |
---|
| 78 | - installed modules to vendor_perl directory |
---|
| 79 | - added URL |
---|
| 80 | |
---|
[4915] | 81 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.25-1 |
---|
| 82 | - initial build for Vine Linux |
---|