1 | %define pkgname Text-Template |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 1.46 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/~mjd/Text-Template/ |
---|
10 | |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/M/MJ/MJD/%{pkgname}-%{version}.tar.gz |
---|
12 | |
---|
13 | Summary: Text::Template - Expand template text with embedded Perl |
---|
14 | Summary(ja): Text::Template - Perl が埋め込まれたテンプレートテキストの拡張 |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | # Dependency |
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | Packager: yasumichi |
---|
25 | |
---|
26 | |
---|
27 | %description |
---|
28 | This is a library for generating form letters, building HTML pages, or |
---|
29 | filling in templates generally. A `template' is a piece of text that has |
---|
30 | little Perl programs embedded in it here and there. When you `fill in' a |
---|
31 | template, you evaluate the little programs and replace them with their |
---|
32 | values. |
---|
33 | |
---|
34 | You can store a template in a file outside your program. People can modify |
---|
35 | the template without modifying the program. You can separate the formatting |
---|
36 | details from the main code, and put the formatting parts of the program into |
---|
37 | the template. That prevents code bloat and encourages functional separation. |
---|
38 | |
---|
39 | #%%description -l ja |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q -n %{pkgname}-%{version} |
---|
43 | |
---|
44 | %build |
---|
45 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
46 | %{__make} %{?_smp_mflags} |
---|
47 | |
---|
48 | %install |
---|
49 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
50 | %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT} |
---|
51 | |
---|
52 | # remove unnecessary files. |
---|
53 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
54 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
55 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
56 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
57 | |
---|
58 | # generate file list |
---|
59 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
60 | sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files |
---|
61 | |
---|
62 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
63 | echo "ERROR: EMPTY FILE LIST" |
---|
64 | exit -1 |
---|
65 | fi |
---|
66 | |
---|
67 | |
---|
68 | %clean |
---|
69 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
70 | |
---|
71 | |
---|
72 | %files -f %{name}.files |
---|
73 | %defattr(-,root,root) |
---|
74 | %doc COPYING README |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.46-1 |
---|
78 | - updated to 1.46 |
---|
79 | - built with perl 5.16.3 |
---|
80 | - added URL tag |
---|
81 | |
---|
82 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.45-1 |
---|
83 | - initial build for Vine Linux |
---|