]> git.pld-linux.org Git - packages/perl-DelimMatch.git/blobdiff - perl-DelimMatch.spec
- cosmetic unification: s/^%define\s+(pdir|pnam)\s+/%define\t$1\t/
[packages/perl-DelimMatch.git] / perl-DelimMatch.spec
index 68c64b57b1ac69223955910516525324f2770193..3ac1aae2f4807261b09dd2123492984ded38a965 100644 (file)
@@ -1,51 +1,57 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       DelimMatch perl module
-Summary(pl):   Modu³ perla DelimMatch
+%define        pdir    Text
+%define        pnam    DelimMatch
+Summary:       DelimMatch - find regexp delimited strings with proper nesting
+Summary(pl):   DelimMatch - poszukiwanie ³añcuchów ograniczonych wyra¿eniami regularnymi
 Name:          perl-DelimMatch
-Version:       1.03
-Release:       6
-License:       GPL
+Version:       1.06a
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(cs):     Vývojové prostøedky/Programovací jazyky/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(es):     Desarrollo/Lenguajes/Perl
-Group(fr):     Development/Langues/Perl
-Group(ja):     ³«È¯/¸À¸ì/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Group(pt):     Desenvolvimento/Linguagens/Perl
-Group(ru):     òÁÚÒÁÂÏÔËÁ/ñÚÙËÉ/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/DelimMatch-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
+# Source0-md5: 8efb70c2326d0b8f551708e9cdc2b649
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 1:5.8.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-DelimMatch - Perl extension to find regexp delimited strings with
+DelimMatch is a Perl extension to find regexp delimited strings with
 proper nesting.
 
 %description -l pl
-Modu³ perla DelimMatch.
+DelimMatch jest rozszerzeniem Perla do wyszukiwania ³añcuchów
+ograniczonych wyra¿eniami regularnymi z w³a¶ciwym zagnie¿d¿eniem.
 
 %prep
-%setup -q -n DelimMatch-%{version}
+%setup -q -n DelimMatch-1.06
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Text/DelimMatch.pm
+%doc README
+%{perl_vendorlib}/Text/DelimMatch.pm
+# empty autosplit.ix
+#%dir %{perl_vendorlib}/auto/Text/DelimMatch
+#%%{perl_vendorlib}/auto/Text/DelimMatch/autosplit.ix
 %{_mandir}/man3/*
This page took 0.040345 seconds and 4 git commands to generate.