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