]> git.pld-linux.org Git - packages/perl-HTML-Tiny.git/blame - perl-HTML-Tiny.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-Tiny.git] / perl-HTML-Tiny.spec
CommitLineData
e4a5298c 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
e4a5298c 5%define pdir HTML
6%define pnam Tiny
7Summary: HTML::Tiny - Lightweight, dependency free HTML/XML generation
8#Summary(pl.UTF-8):
9Name: perl-HTML-Tiny
9b32d0f7 10Version: 1.05
e4a5298c 11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
9b32d0f7 16# Source0-md5: f683dbc8e4570ba08d0fcb1f50c1b6dc
e4a5298c 17URL: http://search.cpan.org/dist/HTML-Tiny/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24HTML::Tiny is a simple, dependency free module for generating
25HTML (and XML). It concentrates on generating syntactically correct
26XHTML using a simple Perl notation.
27
28# %description -l pl.UTF-8
29# TODO
30
31%prep
32%setup -q -n %{pdir}-%{pnam}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
37%{__make}
38
39%{?with_tests:%{__make} test}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc Changes
56%{perl_vendorlib}/HTML/*.pm
57%{_mandir}/man3/*
58%{_examplesdir}/%{name}-%{version}
This page took 0.262189 seconds and 4 git commands to generate.