]> git.pld-linux.org Git - packages/perl-Getopt-Declare.git/blame - perl-Getopt-Declare.spec
use generic url
[packages/perl-Getopt-Declare.git] / perl-Getopt-Declare.spec
CommitLineData
456c3ce9 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
6937d00c 4
93bcc472 5%define pdir Getopt
6%define pnam Declare
6937d00c 7%include /usr/lib/rpm/macros.perl
a6058a50 8Summary: Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions
d69b89cf 9Summary(pl.UTF-8): Getopt::Declare - wyrażone deklaracyjnie przez wyrażenia regularne argumenty linii polecenia
89fe77a4 10Name: perl-Getopt-Declare
1c809cd8 11Version: 1.14
addf0af0 12Release: 1
2eae5635 13License: Artistic
89fe77a4 14Group: Development/Languages/Perl
74514392 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
1c809cd8 16# Source0-md5: 7ed52d0279abcb34c366369af8ac8cb8
715c0d5e 17Patch0: %{name}-paths.patch
6937d00c 18URL: http://search.cpan.org/dist/Getopt-Declare/
584b0776 19BuildRequires: perl-Parse-RecDescent
6937d00c
ER
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
3e0c88f6 22BuildArch: noarch
391abd14 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
89fe77a4 24
25%description
4b8c405a 26Getopt::Declare is yet another command-line argument parser, one which
b455cee0 27is specifically designed to be powerful but exceptionally easy to use.
89fe77a4 28
e40ca074
JR
29%description -l pl.UTF-8
30Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceń,
31o wielkich możliwościach, a jednocześnie wyjątkowo łatwym w użyciu.
89fe77a4 32
33%prep
ddc1fc47 34%setup -q -n %{pdir}-%{pnam}-%{version}
c84d9730 35%patch0 -p1
89fe77a4 36
37%build
071be2eb 38%{__perl} Makefile.PL \
167a2c84 39 INSTALLDIRS=vendor
87b5681b 40%{__make}
89fe77a4 41
456c3ce9 42%{?with_tests:%{__make} test}
43
89fe77a4 44%install
45rm -rf $RPM_BUILD_ROOT
715c0d5e 46install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89fe77a4 47
456c3ce9 48%{__make} install \
49 DESTDIR=$RPM_BUILD_ROOT
89fe77a4 50
6937d00c 51cp -p demos/demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89fe77a4 52
89fe77a4 53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
25a6499e 58%doc Changes README
071be2eb 59%{perl_vendorlib}/Getopt/Declare.pm
89fe77a4 60%{_mandir}/man3/*
25a6499e 61%dir %{_examplesdir}/%{name}-%{version}
88647aeb 62%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*
This page took 0.069608 seconds and 4 git commands to generate.