]> git.pld-linux.org Git - packages/perl-Config-IniFiles.git/blobdiff - perl-Config-IniFiles.spec
- bcond fixes/porting
[packages/perl-Config-IniFiles.git] / perl-Config-IniFiles.spec
index 77edf9a0960e58a772b1b84efdf7f279d5468fde..d02ea9536f49942a19f87da20da2f306dab82c42 100644 (file)
@@ -1,44 +1,57 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       Config-IniFiles perl module
-Summary(pl):   Modu³ perla Config-IniFiles
+%define        pdir    Config
+%define        pnam    IniFiles
+Summary:       Config::IniFiles - a module for reading .ini-style configuration files
+Summary(pl):   Config::IniFiles - modu³ do odczytu plików konfiguracyjnych typu .ini
 Name:          perl-Config-IniFiles
-Version:       2.13
+Version:       2.38
 Release:       1
-License:       GPL
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Config/Config-IniFiles-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 17e39e4244ede0061939dcb80ab6294e
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Config::IniFiles - A module for reading .ini-style configuration
-files.
+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
+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 Config-IniFiles-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Config/IniFiles.pm
+%doc README
+%{_mandir}/man3/*
+%{perl_vendorlib}/Config/IniFiles.pm
This page took 0.0426 seconds and 4 git commands to generate.