]> git.pld-linux.org Git - packages/perl-HTML-Widget.git/blame - perl-HTML-Widget.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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#
5cce3655 5%define pdir HTML
6%define pnam Widget
7Summary: HTML::Widget - HTML Widget And Validation Framework
b116020f 8Summary(pl.UTF-8): HTML::Widget - szkielet widgetów i kontroli poprawności HTML-a
5cce3655 9Name: perl-HTML-Widget
a8e890ac 10Version: 1.11
11Release: 1
5cce3655 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
4bea7769 15Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
a8e890ac 16# Source0-md5: 62f582be030a322b225ced8f03012905
4bea7769 17URL: http://search.cpan.org/dist/HTML-Widget/
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.125532 seconds and 4 git commands to generate.