1 | %define pkgname Params-Validate |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 1.13 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | Summary: Params::Validate - Validate method/function parameters |
---|
17 | Summary(ja): Params::Validate - メソッド/関数のパラメーターを検証する |
---|
18 | |
---|
19 | # Dependency |
---|
20 | Requires: perl |
---|
21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
22 | |
---|
23 | BuildRequires: perl |
---|
24 | |
---|
25 | %description |
---|
26 | The Params::Validate module allows you to validate method or function call |
---|
27 | parameters to an arbitrary level of specificity. At the simplest level, it |
---|
28 | is capable of validating the required parameters were given and that no |
---|
29 | unspecified additional parameters were passed in. |
---|
30 | |
---|
31 | It is also capable of determining that a parameter is of a specific type, |
---|
32 | that it is an object of a certain class hierarchy, that it possesses certain |
---|
33 | methods, or applying validation callbacks to arguments. |
---|
34 | |
---|
35 | #%%description -l ja |
---|
36 | #Params::Validate モジュールを使えば、 |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q -n %{pkgname}-%{version} |
---|
40 | |
---|
41 | %build |
---|
42 | %{__perl} Build.PL installdirs="vendor" |
---|
43 | ./Build |
---|
44 | |
---|
45 | %install |
---|
46 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
47 | PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} ./Build install |
---|
48 | |
---|
49 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
50 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
51 | grep -v ^%{_mandir} | |
---|
52 | grep -v perllocal.pod | |
---|
53 | grep -v "\.packlist" > %{name}.files |
---|
54 | |
---|
55 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
56 | echo "ERROR: EMPTY FILE LIST" |
---|
57 | exit -1 |
---|
58 | fi |
---|
59 | |
---|
60 | # remove unnecessary files. |
---|
61 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
62 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
63 | |
---|
64 | |
---|
65 | %clean |
---|
66 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
67 | |
---|
68 | |
---|
69 | %files -f %{name}.files |
---|
70 | %defattr(-,root,root) |
---|
71 | %doc Changes LICENSE README |
---|
72 | |
---|
73 | %changelog |
---|
74 | * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.13-1 |
---|
75 | - new upstream release. |
---|
76 | |
---|
77 | * Thu Jan 26 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.00-1 |
---|
78 | - initial build for Vine Linux |
---|