[packages/perl-Text-Haml] - new

baggins baggins at pld-linux.org
Thu Oct 17 15:51:15 CEST 2013


commit 7138fff0c5f9747f566b5cfec985832a2335a79b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 17 15:50:58 2013 +0200

    - new

 perl-Text-Haml.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/perl-Text-Haml.spec b/perl-Text-Haml.spec
new file mode 100644
index 0000000..5f1d064
--- /dev/null
+++ b/perl-Text-Haml.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Text
+%define		pnam	Haml
+%include	/usr/lib/rpm/macros.perl
+Summary:	Text::Haml - Haml Perl implementation
+Name:		perl-Text-Haml
+Version:	0.990110
+Release:	1
+License:	artistic_2
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/V/VT/VTI/Text-Haml-0.990110.tar.gz
+# Source0-md5:	b3f422b25582c019fa667d5c8be49047
+URL:		http://search.cpan.org/dist/Text-Haml/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-URI
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text::Haml implements Haml
+http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html specification.
+
+Text::Haml passes specification tests written by Norman Clarke
+http://github.com/norman/haml-spec and supports only cross-language Haml
+features. Do not expect Ruby specific things to work.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%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)
+%{perl_vendorlib}/Text/*.pm
+%{perl_vendorlib}/Text/Haml
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Text-Haml.git/commitdiff/7138fff0c5f9747f566b5cfec985832a2335a79b



More information about the pld-cvs-commit mailing list