]> git.pld-linux.org Git - packages/perl-Tie-IxHash.git/blobdiff - perl-Tie-IxHash.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Tie-IxHash.git] / perl-Tie-IxHash.spec
index 96a7ba34dc559a230fed93930c47e472d7fd3b7f..4fa36c44e2df5550ec11d252ac5e572eb4ab2f1c 100644 (file)
@@ -1,53 +1,61 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       Tie-IxHash perl module
-Summary(pl):   Modu³ perla Tie-IxHash
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%define                pdir    Tie
+%define                pnam    IxHash
+Summary:       Tie::IxHash - ordered associative arrays for Perl
+Summary(pl.UTF-8):     Tie::IxHash - uporządkowane tablice asocjacyjne dla Perla
 Name:          perl-Tie-IxHash
-Version:       1.21
-Release:       3
-Copyright:     GPL
+Version:       1.23
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/Tie/Tie-IxHash-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-authors/id/C/CH/CHORNY/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 8393f2ced231533c3e714abad582f291
+URL:           http://search.cpan.org/dist/Tie-IxHash/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Tie-IxHash perl module. 
-
-%description -l pl
-Modu³ perla Tie-IxHash.
+This Perl module implements Perl hashes that preserve the order in
+which the hash elements were added. The order is not affected when
+values corresponding to existing keys in the IxHash are changed. The
+elements can also be set to any arbitrary supplied order. The familiar
+perl array operations can also be performed on the IxHash.
+
+%description -l pl.UTF-8
+Ten moduł Perla jest implementacją haszy, które zachowują kolejność, w
+jakiej elementy były dodawane. Kolejność nie ulega zmianie kiedy
+modyfikowane są wartości odpowiadające istniejącym kluczom w obiekcie
+IxHash. Elementy mogą być także ustawiane w zadanej kolejności. Znane
+operacje na tablicach perlowych mogą być także wykonywane na typie
+IxHash.
 
 %prep
-%setup -q -n Tie-IxHash-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Tie/IxHash
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README}.gz
-
-%{perl_sitelib}/Tie/IxHash.pm
-%{perl_sitearch}/auto/Tie/IxHash
-
-%{_mandir}/man3/*
+%doc Changes README
+%{perl_vendorlib}/Tie/IxHash.pm
+%{_mandir}/man3/Tie::IxHash.3pm*
This page took 0.070185 seconds and 4 git commands to generate.