3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam NNTPGateway
8 Summary: Apache::NNTPGateway - A NNTP interface for mod_perl enabled Apache web server
9 Summary(pl.UTF-8): Apache::NNTPGateway - interfejs NNTP dla serwera WWW Apache z mod_perlem
10 Name: perl-Apache-NNTPGateway
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: b14703a19ed3c8a763d865a46b6116b5
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 3.0.3-26
21 BuildRequires: apache1-mod_perl >= 1.20
22 BuildRequires: perl-CGI >= 1.10
23 BuildRequires: perl-libnet
24 BuildRequires: perl-MailTools >= 1.10
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module implements a per group interface to NNTP (Usenet)
31 News-Groups, it allow users to list, read, post, followup... articles
32 in a given newsgroup/newsserver depending of configuration. This is
33 not a replacement for a real powerful newsreader client but just
34 pretend to be a simple, useful mapping of some news articles into a
37 %description -l pl.UTF-8
38 Ten moduł jest implementacją interfejsu do usenetowych grup
39 dyskusyjnych (NNTP). Pozwala użytkownikom przeglądać, czytać, wysyłać,
40 odpowiadać... na artykuły z podanej grupy i serwera, w zależności od
41 konfiguracji. Nie jest to zamiennik klienta newsów z prawdziwego
42 zdarzenia, ale ma być prostym, użytecznym odwzorowaniem artykułów
43 newsowych w przestrzeni WWW.
46 %setup -q -n %{pnam}-%{version}
47 %{__perl} -pi -e 's/^(require 5.005)(02;)$/$1_$2/' NNTPGateway.pm
50 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %{perl_vendorlib}/%{pdir}/*.pm