3 %bcond_with tests # perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 Summary: GTop - Perl interface to libgtop
9 Summary(pl): GTop - interfejs perlowy do libgtop
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
17 # Source0-md5: bc2fa8e43fb607a5a64e36b9a2661751
18 BuildRequires: libgtop-devel >= 2.0
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: pkgconfig
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This package is a Perl interface to libgtop:
26 <http://home-of-linux.org/gnome/libgtop/>.
28 See also: Stas Bekman's Apache::VMonitor
29 <http://www.cpan.org/modules/by-module/Apache/>.
32 Ten pakiet jest perlowym interfejsem do libgtop:
33 <http://home-of-linux.org/gnome/libgtop/>.
35 Warto zobaczyæ tak¿e Apache::VMonitor Stasa Bekmana:
36 <http://www.cpan.org/modules/by-module/Apache/>.
39 %setup -q -n %{pdir}-%{version}
42 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %{perl_vendorarch}/*.pm
61 %{perl_vendorarch}/%{pdir}
62 %dir %{perl_vendorarch}/auto/%{pdir}
63 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so
64 %{perl_vendorarch}/auto/%{pdir}/*.bs
65 %dir %{perl_vendorarch}/auto/%{pdir}/Server
66 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/Server/*.so
67 %{perl_vendorarch}/auto/%{pdir}/Server/*.bs