]> git.pld-linux.org Git - packages/perl-Text-Haml.git/blob - perl-Text-Haml.spec
- new
[packages/perl-Text-Haml.git] / perl-Text-Haml.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Text
6 %define         pnam    Haml
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        Text::Haml - Haml Perl implementation
9 Name:           perl-Text-Haml
10 Version:        0.990110
11 Release:        1
12 License:        artistic_2
13 Group:          Development/Languages/Perl
14 Source0:        http://search.cpan.org/CPAN/authors/id/V/VT/VTI/Text-Haml-0.990110.tar.gz
15 # Source0-md5:  b3f422b25582c019fa667d5c8be49047
16 URL:            http://search.cpan.org/dist/Text-Haml/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-URI
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Text::Haml implements Haml
27 http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html specification.
28
29 Text::Haml passes specification tests written by Norman Clarke
30 http://github.com/norman/haml-spec and supports only cross-language Haml
31 features. Do not expect Ruby specific things to work.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %{perl_vendorlib}/Text/*.pm
55 %{perl_vendorlib}/Text/Haml
56 %{_mandir}/man3/*
This page took 0.039438 seconds and 4 git commands to generate.