]> git.pld-linux.org Git - packages/perl-Config-INI.git/blame - perl-Config-INI.spec
- pl, unified URL and dependencies
[packages/perl-Config-INI.git] / perl-Config-INI.spec
CommitLineData
45ca22cd
JR
1#
2# Conditional build:
83b583f1 3%bcond_without tests # unit tests
45ca22cd
JR
4#
5%define pdir Config
6%define pnam INI
45ca22cd 7Summary: Config::INI - simple .ini-file format
83b583f1 8Summary(pl.UTF-8): Config::INI - prosty format plików .ini
45ca22cd 9Name: perl-Config-INI
c430cc85 10Version: 0.027
8905da78 11Release: 2
45ca22cd
JR
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
c430cc85 16# Source0-md5: 61f6b3e890e1818545dd1112ba798273
83b583f1 17URL: https://metacpan.org/dist/Config-INI
45ca22cd
JR
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
83b583f1 20BuildRequires: rpmbuild(macros) >= 1.745
45ca22cd 21%if %{with tests}
83b583f1 22BuildRequires: perl-Mixin-Linewise >= 0.105
45ca22cd
JR
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
5976168b 28Config::INI - simple .ini-file format.
45ca22cd 29
83b583f1
JB
30%description -l pl.UTF-8
31Config::INI - prosty format plików .ini.
32
45ca22cd
JR
33%prep
34%setup -q -n %{pdir}-%{pnam}-%{version}
35
36%build
37%{__perl} Makefile.PL \
38 INSTALLDIRS=vendor
39%{__make}
40
41%{?with_tests:%{__make} test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README
83b583f1 58%{perl_vendorlib}/Config/INI.pm
45ca22cd 59%{perl_vendorlib}/Config/INI
83b583f1 60%{_mandir}/man3/Config::INI*.3pm*
45ca22cd 61%{_examplesdir}/%{name}-%{version}
This page took 0.076315 seconds and 4 git commands to generate.