]> git.pld-linux.org Git - packages/perl-GTop.git/blob - perl-GTop.spec
- massive attack: change CPAN URLs
[packages/perl-GTop.git] / perl-GTop.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 %include        /usr/lib/rpm/macros.perl
5 %define pdir    GTop
6 Summary:        GTop - Perl interface to libgtop
7 Summary(pl):    GTOP - perlowy interfejs do libgtop
8 Name:           perl-GTop
9 Version:        0.10
10 Release:        3
11 License:        GPL/Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
14 BuildRequires:  libgtop-devel
15 BuildRequires:  perl >= 5.6
16 BuildRequires:  rpm-perlprov >= 3.0.3-26
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package is a Perl interface to libgtop:
21 http://home-of-linux.org/gnome/libgtop/
22
23 See also: Stas Bekman's Apache::VMonitor
24 http://www.cpan.org/modules/by-module/Apache/
25
26 %description -l pl
27 Ten pakiet jest perlowym interfejsem do libgtop:
28 http://home-of-linux.org/gnome/libgtop/
29
30 Warto zobaczyæ tak¿e Apache::VMonitor Stasa Bekmana:
31 http://www.cpan.org/modules/by-module/Apache/
32
33 %prep
34 %setup -q -n %{pdir}-%{version}
35
36 %build
37   GTOP_LIB=`libgtop-config --libs | perl -we '<>=~/^-L(\S+)/&&print $1'` \
38   GTOP_INCLUDE=`libgtop-config --cflags | perl -we '<>=~/^-I(\S+)/&&print $1'` \
39 perl Makefile.PL
40
41 %{__make} OPTIMIZE="%{rpmcflags}"
42
43 %{!?_without_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{perl_sitearch}/*.pm
56 %{perl_sitearch}/GTop
57 %dir %{perl_sitearch}/auto/GTop
58 %attr(755,root,root) %{perl_sitearch}/auto/GTop/*.so
59 %{perl_sitearch}/auto/GTop/*.bs
60 %dir %{perl_sitearch}/auto/GTop/Server
61 %attr(755,root,root) %{perl_sitearch}/auto/GTop/Server/*.so
62 %{perl_sitearch}/auto/GTop/Server/*.bs
63 %{_mandir}/man3/*
This page took 0.045566 seconds and 4 git commands to generate.