]> git.pld-linux.org Git - packages/perl-GTop.git/blob - perl-GTop.spec
perl 5.38.0 rebuild
[packages/perl-GTop.git] / perl-GTop.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires /proc access)
4 #
5 %define         pdir    GTop
6 Summary:        GTop - Perl interface to libgtop
7 Summary(pl.UTF-8):      GTop - interfejs perlowy do libgtop
8 Name:           perl-GTop
9 Version:        0.16
10 Release:        18
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/GTop/%{pdir}-%{version}.tar.gz
15 # Source0-md5:  c3b1f36c3c9e1031f783027fe1c098d0
16 Patch0:         %{name}-error_h.patch
17 URL:            http://search.cpan.org/dist/GTop/
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)
23
24 %description
25 This package is a Perl interface to libgtop:
26 <http://home-of-linux.org/gnome/libgtop/>.
27
28 See also: Stas Bekman's Apache::VMonitor
29 <http://www.cpan.org/modules/by-module/Apache/>.
30
31 %description -l pl.UTF-8
32 Ten pakiet jest perlowym interfejsem do libgtop:
33 <http://home-of-linux.org/gnome/libgtop/>.
34
35 Warto zobaczyć także Apache::VMonitor Stasa Bekmana:
36 <http://www.cpan.org/modules/by-module/Apache/>.
37
38 %prep
39 %setup -q -n %{pdir}-%{version}
40 %patch0 -p1
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make} \
46         CC="%{__cc}" \
47         OPTIMIZE="%{rpmcflags}"
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %{perl_vendorarch}/*.pm
63 %dir %{perl_vendorarch}/auto/GTop
64 %attr(755,root,root) %{perl_vendorarch}/auto/GTop/GTop.so
65 %{perl_vendorarch}/config.pl
66 %{_mandir}/man3/*
This page took 0.067023 seconds and 4 git commands to generate.