]> git.pld-linux.org Git - packages/perl-Parse-DebControl.git/blame - perl-Parse-DebControl.spec
new, version 2.005
[packages/perl-Parse-DebControl.git] / perl-Parse-DebControl.spec
CommitLineData
497fb8ae
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define pdir Parse
6%define pnam DebControl
7%include /usr/lib/rpm/macros.perl
8Summary: Easy OO parsing of debian control-like files
9Name: perl-Parse-DebControl
10Version: 2.005
11Release: 1
12License: GPL+ or Artistic
13Group: Applications/File
14Source0: http://search.cpan.org/CPAN/authors/id/J/JA/JAYBONCI/Parse-DebControl-%{version}.tar.gz
15# Source0-md5: 4fbf2e0b28a471a5e94394615303daf6
16URL: http://search.cpan.org/dist/Parse-DebControl/
17BuildRequires: perl-Test-Simple
18BuildRequires: perl-base
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl(Compress::Zlib)
23BuildRequires: perl(IO::Scalar)
24BuildRequires: perl(LWP::UserAgent)
25BuildRequires: perl(strict)
26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Easy OO parsing of debian control-like files.
32
33%prep
34%setup -q -n Parse-DebControl-%{version}
35
36%build
37%{__perl} Makefile.PL \
38 INSTALLDIRS=vendor
39%{__make}
40%{?with_tests:%{__make} test}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44%{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47# Remove empty directory tree
48rm -r $RPM_BUILD_ROOT%{_libdir}
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc CHANGES
56%{perl_vendorlib}/Parse/DebControl.pm
57%{_mandir}/man3/Parse::DebControl.3pm*
This page took 0.088219 seconds and 4 git commands to generate.