#
# Conditional build:
-%bcond_with tests # perform "make test"
- # require /proc access
+%bcond_with tests # perform "make test" (requires /proc access)
#
-%include /usr/lib/rpm/macros.perl
%define pdir GTop
Summary: GTop - Perl interface to libgtop
-Summary(pl.UTF-8): GTop - interfejs perlowy do libgtop
+Summary(pl.UTF-8): GTop - interfejs perlowy do libgtop
Name: perl-GTop
-Version: 0.15
-Release: 1
+Version: 0.16
+Release: 18
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/GTop/%{pdir}-%{version}.tar.gz
-# Source0-md5: 049553661f8ceb7fa93517e8ed68f712
+# Source0-md5: c3b1f36c3c9e1031f783027fe1c098d0
Patch0: %{name}-error_h.patch
+URL: http://search.cpan.org/dist/GTop/
BuildRequires: libgtop-devel >= 2.0
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: pkgconfig
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make} \
+ CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
%{?with_tests:%{__make} test}
%files
%defattr(644,root,root,755)
%{perl_vendorarch}/*.pm
-%{perl_vendorarch}/%{pdir}
-%dir %{perl_vendorarch}/auto/%{pdir}
-%attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so
-%{perl_vendorarch}/auto/%{pdir}/*.bs
-%dir %{perl_vendorarch}/auto/%{pdir}/Server
-%attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/Server/*.so
-%{perl_vendorarch}/auto/%{pdir}/Server/*.bs
+%dir %{perl_vendorarch}/auto/GTop
+%attr(755,root,root) %{perl_vendorarch}/auto/GTop/GTop.so
+%{perl_vendorarch}/config.pl
%{_mandir}/man3/*