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