source: projects/specs/trunk/p/perl-CGI-SSI/perl-CGI-SSI-vl.spec @ 9187

Revision 9187, 1.8 KB checked in by inagaki, 9 years ago (diff)

2014-12-23 Ryoichi INAGAKI <ryo1@…>

  • perl-CGI-FormBuilder?, perl-Devel-{EnforceEncapsulation?, GlobalDestruction?}, perl-Moose, perl-Net-{Pcap, Radius, Telnet, Write}, perl-Template-Toolkit, perl-Text-Unidecode, perl-XML-RSS: updated
  • perl-CGI-SSI, perl-Geography-Countries, perl-MIME-Lite-TT, perl-MP3-Info, perl-Text-Glob: rebuilt
  • perl-Sub-Exporter-Progressive: new


Line 
1%define pkgname CGI-SSI
2
3# Basic Information
4Name:           perl-%{pkgname}
5Version:        0.92
6Release:        2%{?_dist_release}
7Summary:        CGI::SSI - Use SSI from CGI scripts
8Summary(ja):    CGI::SSI - CGI スクリプトからの SSI の利用
9
10Group:          Development/Libraries
11License:        Artistic or GPL
12URL:            http://search.cpan.org/~james/CGI-SSI/
13
14Source0:        http://search.cpan.org/CPAN/authors/id/J/JA/JAMES/%{pkgname}-%{version}.tar.gz
15
16BuildRoot:      %{_tmppath}/%{name}-%{version}-root
17BuildArch:      noarch
18# Dependency
19BuildRequires:  perl
20Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
21
22Vendor:         Project Vine
23Distribution:   Vine Linux
24Packager:       yasumichi
25
26
27%description
28CGI::SSI - Use SSI from CGI scripts
29
30%description -l ja
31CGI::SSI - CGI スクリプトからの SSI の利用
32
33%prep
34%setup -q -n CGI-SSI-0.92
35
36chmod -x Changes README
37
38%build
39%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
40%{__make} %{?_smp_mflags}
41
42%install
43%{__rm} -rf ${RPM_BUILD_ROOT}
44%{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
45
46# remove unnecessary files.
47find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
48find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
49find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
50find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
51
52# generate file list
53find $RPM_BUILD_ROOT%{_prefix} -type f -print |
54        sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
55
56if [ "$(cat %{name}.files)X" = "X" ] ; then
57        echo "ERROR: EMPTY FILE LIST"
58        exit -1
59fi
60
61
62%clean
63%{__rm} -rf ${RPM_BUILD_ROOT}
64
65
66%files -f %{name}.files
67%defattr(-,root,root)
68%doc Changes README
69
70%changelog
71* Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.92-2
72- rebuilt with perl 5.16.3
73
74* Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.92-1
75- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.