44b2a21
Name:           perl-Makefile-DOM
Petr Sabata b27e347
Version:        0.006
5043ed7
Release:        4%{?dist}
44b2a21
Summary:        Simple DOM parser for Makefiles
44b2a21
License:        GPL+ or Artistic
44b2a21
Group:          Development/Libraries
44b2a21
URL:            http://search.cpan.org/dist/Makefile-DOM/
44b2a21
Source0:        http://www.cpan.org/authors/id/A/AG/AGENT/Makefile-DOM-%{version}.tar.gz
44b2a21
BuildArch:      noarch
860b75a
BuildRequires:  perl(inc::Module::Install)
860b75a
BuildRequires:  perl(lib)
860b75a
# Run-time
860b75a
BuildRequires:  perl(base)
860b75a
BuildRequires:  perl(Carp)
44b2a21
BuildRequires:  perl(Clone) >= 0.18
860b75a
BuildRequires:  perl(Exporter)
44b2a21
BuildRequires:  perl(List::MoreUtils) >= 0.21
44b2a21
BuildRequires:  perl(Params::Util) >= 0.22
860b75a
BuildRequires:  perl(Scalar::Util)
860b75a
BuildRequires:  perl(Text::Balanced)
860b75a
# Tests
860b75a
BuildRequires:  perl(Cwd)
860b75a
BuildRequires:  perl(File::Temp)
860b75a
BuildRequires:  perl(IPC::Run3)
860b75a
BuildRequires:  perl(Spiffy)
860b75a
BuildRequires:  perl(Time::HiRes)
860b75a
BuildRequires:  perl(Test::Base)
860b75a
BuildRequires:  perl(Test::Base::Filter)
44b2a21
BuildRequires:  perl(Test::More)
44b2a21
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
44b2a21
44b2a21
%description
44b2a21
This libary can serve as an advanced lexer for (GNU) makefiles. It parses
44b2a21
makefiles as "documents" and the parsing is lossless. The results are data
44b2a21
structures similar to DOM trees. The DOM trees hold every single bit of the
44b2a21
information in the original input files, including white spaces, blank
44b2a21
lines and makefile comments. That means it's possible to reproduce the
44b2a21
original makefiles from the DOM trees. In addition, each node of the DOM
44b2a21
trees is modifiable and so is the whole tree, just like the PPI module used
44b2a21
for Perl source parsing and the HTML::TreeBuilder module used for parsing
44b2a21
HTML source.
44b2a21
44b2a21
%prep
44b2a21
%setup -q -n Makefile-DOM-%{version}
fdaa25e
# Optional POD tests do not pass because of poor documentation (CPAN RT #77897)
fdaa25e
rm -r t/pod-coverage.t
fdaa25e
sed -i -e '/^t\/pod-coverage.t$/d' MANIFEST
860b75a
# Remove bundled modules
860b75a
rm -rf inc
860b75a
sed -i -e '/^inc$/d' MANIFEST
44b2a21
44b2a21
%build
44b2a21
%{__perl} Makefile.PL INSTALLDIRS=vendor
44b2a21
make %{?_smp_mflags}
44b2a21
44b2a21
%install
Petr Sabata 449b7d5
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Petr Sabata 449b7d5
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Petr Sabata 449b7d5
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Petr Sabata 449b7d5
%{_fixperms} %{buildroot}/*
44b2a21
44b2a21
%check
44b2a21
make test
44b2a21
44b2a21
%files
44b2a21
%doc Changes README TODO
44b2a21
%{perl_vendorlib}/*
44b2a21
%{_mandir}/man3/*
44b2a21
44b2a21
%changelog
5043ed7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.006-4
5043ed7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5043ed7
8536fb1
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.006-3
8536fb1
- Perl 5.16 rebuild
fdaa25e
- Do not run POD tests
860b75a
- Specify all dependencies
8536fb1
9d3b27d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.006-2
9d3b27d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9d3b27d
Petr Sabata b27e347
* Mon Aug 29 2011 Petr Sabata <contyk@redhat.com> - 0.006-1
Petr Sabata b27e347
- 0.006 bump
Petr Sabata b27e347
Petr Sabata 449b7d5
* Thu Aug 18 2011 Petr Sabata <contyk@redhat.com> - 0.005-1
Petr Sabata 449b7d5
- 0.005 bump
Petr Sabata 449b7d5
- Removing now obsolete Buildroot and defattr
Petr Sabata 449b7d5
- Useless Requires and Provides removed
Petr Sabata 449b7d5
- Changelog corrected (whitespace)
Petr Sabata 449b7d5
a1efd92
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.004-7
a1efd92
- Perl mass rebuild
a1efd92
199e1e0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-6
199e1e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
199e1e0
9131482
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.004-5
9131482
- 661697 rebuild for fixing problems with vendorach/lib
9131482
df7cf83
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.004-4
df7cf83
- Mass rebuild with perl-5.12.0
df7cf83
fb7c60a
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.004-3
fb7c60a
- rebuild against perl 5.10.1
fb7c60a
44b2a21
* Tue Sep 08 2009 Ryan Lerch <rlerch@redhat.com> 0.004-2
44b2a21
- Added BuildRequires and Provides lines to the specfile, as per the Fedora Perl Packaging Guidelines. 
Petr Sabata 449b7d5
44b2a21
* Mon Sep 07 2009 Ryan Lerch <rlerch@redhat.com> 0.004-1
44b2a21
- Specfile autogenerated by cpanspec 1.78.