]> git.pld-linux.org Git - packages/perl-Config-INI.git/blame - perl-Config-INI.spec
- add description and URL
[packages/perl-Config-INI.git] / perl-Config-INI.spec
CommitLineData
45ca22cd
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Config
6%define pnam INI
7%include /usr/lib/rpm/macros.perl
8Summary: Config::INI - simple .ini-file format
45ca22cd
JR
9Name: perl-Config-INI
10Version: 0.025
11Release: 1
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
16# Source0-md5: 0402eb29869547dbcf03ed6f35fef3c0
5976168b 17URL: http://search.cpan.org/dist/Config-INI/
45ca22cd
JR
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl(Mixin::Linewise::Readers) >= 0.105
22BuildRequires: perl(Mixin::Linewise::Writers)
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
5976168b 28Config::INI - simple .ini-file format.
45ca22cd
JR
29
30%prep
31%setup -q -n %{pdir}-%{pnam}-%{version}
32
33%build
34%{__perl} Makefile.PL \
35 INSTALLDIRS=vendor
36%{__make}
37
38%{?with_tests:%{__make} test}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42
43%{__make} pure_install \
44 DESTDIR=$RPM_BUILD_ROOT
45
46install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc Changes README
55%{perl_vendorlib}/Config/*.pm
56%{perl_vendorlib}/Config/INI
57%{_mandir}/man3/*
58%{_examplesdir}/%{name}-%{version}
This page took 0.091276 seconds and 4 git commands to generate.