commit ded13d2e19d5b0993a9a161a69a908178ebd4ff8
Author: Jakub Bogusz <[email protected]>
Date:   Mon Oct 29 18:50:06 2012 +0100

    - new

 perl-Makefile-Parser-test.patch | 13 ++++++
 perl-Makefile-Parser.spec       | 91 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)
---
diff --git a/perl-Makefile-Parser.spec b/perl-Makefile-Parser.spec
new file mode 100644
index 0000000..ccd6842
--- /dev/null
+++ b/perl-Makefile-Parser.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Makefile
+%define                pnam    Parser
+%include       /usr/lib/rpm/macros.perl
+Summary:       Makefile::Parser - A simple parser for Makefiles
+Summary(pl.UTF-8):     Makefile::Parser - prosty analizator plików Makefile
+Name:          perl-Makefile-Parser
+Version:       0.215
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-authors/id/A/AG/AGENT/Makefile-Parser-%{version}.tar.gz
+# Source0-md5: f80b65da36c3fd004c8b7067e99c2c9f
+Patch0:                %{name}-test.patch
+URL:           http://search.cpan.org/dist/Makefile-Parser/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: perl-Class-Accessor
+BuildRequires: perl-Class-Trigger >= 0.13
+BuildRequires: perl-File-Slurp
+BuildRequires: perl-IPC-Run3 >= 0.036
+BuildRequires: perl-List-MoreUtils
+BuildRequires: perl-Makefile-DOM >= 0.005
+%endif
+Requires:      perl-Class-Trigger >= 0.13
+Requires:      perl-IPC-Run3 >= 0.036
+Requires:      perl-Makefile-DOM >= 0.005
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a simple parser for Makefiles. At this very early stage, the
+parser only supports a limited set of features, so it may not
+recognize most of the advanced features provided by certain make tools
+like GNU make. Its initial purpose is to provide basic support for
+another module named Makefile::GraphViz, which is aimed to render the
+building process specified by a Makefile using the amazing GraphViz
+library.
+
+%description -l pl.UTF-8
+Ten pakiet to prosty analizator plików Makefile. Na wstępnym etapie
+obsługuje tylko ograniczony zbiór możliwości, więc może nie
+rozpoznawać większości zaawansowanych możliwości niektórych
+implementacji make, takich jak GNU make. Pierwotnym celem jest
+zapewnienie podstawowej obsługi dla innego modułu -
+Makefile::GraphViz, którego celem jest renderowanie procesu budowania
+opisanego plikiem Makefile przy użyciu biblioteki GraphViz.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+%{__sed} -i -e '1s,/usr/bin/env perl,/usr/bin/perl,' script/*
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%attr(755,root,root) %{_bindir}/makesimple
+%attr(755,root,root) %{_bindir}/pgmake-db
+%attr(755,root,root) %{_bindir}/plmake
+%{perl_vendorlib}/Makefile/AST.pm
+%{perl_vendorlib}/Makefile/AST
+%{perl_vendorlib}/Makefile/Parser.pm
+%{perl_vendorlib}/Makefile/Parser
+%{_mandir}/man1/makesimple.1p*
+%{_mandir}/man1/pgmake-db.1p*
+%{_mandir}/man1/plmake.1p*
+%{_mandir}/man3/Makefile::AST*.3pm*
+%{_mandir}/man3/Makefile::Parser*.3pm*
diff --git a/perl-Makefile-Parser-test.patch b/perl-Makefile-Parser-test.patch
new file mode 100644
index 0000000..235bd46
--- /dev/null
+++ b/perl-Makefile-Parser-test.patch
@@ -0,0 +1,13 @@
+--- Makefile-Parser-0.215/t/makesimple.t.orig  2011-08-17 19:08:21.000000000 
+0200
++++ Makefile-Parser-0.215/t/makesimple.t       2012-10-29 18:17:35.313599094 
+0100
+@@ -555,8 +555,8 @@
+ 
+ all:
+       @echo $(foo) \
+-  $(bar) \
+-      $(baz)
++      $(bar) \
++      $(baz)
+ 
+ --- out
+ all:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Makefile-Parser.git/commitdiff/ded13d2e19d5b0993a9a161a69a908178ebd4ff8

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to