#
# Conditional build:
-# _without_tests - do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
-%define pdir Config
-%define pnam IniFiles
-Summary: Config::IniFiles Perl module
-Summary(pl): Modu³ Perla Config::IniFiles
+%bcond_without tests # do not perform "make test"
+
+%define pdir Config
+%define pnam IniFiles
+Summary: Config::IniFiles - a module for reading .ini-style configuration files
+Summary(pl.UTF-8): Config::IniFiles - moduł do odczytu plików konfiguracyjnych typu .ini
Name: perl-Config-IniFiles
-Version: 2.30
+Version: 3.000003
Release: 1
-License: GPL
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-16
+Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6f05ed5e2eec89914a8542248c959914
+URL: https://metacpan.org/release/Config-IniFiles
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Config::IniFiles - A module for reading .ini-style configuration
-files.
-
-%description -l pl
-Config::IniFiles - modu³ do czytania plików configuracyjnych .ini.
+Config::IniFiles Perl module provides a way to have readable
+configuration files outside your Perl script. Configurations can be
+imported (inherited, stacked,...), sections can be grouped, and
+settings can be accessed from a tied hash.
+
+%description -l pl.UTF-8
+Moduł Perla Config::IniFiles umożliwia posiadanie czytelnych plików
+konfiguracyjnych poza skryptem perlowym. Konfigurację można
+zaimportować (odziedziczyć, umieścić na stosie...), sekcje można
+pogrupować a dostęp do łańcuchów tekstowych może się odbywać poprzez
+stowarzyszony z plikiem hash.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
-%{_mandir}/man3/*
-%{perl_sitelib}/Config/IniFiles.pm
+%{perl_vendorlib}/Config/IniFiles.pm
+%{_mandir}/man3/Config::IniFiles.3pm*