1 | %define pkgname Sub-Install |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.927 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | Summary: install subroutines into packages easily |
---|
17 | Summary(ja): 簡単にパッケージにサブルーチンをインストールする |
---|
18 | |
---|
19 | # Dependency |
---|
20 | Requires: perl |
---|
21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
22 | |
---|
23 | BuildRequires: perl |
---|
24 | |
---|
25 | %description |
---|
26 | This module makes it easy to install subroutines into packages without the |
---|
27 | unslightly mess of no strict or typeglobs lying about where just anyone can |
---|
28 | see them. |
---|
29 | |
---|
30 | #%%description -l ja |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q -n %{pkgname}-%{version} |
---|
34 | |
---|
35 | %build |
---|
36 | perl Makefile.PL |
---|
37 | %{__make} |
---|
38 | |
---|
39 | %install |
---|
40 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
41 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
42 | |
---|
43 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
44 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
45 | grep -v ^%{_mandir} | |
---|
46 | grep -v perllocal.pod | |
---|
47 | grep -v "\.packlist" > %{name}.files |
---|
48 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
49 | echo "ERROR: EMPTY FILE LIST" |
---|
50 | exit -1 |
---|
51 | fi |
---|
52 | |
---|
53 | # remove unnecessary files. |
---|
54 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
55 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Sub/Install/.packlist |
---|
56 | |
---|
57 | |
---|
58 | %clean |
---|
59 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
60 | |
---|
61 | |
---|
62 | %files -f %{name}.files |
---|
63 | %defattr(-,root,root) |
---|
64 | %doc Changes LICENSE README |
---|
65 | %{_mandir}/*/* |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.0.21-1 |
---|
71 | - update to 927-1 |
---|
72 | |
---|
73 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.925-1 |
---|
74 | - initial build for Vine Linux |
---|