]> git.pld-linux.org Git - packages/perl-Array-Unique.git/blob - perl-Array-Unique.spec
6d4eeae7ea27b86cc7caa3632cb2dd266408688b
[packages/perl-Array-Unique.git] / perl-Array-Unique.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    Array
7 %define         pnam    Unique
8 Summary:        Array::Unique - tieable array that allows only unique values
9 Summary(pl.UTF-8):      Array::Unique - macierz pozwalająca jedynie na unikalne wartości
10 Name:           perl-Array-Unique
11 Version:        0.08
12 Release:        1
13 License:        GPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Array/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  e3fc4333a97c360348b8c7d0b6b94e83
17 URL:            http://search.cpan.org/dist/Array-Unique/
18 %{?with_tests:BuildRequires:    perl-Tie-IxHash}
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 Array::Compare is a Perl module lets you create an array which will
26 allow only one occurence of any value. Attempt to put in an already
27 existing value has no effect.
28
29 %description -l pl.UTF-8
30 Array::Compare jest rozszerzeniem Perla umożliwiającym tworzenie
31 tablic akceptujących jedynie pojedyncze wystąpienia poszczególnych
32 wartości. Proba dopisania do tablicy istniejącej już w niej wartości
33 będzie ignorowana.
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 Changes README
57 %{perl_vendorlib}/Array/Unique.pm
58 %{_mandir}/man3/*
This page took 0.044467 seconds and 2 git commands to generate.