]>
Commit | Line | Data |
---|---|---|
6d3663c8 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (uses network!) | |
2c9d326f ER |
4 | |
5 | %define pdir News | |
6 | %define pnam NNTPClient | |
9b17d3b4 | 7 | %include /usr/lib/rpm/macros.perl |
c84e578d | 8 | Summary: News::NNTPClient perl module |
db4b5d56 | 9 | Summary(pl.UTF-8): Moduł perla News::NNTPClient |
fb5bcafc | 10 | Name: perl-News-NNTPClient |
880fcb38 | 11 | Version: 0.37 |
00d5d5da | 12 | Release: 8 |
6d3663c8 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
fb5bcafc | 15 | Group: Development/Languages/Perl |
013bd49a | 16 | Source0: http://www.cpan.org/modules/by-module/News/NNTPClient-%{version}.tar.gz |
43fd06e8 | 17 | # Source0-md5: 1b0257d13f38d2b71bb85d5ac76f5fd1 |
d4bdec43 | 18 | Patch0: %{name}-paths.patch |
2c9d326f | 19 | URL: http://search.cpan.org/dist/News-NNTPClient/ |
01eb0b00 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
2c9d326f | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
fb5bcafc | 22 | Obsoletes: perl-NNTPClient |
0a3d2c4b | 23 | BuildArch: noarch |
65ab2d57 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb5bcafc | 25 | |
26 | %description | |
c84e578d | 27 | News::NNTPClient - a client interface to NNTP. |
fb5bcafc | 28 | |
be63b24c | 29 | %description -l pl.UTF-8 |
c84e578d | 30 | News::NNTPClient - interfejs klienta NNTP. |
fb5bcafc | 31 | |
32 | %prep | |
33 | %setup -q -n NNTPClient-%{version} | |
16ef46bf | 34 | %patch0 -p0 |
fb5bcafc | 35 | |
36 | %build | |
cf8fe37e | 37 | %{__perl} Makefile.PL \ |
9fd19e19 | 38 | INSTALLDIRS=vendor |
02a33b3a | 39 | %{__make} |
fb5bcafc | 40 | |
6d3663c8 | 41 | %{?with_tests:%{__make} test} |
42 | ||
fb5bcafc | 43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
d4bdec43 | 45 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
52557d93 | 46 | |
6d3663c8 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
2c9d326f | 49 | cp -p demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
fb5bcafc | 50 | |
fb5bcafc | 51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
65db3cfe | 56 | %doc README |
cf8fe37e | 57 | %{perl_vendorlib}/News/NNTPClient.pm |
fb5bcafc | 58 | %{_mandir}/man3/* |
d4bdec43 | 59 | %{_examplesdir}/%{name}-%{version} |