Revision 494,
1.4 KB
checked in by iwaim, 14 years ago
(diff) |
vine-spec-skeleton: Perlモジュールパッケージに対応
|
Line | |
---|
1 | package VineLinux::VSS::Skeleton::PerlModule::Spec; |
---|
2 | |
---|
3 | 1; |
---|
4 | __DATA__ |
---|
5 | %define origname |
---|
6 | |
---|
7 | Summary: Perl Module Package |
---|
8 | Name: <TMPL_VAR NAME="package_name"> |
---|
9 | Version: |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | License: |
---|
12 | Group: Development/Libraries |
---|
13 | Source0: %{origname}-%{version}.tar.gz |
---|
14 | Source1: filter-requires-<TMPL_VAR NAME="package_name">.sh |
---|
15 | Url: |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: perl |
---|
19 | Requires: perl |
---|
20 | |
---|
21 | %define __find_requires %{SOURCE1} |
---|
22 | |
---|
23 | %description |
---|
24 | Perl Module Package |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q -n %{origname}-%{version} |
---|
28 | |
---|
29 | %build |
---|
30 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
31 | make |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf $RPM_BUILD_ROOT |
---|
35 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
36 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
37 | |
---|
38 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
39 | |
---|
40 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
41 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
42 | grep -v ^%{_mandir} | |
---|
43 | grep -v perllocal.pod | |
---|
44 | grep -v "\.packlist" > %{name}.files |
---|
45 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
46 | echo "ERROR: EMPTY FILE LIST" |
---|
47 | exit -1 |
---|
48 | fi |
---|
49 | |
---|
50 | %check |
---|
51 | make test |
---|
52 | |
---|
53 | %clean |
---|
54 | rm -rf $RPM_BUILD_ROOT |
---|
55 | |
---|
56 | %files -f %{name}.files |
---|
57 | %defattr(-,root,root) |
---|
58 | %doc README Changes |
---|
59 | %dir %{perl_vendorlib}/%{origname} |
---|
60 | %{_mandir}/man3/* |
---|
61 | |
---|
62 | %changelog |
---|
63 | * <TMPL_VAR NAME="generate_date"> <TMPL_VAR NAME="packager_fullname"> <<TMPL_VAR NAME="packager_email">> |
---|
64 | - first release for Vine Linux |
---|
Note: See
TracBrowser
for help on using the repository browser.