]> git.pld-linux.org Git - packages/perl-HTML-Widget.git/blame - perl-HTML-Widget.spec
- tabs in preamble
[packages/perl-HTML-Widget.git] / perl-HTML-Widget.spec
CommitLineData
5cce3655 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir HTML
7%define pnam Widget
8Summary: HTML::Widget - HTML Widget And Validation Framework
b116020f 9Summary(pl.UTF-8): HTML::Widget - szkielet widgetów i kontroli poprawności HTML-a
5cce3655 10Name: perl-HTML-Widget
5bacbdfe 11Version: 1.07
41ed7ef1 12Release: 3
5cce3655 13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
b024ce40 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 56b14edf4b3379fba453b58dd9c0cd09
5cce3655 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Class-Accessor
22BuildRequires: perl-Class-Accessor-Chained
41ed7ef1 23BuildRequires: perl-Class-Data-Accessor
5cce3655 24BuildRequires: perl-Date-Calc
25BuildRequires: perl-Email-Valid
26BuildRequires: perl-HTML-Tree
27BuildRequires: perl-HTML-Scrubber
28BuildRequires: perl-Module-Pluggable-Fast
29BuildRequires: perl-Test-NoWarnings
41ed7ef1 30BuildRequires: perl-Test-Pod-Coverage
5cce3655 31%endif
32BuildArch: noarch
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Create easy to maintain HTML widgets!
37
38Everything is optional, use validation only or just generate forms,
39you can embed and merge them later.
40
41The API was designed similar to other popular modules like
42Data::FormValidator and FormValidator::Simple,
43HTML::FillInForm is also built in (and much faster).
44
c81c7bcc 45This module is very powerful, don't misuse it as a template system!
5cce3655 46
a9a6b6ec
JR
47%description -l pl.UTF-8
48Moduł do tworzenia łatwych w utrzymianiu widgetów HTML.
c81c7bcc 49
a9a6b6ec
JR
50Wszystko jest opcjonalne, można używać tylko kontroli poprawności lub
51tylko tworzyć formularze; można osadzać je i włączać później.
c81c7bcc 52
a9a6b6ec 53API zostało zaprojektowane na podobieństwo innych popularnych modułów,
c81c7bcc 54takich jak Data::FormValidator i FormValidator::Simple;
a9a6b6ec 55HTML::FillInForm jest także wbudowany (i dużo szybszy).
c81c7bcc 56
a9a6b6ec
JR
57Ten moduł jest naprawdę potężny, nie należy go nadużywać jako systemu
58szablonów!
5cce3655 59
60%prep
61%setup -q -n %{pdir}-%{pnam}-%{version}
62
63%build
64%{__perl} Makefile.PL \
65 INSTALLDIRS=vendor
66%{__make}
67
68%{?with_tests:%{__make} test}
69
70%install
71rm -rf $RPM_BUILD_ROOT
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
75
76install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
77cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files
83%defattr(644,root,root,755)
84%doc Changes README
85%{perl_vendorlib}/HTML/*.pm
86%{perl_vendorlib}/HTML/Widget
87%{_mandir}/man3/*
88%{_examplesdir}/%{name}-%{version}
This page took 0.11737 seconds and 4 git commands to generate.