perl-Makefile-DOM/perl-Makefile-DOM.spec

73 lines
2.4 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Makefile-DOM
Version: 0.005
Release: 1mamba
Summary: Makefile::DOM - Simple DOM parser for Makefiles
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/A/AG/AGENT/Makefile-DOM-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(Clone)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Params::Util)
BuildRequires: perl(CPAN)
BuildRequires: perl(ExtUtils::Embed)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Simple)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
Requires: perl(Clone)
Requires: perl(List::MoreUtils)
Requires: perl(Params::Util)
Provides: perl(Makefile::DOM) = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This libary can serve as an advanced lexer for (GNU) makefiles. It parses
makefiles as "documents" and the parsing is lossless. The results are data
structures similar to DOM trees. The DOM trees hold every single bit of the
information in the original input files, including white spaces, blank
lines and makefile comments. That means it's possible to reproduce the
original makefiles from the DOM trees. In addition, each node of the DOM
trees is modifiable and so is the whole tree, just like the PPI module used
for Perl source parsing and the HTML::TreeBuilder module used for parsing
HTML source.
%prep
%setup -q -n Makefile-DOM-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/*
%{_mandir}/man3/*.3pm.gz
%doc Changes README TODO
%changelog
* Thu Aug 18 2011 Automatic Build System <autodist@mambasoft.it> 0.005-1mamba
- automatic version update by autodist
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.004-1mamba
- package created by autospec