3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Tie::TextDir Perl module - interface to directory of files
9 Summary(pl.UTF-8): Moduł Perla Tie::TextDir - interfejs do katalogu plików
10 Name: perl-Tie-TextDir
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 05a3fd9ee1632b9dc80d39e0646256fd
18 URL: http://search.cpan.org/dist/Tie-TextDir/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The Tie::TextDir module is a TIEHASH interface which lets you tie a
26 Perl hash to a directory on the filesystem. Each entry in the hash
27 represents a file in the directory.
29 %description -l pl.UTF-8
30 Moduł Tie::TextDir jest interfejsem TIEHASH, pozwalającym na
31 powiązanie perlowego hasza z katalogiem w systemie plików. Każdy
32 element hasza reprezentuje plik w katalogu.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Tie/TextDir.pm