]> git.pld-linux.org Git - packages/perl-Set-String.git/blob - perl-Set-String.spec
6ddc540a804f628b5a1ed17f3c6107cda41fe25c
[packages/perl-Set-String.git] / perl-Set-String.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Set
7 %define         pnam    String
8 Summary:        Set::String - strings as objects with lots of handy methods
9 Summary(pl.UTF-8):      Set::String - łańcuchy jako obiekty z wieloma poręcznymi metodami
10 Name:           perl-Set-String
11 Version:        0.03
12 Release:        4
13 License:        unknown
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  bc5fcfac9d732707418b6860bc7ece7d
17 BuildRequires:  perl-devel >= 1:5.8.0
18 %if %{with tests}
19 BuildRequires:  perl-Set-Array >= 0.08
20 BuildRequires:  perl-Want >= 0.05
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Set::String allows you to create strings as objects and use OO-style
28 methods on them. Many convenient methods are provided here that appear
29 in the FAQ's, the Perl Cookbook or posts from comp.lang.perl.misc.
30 In addition, there are Set methods with corresponding (overloaded)
31 operators for the purpose of Set comparison, i.e. +, ==, etc.
32
33 %description -l pl.UTF-8
34 Set::String pozwala na tworzenie łańcuchów jako obiektów i używanie na
35 nich metod. Dostępnych jest wiele wygodnych metod, które podane są w
36 FAQ-ach, Perl Cookbook oraz postach z grupy comp.lang.perl.misc.
37 Dodatkowo są metody Set z odpowiadającymi (przeciążonymi) operatorami
38 do porównywania, np. +, == itd.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm
62 %{_mandir}/man3/*
This page took 0.059205 seconds and 2 git commands to generate.