]>
Commit | Line | Data |
---|---|---|
c0a889eb | 1 | # |
2 | # Conditional build: | |
cedeccfe | 3 | %bcond_without tests # do not perform "make test" |
c56af734 | 4 | |
855eba2f | 5 | %define pdir CGI |
6 | %define pnam WML | |
6641dcc3 | 7 | Summary: CGI::WML - subclass LDS's "CGI.pm" for WML output and WML methods |
08817953 | 8 | Summary(pl.UTF-8): CGI::WML - podklasa CGI.pm do wyjścia i metod WML |
c0a889eb | 9 | Name: perl-CGI-WML |
e989a8fe | 10 | Version: 0.09 |
6641dcc3 | 11 | Release: 3 |
076eb76a | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
c0a889eb | 14 | Group: Development/Languages/Perl |
5c05a8f1 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
88cb14bc | 16 | # Source0-md5: 091abe6a07f1b795d63437e78bf68efd |
b741ca82 | 17 | Patch0: %{name}-noninteractive.patch |
c56af734 | 18 | URL: http://search.cpan.org/dist/CGI-WML/ |
a8adcc9c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
c56af734 | 20 | BuildRequires: rpm-perlprov >= 3.0.3-26 |
f85e9d6a | 21 | %if %{with tests} |
c0a889eb | 22 | BuildRequires: perl-CGI |
23 | BuildRequires: perl-HTML-Parser | |
24 | BuildRequires: perl-HTML-TableExtract | |
25 | BuildRequires: perl-XML-Parser | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
b741ca82 ER |
31 | CGI::WML provides WML output and WML methods for CGI programming. The |
32 | purpose of the module is to retain the familiar CGI.pm way of | |
c0a889eb | 33 | programming to enable experienced CGI programmers to use their |
34 | existing skills when creating WAP applications. | |
35 | ||
e109db9f JR |
36 | %description -l pl.UTF-8 |
37 | CGI::WML udostępnia wyjście WML i metody WML do programowania CGI. | |
38 | Celem tego modułu jest zachowanie znanej metody programowania CGI, aby | |
39 | umożliwić doświadczonym programistom CGI używanie swoich umiejętności | |
0a920b3e | 40 | przy tworzeniu aplikacji WAP. |
c0a889eb | 41 | |
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
b741ca82 | 44 | %patch0 -p1 |
c0a889eb | 45 | |
46 | %build | |
581c7238 | 47 | %{__perl} Makefile.PL \ |
48 | INSTALLDIRS=vendor | |
c0a889eb | 49 | %{__make} |
50 | ||
cedeccfe | 51 | %{?with_tests:%{__make} test} |
c0a889eb | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
581c7238 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
c0a889eb | 58 | |
b741ca82 ER |
59 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
60 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/CGI/WML/.packlist | |
61 | ||
c0a889eb | 62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
581c7238 | 67 | %{perl_vendorlib}/%{pdir}/*.pm |
c0a889eb | 68 | %{_mandir}/man3/* |