]>
Commit | Line | Data |
---|---|---|
58addc6e | 1 | # |
2 | # Conditional build: | |
24292c33 | 3 | %bcond_without tests # do not perform "make test" |
c6725929 | 4 | |
2dd23ce2 | 5 | %define pdir CGI |
6 | %define pnam Widget | |
c6725929 | 7 | %include /usr/lib/rpm/macros.perl |
b7ada406 | 8 | Summary: CGI::Widget - base class for CGI::Widget:: |
7e1b0627 | 9 | Summary(pl.UTF-8): CGI::Widget - klasa bazowa dla CGI::Widget:: |
58addc6e | 10 | Name: perl-CGI-Widget |
11 | Version: 0.15 | |
9a005782 | 12 | Release: 5 |
58addc6e | 13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
baa9e975 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
8a75308e | 16 | # Source0-md5: 70a57a75c17696fe57590efbaab787f8 |
c6725929 | 17 | URL: http://search.cpan.org/dist/CGI-Widget/ |
8b8a2263 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
c6725929 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
24292c33 | 20 | %if %{with tests} |
58addc6e | 21 | BuildRequires: perl-CGI |
22 | BuildRequires: perl-Tree-DAG_Node | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | The CGI::Widget module's purpose is to allow authors of CGI or other | |
c6725929 ER |
29 | dynamically generated HTML documents an easy way to create common, and |
30 | possibly complex, page elements. | |
58addc6e | 31 | |
238ba1ec JR |
32 | %description -l pl.UTF-8 |
33 | Zadaniem CGI::Widget jest udostępnienie autorom skryptów CGI (lub | |
34 | korzystającym z innych technik dynamicznego tworzenia dokumentów HTML) | |
35 | prostego sposobu na tworzenie wspólnych i możliwie złożonych elementów | |
58addc6e | 36 | stron. |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
40a4ce2a | 42 | %{__perl} Makefile.PL \ |
13f18817 | 43 | INSTALLDIRS=vendor |
58addc6e | 44 | %{__make} |
45 | ||
24292c33 | 46 | %{?with_tests:%{__make} test} |
58addc6e | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
8590c823 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
58addc6e | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
40a4ce2a | 59 | %{perl_vendorlib}/%{pdir}/*.pm |
60 | %{perl_vendorlib}/%{pdir}/%{pnam} | |
58addc6e | 61 | %{_mandir}/man3/* |