]>
Commit | Line | Data |
---|---|---|
91261ff5 | 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 | |
2a27575e | 10 | Release: 2 |
91261ff5 | 11 | License: GPL/Artistic |
12 | Group: Development/Languages/Perl | |
13 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz | |
14 | BuildRequires: perl >= 5.6 | |
15 | BuildRequires: rpm-perlprov >= 3.0.3-26 | |
16 | BuildRequires: libgtop-devel | |
91261ff5 | 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 | %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'` \ | |
32 | perl Makefile.PL | |
33 | ||
34 | %{__make} OPTIMIZE="%{rpmcflags}" | |
35 | ||
36 | %{!?_without_tests:%{__make} test} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
43 | %clean | |
44 | rm -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/* |