]> git.pld-linux.org Git - SPECS.git/blob - perl-String-Checker.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / perl-String-Checker.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    String
6 %define         pnam    Checker
7 Summary:        String::Checker - an extensible string validation module
8 Summary(pl.UTF-8):      String::Checker - rozszerzalny moduł sprawdzający poprawność łańcuchów
9 Name:           perl-String-Checker
10 Version:        0.03
11 Release:        4
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  d7187638b490464c209f6d132450f0cb
17 URL:            http://search.cpan.org/dist/String-Checker/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Date-Manip
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is a very simple library for checking a string against a given
28 set of expectations. It contains a number of pre-defined expectations
29 which can be used, and can also be extended to perform any arbitrary
30 match or modification on a string.
31
32 %description -l pl.UTF-8
33 To jest bardzo prosta biblioteka do sprawdzania łańcucha pod kątem
34 podanego zestawu oczekiwań. Zawiera wiele predefiniowanych oczekiwań,
35 które mogą być użyte, a także rozszerzone tak, aby przeprowadzić
36 dowolne dopasowanie lub modyfikację łańcucha.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{_mandir}/man3/*
This page took 0.031844 seconds and 3 git commands to generate.