]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: Easy OO parsing of debian control-like files | |
9 | Name: perl-Parse-DebControl | |
10 | Version: 2.005 | |
11 | Release: 1 | |
12 | License: GPL+ or Artistic | |
13 | Group: Applications/File | |
14 | Source0: http://search.cpan.org/CPAN/authors/id/J/JA/JAYBONCI/Parse-DebControl-%{version}.tar.gz | |
15 | # Source0-md5: 4fbf2e0b28a471a5e94394615303daf6 | |
16 | URL: http://search.cpan.org/dist/Parse-DebControl/ | |
17 | BuildRequires: perl-Test-Simple | |
18 | BuildRequires: perl-base | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(Compress::Zlib) | |
23 | BuildRequires: perl(IO::Scalar) | |
24 | BuildRequires: perl(LWP::UserAgent) | |
25 | BuildRequires: perl(strict) | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Easy 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 | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | %{__make} pure_install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | # Remove empty directory tree | |
48 | rm -r $RPM_BUILD_ROOT%{_libdir} | |
49 | ||
50 | %clean | |
51 | rm -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* |