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