Revision 498,
1.4 KB
checked in by iwaim, 14 years ago
(diff) |
Perl moduleのspecファイルの雛形を更新
|
Rev | Line | |
---|
[494] | 1 | package VineLinux::VSS::Skeleton::PerlModule::Spec; |
---|
| 2 | |
---|
| 3 | 1; |
---|
| 4 | __DATA__ |
---|
[498] | 5 | %define origname |
---|
[494] | 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 | |
---|
[498] | 21 | Distribution: Vine Linux |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Packager: <TMPL_VAR NAME="packager_name"> |
---|
| 24 | |
---|
[494] | 25 | %define __find_requires %{SOURCE1} |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | Perl Module Package |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n %{origname}-%{version} |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 35 | make |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 40 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 41 | |
---|
| 42 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
| 43 | |
---|
| 44 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 45 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 46 | grep -v ^%{_mandir} | |
---|
| 47 | grep -v perllocal.pod | |
---|
| 48 | grep -v "\.packlist" > %{name}.files |
---|
| 49 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 50 | echo "ERROR: EMPTY FILE LIST" |
---|
| 51 | exit -1 |
---|
| 52 | fi |
---|
| 53 | |
---|
| 54 | %check |
---|
| 55 | make test |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | |
---|
| 60 | %files -f %{name}.files |
---|
| 61 | %defattr(-,root,root) |
---|
| 62 | %doc README Changes |
---|
[498] | 63 | %{perl_vendorlib}/%{origname} |
---|
[494] | 64 | %{_mandir}/man3/* |
---|
| 65 | |
---|
| 66 | %changelog |
---|
| 67 | * <TMPL_VAR NAME="generate_date"> <TMPL_VAR NAME="packager_fullname"> <<TMPL_VAR NAME="packager_email">> |
---|
| 68 | - first release for Vine Linux |
---|
Note: See
TracBrowser
for help on using the repository browser.