source: projects/specs/trunk/p/perl-Class-Inspector/perl-Class-Inspector-vl.spec @ 12120

Revision 12120, 2.2 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

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