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