]>
Commit | Line | Data |
---|---|---|
5eee508d | 1 | # |
2 | # Conditional build: | |
3c16c97a | 3 | %bcond_without tests # do not perform "make test" |
62a33959 | 4 | |
5fef3e4e | 5 | %define pdir Apache |
6 | %define pnam ConfigFile | |
62a33959 | 7 | %include /usr/lib/rpm/macros.perl |
d68ea2a5 | 8 | Summary: Apache::ConfigFile - parse an Apache style httpd.conf config file |
fa52f9c1 | 9 | Summary(pl.UTF-8): Apache::ConfigFile - analiza pliku konfiguracyjnego httpd.conf w stylu Apache |
5eee508d | 10 | Name: perl-Apache-ConfigFile |
3c16c97a | 11 | Version: 1.18 |
dcb11b25 | 12 | Release: 2 |
3c16c97a | 13 | License: GPL or Artistic |
5eee508d | 14 | Group: Development/Languages/Perl |
3c16c97a | 15 | #Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | Source0: http://www.cpan.org/modules/by-authors/id/N/NW/NWIGER/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 0a7e1e1aca947f98a9a974150b722bff | |
62a33959 | 18 | URL: http://search.cpan.org/dist/Apache-ConfigFile/ |
bf520290 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
123d4f7c | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
5eee508d | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This module parses the Apache httpd.conf, or any compatible config | |
c4234100 JB |
26 | file, and provides methods for you to access the values from the |
27 | config file. The basic usage of this module boils down to reading a | |
28 | given config file and then using the cmd_config() and cmd_context() | |
29 | functions to access its information. | |
30 | ||
64353829 JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł analizuje plik Apache'a httpd.conf lub dowolny kompatybilny | |
33 | plik konfiguracyjny i udostępnia metody pozwalające na dostęp do | |
34 | wartości z tego pliku. Podstawowe używanie tego modułu sprowadza się | |
35 | do przeczytania podanego pliku konfiguracyjnego, a następnie używania | |
c4234100 | 36 | funkcji cmd_config() i cmd_context() do odczytywania informacji. |
5eee508d | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
123d4f7c | 42 | %{__perl} Makefile.PL \ |
8d672561 | 43 | INSTALLDIRS=vendor |
5eee508d | 44 | %{__make} |
45 | ||
3c16c97a | 46 | %{?with_tests:%{__make} test} |
5eee508d | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
3c16c97a | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
5eee508d | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
123d4f7c | 59 | %{perl_vendorlib}/%{pdir}/*.pm |
5eee508d | 60 | %{_mandir}/man3/* |