From 5a2fa80f2f05ac0d1fbbe54e7961ac005eb1780b Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:18:47 +0100 Subject: [PATCH] automatic version update by autodist [release 0.005-1mamba;Thu Aug 18 2011] --- README.md | 10 ++++++ perl-Makefile-DOM.spec | 72 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 perl-Makefile-DOM.spec diff --git a/README.md b/README.md index d59df71..d4ad366 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # perl-Makefile-DOM +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. + diff --git a/perl-Makefile-DOM.spec b/perl-Makefile-DOM.spec new file mode 100644 index 0000000..3271e34 --- /dev/null +++ b/perl-Makefile-DOM.spec @@ -0,0 +1,72 @@ +%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 +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 0.005-1mamba +- automatic version update by autodist + +* Mon Feb 21 2011 gil 0.004-1mamba +- package created by autospec