2024-01-06 09:18:47 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Makefile-DOM
|
2024-01-06 09:18:47 +01:00
|
|
|
Version: 0.006
|
2024-01-06 09:18:47 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Makefile::DOM - Simple DOM parser for Makefiles
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 09:18:47 +01:00
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
2024-01-06 09:18:47 +01:00
|
|
|
URL: http://www.cpan.org
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AG/AGENT/Makefile-DOM-%{version}.tar.gz
|
|
|
|
License: GPL, Artistic
|
2024-01-06 09:18:47 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:18:47 +01:00
|
|
|
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
|
2024-01-06 09:18:47 +01:00
|
|
|
#% make test
|
2024-01-06 09:18:47 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 09:18:47 +01:00
|
|
|
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 0.006-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:18:47 +01:00
|
|
|
* 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
|