]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions |
d69b89cf | 9 | Summary(pl.UTF-8): Getopt::Declare - wyrażone deklaracyjnie przez wyrażenia regularne argumenty linii polecenia |
89fe77a4 | 10 | Name: perl-Getopt-Declare |
1c809cd8 | 11 | Version: 1.14 |
addf0af0 | 12 | Release: 1 |
2eae5635 | 13 | License: Artistic |
89fe77a4 | 14 | Group: Development/Languages/Perl |
74514392 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
1c809cd8 | 16 | # Source0-md5: 7ed52d0279abcb34c366369af8ac8cb8 |
715c0d5e | 17 | Patch0: %{name}-paths.patch |
6937d00c | 18 | URL: http://search.cpan.org/dist/Getopt-Declare/ |
584b0776 | 19 | BuildRequires: perl-Parse-RecDescent |
6937d00c ER |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
3e0c88f6 | 22 | BuildArch: noarch |
391abd14 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89fe77a4 | 24 | |
25 | %description | |
4b8c405a | 26 | Getopt::Declare is yet another command-line argument parser, one which |
b455cee0 | 27 | is specifically designed to be powerful but exceptionally easy to use. |
89fe77a4 | 28 | |
e40ca074 JR |
29 | %description -l pl.UTF-8 |
30 | Getopt::Declare jest jeszcze jednym parserem argumentów linii poleceń, | |
31 | o 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 |
45 | rm -rf $RPM_BUILD_ROOT | |
715c0d5e | 46 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
89fe77a4 | 47 | |
456c3ce9 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
89fe77a4 | 50 | |
6937d00c | 51 | cp -p demos/demo* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
89fe77a4 | 52 | |
89fe77a4 | 53 | %clean |
54 | rm -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}/* |