]>
Commit | Line | Data |
---|---|---|
6ebc8203 | 1 | # |
2 | # Conditional build: | |
574eae9d | 3 | %bcond_without tests # do not perform "make test" |
2a2385d6 | 4 | |
a277d8f9 | 5 | %define pdir Config |
6 | %define pnam IniFiles | |
f4a9503f | 7 | Summary: Config::IniFiles - a module for reading .ini-style configuration files |
6dbec3f8 | 8 | Summary(pl.UTF-8): Config::IniFiles - moduł do odczytu plików konfiguracyjnych typu .ini |
638e1fc6 | 9 | Name: perl-Config-IniFiles |
42132d29 | 10 | Version: 3.000003 |
be370744 | 11 | Release: 1 |
f4a9503f | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
638e1fc6 | 14 | Group: Development/Languages/Perl |
42132d29 JB |
15 | Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: 6f05ed5e2eec89914a8542248c959914 | |
17 | URL: https://metacpan.org/release/Config-IniFiles | |
5c295f92 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
83fa94b5 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
42132d29 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
f99a0946 | 21 | BuildArch: noarch |
638e1fc6 MP |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
f4a9503f | 25 | Config::IniFiles Perl module provides a way to have readable |
2a2385d6 | 26 | configuration files outside your Perl script. Configurations can be |
f4a9503f | 27 | imported (inherited, stacked,...), sections can be grouped, and |
28 | settings can be accessed from a tied hash. | |
638e1fc6 | 29 | |
0ac90c81 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Perla Config::IniFiles umożliwia posiadanie czytelnych plików | |
32 | konfiguracyjnych poza skryptem perlowym. Konfigurację można | |
42132d29 | 33 | zaimportować (odziedziczyć, umieścić na stosie...), sekcje można |
0ac90c81 | 34 | pogrupować a dostęp do łańcuchów tekstowych może się odbywać poprzez |
f4a9503f | 35 | stowarzyszony z plikiem hash. |
638e1fc6 MP |
36 | |
37 | %prep | |
5c2c7758 | 38 | %setup -q -n %{pdir}-%{pnam}-%{version} |
638e1fc6 MP |
39 | |
40 | %build | |
83fa94b5 | 41 | %{__perl} Makefile.PL \ |
38263b27 | 42 | INSTALLDIRS=vendor |
638e1fc6 | 43 | %{__make} |
190f1320 | 44 | |
574eae9d | 45 | %{?with_tests:%{__make} test} |
638e1fc6 MP |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
638e1fc6 | 49 | |
190f1320 | 50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
638e1fc6 | 52 | |
638e1fc6 MP |
53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
95833d3e | 58 | %doc README |
83fa94b5 | 59 | %{perl_vendorlib}/Config/IniFiles.pm |
42132d29 | 60 | %{_mandir}/man3/Config::IniFiles.3pm* |