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