]> git.pld-linux.org Git - packages/perl-Parse-DebControl.git/blob - perl-Parse-DebControl.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Parse-DebControl.git] / perl-Parse-DebControl.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Parse
6 %define         pnam    DebControl
7 Summary:        Easy OO parsing of debian control-like files
8 Name:           perl-Parse-DebControl
9 Version:        2.005
10 Release:        1
11 License:        GPL+ or Artistic
12 Group:          Applications/File
13 Source0:        http://search.cpan.org/CPAN/authors/id/J/JA/JAYBONCI/Parse-DebControl-%{version}.tar.gz
14 # Source0-md5:  4fbf2e0b28a471a5e94394615303daf6
15 URL:            http://search.cpan.org/dist/Parse-DebControl/
16 BuildRequires:  perl-Test-Simple
17 BuildRequires:  perl-base
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(Compress::Zlib)
22 BuildRequires:  perl(IO::Scalar)
23 BuildRequires:  perl(LWP::UserAgent)
24 BuildRequires:  perl(strict)
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Easy 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
42 rm -rf $RPM_BUILD_ROOT
43 %{__make} pure_install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 # Remove empty directory tree
47 rm -r $RPM_BUILD_ROOT%{_libdir}
48
49 %clean
50 rm -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.161492 seconds and 4 git commands to generate.