]> git.pld-linux.org Git - packages/perl-Data-Section-Simple.git/blame - perl-Data-Section-Simple.spec
- updated to 0.07
[packages/perl-Data-Section-Simple.git] / perl-Data-Section-Simple.spec
CommitLineData
87626dbe
JB
1#
2# Conditional build:
e31b1565 3%bcond_without tests # unit tests
87626dbe
JB
4#
5%define pdir Data
6%define pnam Section-Simple
87626dbe
JB
7Summary: Data::Section::Simple - Read data from __DATA__ section of file
8Summary(pl.UTF-8): Data::Section::Simple - odczyt danych z sekcji __DATA__ pliku
9Name: perl-Data-Section-Simple
e31b1565 10Version: 0.07
87626dbe
JB
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
e31b1565
JB
16# Source0-md5: 5a079d3d7712fa3c8256494cf026a153
17URL: https://metacpan.org/release/Data-Section-Simple
18BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19BuildRequires: perl-devel >= 1:5.8.1
87626dbe 20BuildRequires: rpm-perlprov >= 4.1-13
e31b1565 21BuildRequires: rpmbuild(macros) >= 1.745
87626dbe
JB
22%if %{with tests}
23BuildRequires: perl-Test-Requires
24BuildRequires: perl-Test-Simple >= 0.88
25%endif
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Data::Section::Simple is a simple module to extract data from
31__DATA__ section of the file.
32
33%description -l pl.UTF-8
34Data::Section::Simple to prosty moduł wydobywający dane z sekcji
35__DATA__ pliku.
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43%{__make}
44
45%{?with_tests:%{__make} test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc Changes README
59%dir %{perl_vendorlib}/Data/Section
60%{perl_vendorlib}/Data/Section/Simple.pm
61%{_mandir}/man3/Data::Section::Simple.3pm*
This page took 0.676805 seconds and 4 git commands to generate.