]>
Commit | Line | Data |
---|---|---|
911e4cd7 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Getopt | |
7 | %define pnam Long-Descriptive | |
8 | Summary: Getopt::Long::Descriptive - Getopt::Long with usage text | |
9 | Summary(pl.UTF-8): Getopt::Long::Descriptive - Getopt::Long z tekstem użycia | |
10 | Name: perl-Getopt-Long-Descriptive | |
fc35ce0f | 11 | Version: 0.077 |
911e4cd7 | 12 | Release: 1 |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Getopt/%{pdir}-%{pnam}-%{version}.tar.gz | |
fc35ce0f | 16 | # Source0-md5: a39971f6f138ebe6004438402620d032 |
911e4cd7 | 17 | URL: http://search.cpan.org/dist/Getopt-Long-Descriptive/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-IO-stringy | |
22 | BuildRequires: perl-Params-Validate >= 0.74 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Convenient wrapper for Getopt::Long and program usage output | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Wygodne opakowanie Getopt::Long i wyjścia o użyciu programu | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} pure_install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes README | |
55 | %{perl_vendorlib}/Getopt/Long/*.pm | |
fc35ce0f | 56 | %dir %{perl_vendorlib}/Getopt/Long/Descriptive |
57 | %{perl_vendorlib}/Getopt/Long/Descriptive/Usage.pm | |
911e4cd7 | 58 | %{_mandir}/man3/* |