]>
Commit | Line | Data |
---|---|---|
7138fff0 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Text | |
6 | %define pnam Haml | |
7138fff0 | 7 | Summary: Text::Haml - Haml Perl implementation |
f208d665 | 8 | Summary(pl.UTF-8): Text::Haml - implementacja Haml dla Perla |
7138fff0 | 9 | Name: perl-Text-Haml |
b6610d5b | 10 | Version: 0.990118 |
7138fff0 | 11 | Release: 1 |
f208d665 | 12 | License: Artistic v2.0 |
7138fff0 | 13 | Group: Development/Languages/Perl |
f208d665 JB |
14 | Source0: http://www.cpan.org/modules/by-module/Text/Text-Haml-%{version}.tar.gz |
15 | # Source0-md5: 9b2b0b335e39fcc96dd7b60b5ba9c914 | |
7138fff0 | 16 | URL: http://search.cpan.org/dist/Text-Haml/ |
f208d665 JB |
17 | BuildRequires: perl-Module-Build >= 0.38 |
18 | BuildRequires: perl-devel >= 1:5.8.1 | |
7138fff0 JR |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
549afadd | 21 | BuildRequires: perl-Data-Section-Simple |
7138fff0 JR |
22 | BuildRequires: perl-URI |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
f208d665 JB |
28 | Text::Haml implements Haml specification: |
29 | <http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html>. | |
7138fff0 JR |
30 | |
31 | Text::Haml passes specification tests written by Norman Clarke | |
f208d665 JB |
32 | <http://github.com/norman/haml-spec> and supports only cross-language |
33 | Haml features. Do not expect Ruby specific things to work. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Text::Haml implementuje specyfikację Haml: | |
37 | <http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html>. | |
38 | ||
39 | Text::Haml przechodzi testy specifikacji napisane przez Normana | |
40 | Clarke'a (<http://github.com/norman/haml-spec>) i obsługuje tylko | |
41 | cechy Hamla wspólne dla wielu języków - nie należy się spodziewać, że | |
42 | elementy specyficzne dla języka Ruby będą działać. | |
7138fff0 JR |
43 | |
44 | %prep | |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
f208d665 JB |
48 | %{__perl} Build.PL \ |
49 | destdir=$RPM_BUILD_ROOT \ | |
50 | installdirs=vendor | |
51 | ./Build | |
7138fff0 | 52 | |
f208d665 | 53 | %{?with_tests:./Build test} |
7138fff0 JR |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
f208d665 | 58 | ./Build install |
7138fff0 JR |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
f208d665 JB |
65 | %doc Changes |
66 | %{perl_vendorlib}/Text/Haml.pm | |
67 | %{_mandir}/man3/Text::Haml.3pm* |