[6882] | 1 | %define pkgname CGI-FormBuilder |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
[9187] | 5 | Version: 3.09 |
---|
[6882] | 6 | Release: 1%{?_dist_release} |
---|
[9187] | 7 | Summary: CGI::FormBuilder - Easily generate and process stateful forms |
---|
| 8 | Summary(ja): CGI::FormBuilder - 状態をもつフォームを容易に作成および処理する |
---|
| 9 | |
---|
[6882] | 10 | License: Artistic or GPL |
---|
| 11 | Group: Development/Libraries |
---|
[9187] | 12 | URL: http://search.cpan.org/~nwiger/CGI-FormBuilder/ |
---|
| 13 | |
---|
[6882] | 14 | Source0: http://search.cpan.org/CPAN/authors/id/N/NW/NWIGER/%{pkgname}-%{version}.tgz |
---|
[9187] | 15 | |
---|
[6882] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildArch: noarch |
---|
[9187] | 18 | # Dependency |
---|
| 19 | BuildRequires: perl(HTML::Template) >= 2.06 |
---|
| 20 | BuildRequires: perl(Text::Template) >= 1.43 |
---|
| 21 | BuildRequires: perl(Template) >= 2.08 |
---|
| 22 | BuildRequires: perl(CGI::FastTemplate) >= 1.09 |
---|
| 23 | BuildRequires: perl(CGI::SSI) >= 0.92 |
---|
| 24 | BuildRequires: perl(CGI::Session) >= 3.95 |
---|
| 25 | Requires: perl |
---|
| 26 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[6882] | 27 | |
---|
| 28 | Vendor: Project Vine |
---|
| 29 | Distribution: Vine Linux |
---|
| 30 | Packager: yasumichi |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | The goal of CGI::FormBuilder (FormBuilder) is to provide an easy way for you |
---|
| 34 | to generate and process entire CGI form-based applications. |
---|
| 35 | |
---|
| 36 | %description -l ja |
---|
| 37 | CGI::FormBuilder (FormBuilder) の目標は、完全な CGI フォームベースのアプリケ |
---|
| 38 | ーションを作成および処理するための簡単な方法を提供することです。 |
---|
| 39 | |
---|
| 40 | %prep |
---|
[9187] | 41 | %setup -q -n %{pkgname}-%{version} |
---|
[6882] | 42 | |
---|
| 43 | %build |
---|
| 44 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
| 45 | %{__make} %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 49 | %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 50 | |
---|
| 51 | # remove unnecessary files. |
---|
| 52 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
| 53 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
| 54 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
| 55 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 56 | |
---|
| 57 | # generate file list |
---|
| 58 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 59 | sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files |
---|
| 60 | |
---|
| 61 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 62 | echo "ERROR: EMPTY FILE LIST" |
---|
| 63 | exit -1 |
---|
| 64 | fi |
---|
| 65 | |
---|
[9187] | 66 | %check |
---|
| 67 | make test |
---|
[6882] | 68 | |
---|
| 69 | %clean |
---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %files -f %{name}.files |
---|
| 74 | %defattr(-,root,root) |
---|
| 75 | %doc Changes README |
---|
| 76 | |
---|
| 77 | %changelog |
---|
[9187] | 78 | * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.09-1 |
---|
| 79 | - updated to 3.09 |
---|
| 80 | - built with perl 5.16.3 |
---|
| 81 | |
---|
[6882] | 82 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.08-1 |
---|
| 83 | - initial build for Vine Linux |
---|