3 %bcond_without tests # do not perform "make test"
7 Summary: Parses .pm file as PAUSE does
8 Name: perl-Parse-PMFile
11 License: GPL+ or Artistic
12 Group: Development/Libraries
13 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 102f1901c15e1b1458b74eb4278558e8
15 URL: http://search.cpan.org/dist/Parse-PMFile/
16 BuildRequires: perl(JSON::PP) >= 2.00
17 BuildRequires: perl(version) >= 0.83
18 BuildRequires: perl-ExtUtils-MakeMaker-CPANfile
20 BuildRequires: perl(File::Temp) >= 0.19
21 BuildRequires: perl(Test::More) >= 0.88
22 BuildRequires: perl-version
24 Requires: perl(JSON::PP) >= 2.00
25 Requires: perl(version) >= 0.83
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The most of the code of this module is taken from the PAUSE code as of
31 April 2013 almost verbatim. Thus, the heart of this module should be
32 quite stable. However, I made it not to use pipe ("-|") as well as I
33 stripped database related code. If you encounter any issue, that's
34 most probably because of my modification.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
50 find $RPM_BUILD_ROOT -type f -name .packlist | xargs rm -v
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Parse/PMFile.pm
59 %{_mandir}/man3/Parse::PMFile.3pm*