]> git.pld-linux.org Git - packages/perl-PGPLOT.git/blob - perl-PGPLOT.spec
- initial release
[packages/perl-PGPLOT.git] / perl-PGPLOT.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        PGPLOT perl module
3 Summary(pl):    Modu³ perla PGPLOT
4 Name:           perl-PGPLOT
5 Version:        2.15
6 Release:        3
7 Copyright:      GPL
8 Group:          Development/Languages/Perl
9 Group(pl):      Programowanie/Jêzyki/Perl
10 Source:         ftp://ftp.perl.org/pub/CPAN/modules/by-module//PGPLOT-%{version}.tar.gz
11 BuildRequires:  rpm-perlprov >= 3.0.3-16
12 BuildRequires:  perl >= 5.005_03-14
13 BuildRequires:  XFree86-devel
14 BuildRequires:  pgplot-devel
15 %requires_eq    perl
16 Requires:       %{perl_sitearch}
17 BuildRoot:      /tmp/%{name}-%{version}-root
18
19 %description
20 PGPLOT - perl interface to the PGPLOT graphics library.
21
22 %description -l pl
23 PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
24
25 %prep
26 %setup -q -n PGPLOT-%{version}
27
28 %build
29 perl Makefile.PL
30 make OPTIMIZE="$RPM_OPT_FLAGS"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
35
36 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/PGPLOT/*.so
37
38 (
39   cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/PGPLOT
40   sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41   mv .packlist.new .packlist
42 )
43
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
45         CHANGES README HELP
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc {CHANGES,README,HELP}.gz
53
54 %{perl_sitearch}/PGPLOT.pm
55
56 %dir %{perl_sitearch}/auto/PGPLOT
57 %{perl_sitearch}/auto/PGPLOT/.packlist
58 %{perl_sitearch}/auto/PGPLOT/PGPLOT.bs
59 %attr(755,root,root) %{perl_sitearch}/auto/PGPLOT/PGPLOT.so
60
61 %{_mandir}/man3/*
This page took 0.221753 seconds and 3 git commands to generate.