]>
Commit | Line | Data |
---|---|---|
84cc7719 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
00604c5c | 4 | # |
84cc7719 | 5 | %include /usr/lib/rpm/macros.perl |
7d97f629 | 6 | %define pdir Config |
7 | %define pnam Auto | |
cbb6840f | 8 | Summary: Config::Auto - magical config file parser |
8cff3380 | 9 | Summary(pl.UTF-8): Config::Auto - magiczny parser plików konfiguracyjnych |
84cc7719 | 10 | Name: perl-Config-Auto |
f6eed20e | 11 | Version: 0.20 |
81e147cf | 12 | Release: 1 |
d3293147 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
84cc7719 | 15 | Group: Development/Languages/Perl |
f6eed20e | 16 | Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz |
17 | # Source0-md5: fadc11b8f908b3d2782849c5e2232585 | |
2e8d2704 | 18 | URL: http://search.cpan.org/dist/Config-Auto/ |
c0c49dad | 19 | %if %{with tests} |
20 | BuildRequires: perl-Config-IniFiles | |
21 | %endif | |
84cc7719 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
00604c5c JB |
28 | Magical config file parser. |
29 | ||
5ebc06ea JR |
30 | %description -l pl.UTF-8 |
31 | Magiczny parser plików konfiguracyjnych. | |
84cc7719 | 32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
c0c49dad | 37 | %{__perl} Makefile.PL -x \ |
84cc7719 | 38 | INSTALLDIRS=vendor |
84cc7719 | 39 | %{__make} |
c0c49dad | 40 | |
84cc7719 | 41 | %{?with_tests:%{__make} test} |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} 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}/Config/Auto.pm | |
56 | %{_mandir}/man3/* |