]> git.pld-linux.org Git - packages/perl-Getopt-Declare.git/blobdiff - perl-Getopt-Declare.spec
- mass attack: s/%patch /%patch0 / -- usefull for overloaded %patch macro
[packages/perl-Getopt-Declare.git] / perl-Getopt-Declare.spec
index 12ee8f8c7aa62274580e3228d3ecbb2ee33a44a7..3cd296647693cc2401bf4303007990ae9e056d45 100644 (file)
@@ -1,54 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       Getopt-Declare perl module
-Summary(pl):   Modu³ perla Getopt-Declare
+%define                pdir    Getopt
+%define                pnam    Declare
+Summary:       Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions
+Summary(pl):   Getopt::Declare - wyra¿one deklaracyjnie przez wyra¿enia regularne argumenty linii polecenia
 Name:          perl-Getopt-Declare
-Version:       1.08
-Release:       2
-License:       GPL
+Version:       1.11
+Release:       1
+License:       Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Getopt/Getopt-Declare-%{version}.tar.gz
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 2bbc6f770af28d5b9511be071a9ab03e
 Patch0:                %{name}-paths.patch
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl-Parse-RecDescent
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Getopt-Declare is yet another command-line argument parser, one which
+Getopt::Declare is yet another command-line argument parser, one which
 is specifically designed to be powerful but exceptionally easy to use.
 
 %description -l pl
-Getopt-Declare jest jeszcze jednym parserem argumentów linii poleceñ,
-o wielkich mozliwo¶ciach, a jednocze¶nie wyj±tkowo ³atwym w u¿yciu.
+Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceñ,
+o wielkich mo¿liwo¶ciach, a jednocze¶nie wyj±tkowo ³atwym w u¿yciu.
 
 %prep
-%setup -q -n Getopt-Declare-%{version}
-%patch -p1
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 install demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-gzip -9nf Changes README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Getopt/Declare.pm
+%doc Changes README
+%{perl_vendorlib}/Getopt/Declare.pm
 %{_mandir}/man3/*
-%{_examplesdir}/%{name}-%{version}
+%dir %{_examplesdir}/%{name}-%{version}
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*
This page took 0.125753 seconds and 4 git commands to generate.