3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: List::Member - PROLOG's member/2: return index of $x in @y
9 Summary(pl.UTF-8): List::Member - member/2 z PROLOGa: zwraca indeks $x w @y
10 Name: perl-List-Member
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/L/LG/LGODDARD/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b75ecfec47a907e05dd3daab108da9fc
17 URL: http://search.cpan.org/dist/List-Member/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 A tiny routine to achieve the same effect as PROLOG's "member/2".
26 Returns the index of supplied scalar in supplied array, or returns the
27 value of the package's "$NEG" scalar. This can be over-riden for the
28 case when the target is the same as the default "-1".
30 %description -l pl.UTF-8
31 Jest to mała funkcja napisana tak, by dawać taki sam efekt jak
32 "member/2" z PROLOGa. Zwraca indeks podanej liczby w podanej tablicy
33 lub zwraca wartość liczby "$NEG" z pakietu. Ta liczba może być
34 nadpisana na wypadek, gdyby poszukiwana liczba była taka sama, jak
35 domyślna $NEG, czyli -1.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests: %{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %{perl_vendorlib}/%{pdir}/*.pm