]>
Commit | Line | Data |
---|---|---|
1085dd16 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (tests are broken) | |
b955c459 | 4 | |
f8cca524 | 5 | %define pdir Term |
6 | %define pnam Query | |
b955c459 | 7 | %include /usr/lib/rpm/macros.perl |
1085dd16 | 8 | Summary: Term::Query - table-driven query routine |
b60d2267 | 9 | Summary(pl.UTF-8): Term::Query - oparta na tablicach funkcja realizująca zapytania |
1085dd16 JB |
10 | Name: perl-Term-Query |
11 | Version: 2.0 | |
9615318a | 12 | Release: 2 |
d131b42e | 13 | License: GPL v2+ |
1085dd16 JB |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: eba5ba66fdf9e98464472dbc89c49dab | |
b955c459 | 17 | URL: http://search.cpan.org/dist/Term-Query/ |
1085dd16 JB |
18 | BuildRequires: perl-Array-PrintCols |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Term::Query is a Perl 5 module, which performs generalized queries on | |
26 | various kinds of values. Validation and normalization of input, based | |
27 | on the type, is automated, as is error reporting and re-solicitation | |
28 | of input. | |
29 | ||
4d7d14f5 JR |
30 | %description -l pl.UTF-8 |
31 | Term::Query to moduł Perla 5 wykonujący uogólnione zapytania dla | |
32 | różnych rodzajów wartości. Zawiera automatyczną kontrolę poprawności i | |
33 | normalizację wejścia w zależności od typu, a także zgłaszanie błędów i | |
34 | ponowne odpytywanie wejścia. | |
1085dd16 JB |
35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
1085dd16 JB |
42 | %{__make} |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc ChangeLog Copyright README | |
58 | %{perl_vendorlib}/Term/Query.pm | |
59 | %{_mandir}/man3/* |