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