]> git.pld-linux.org Git - packages/perl-PGPLOT.git/blob - perl-PGPLOT.spec
- added using %%{__make} macro.
[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 License:        GPL
8 Group:          Development/Languages/Perl
9 Group(pl):      Programowanie/Jêzyki/Perl
10 Source0:        ftp://ftp.perl.org/pub/CPAN/modules/by-module/PGPLOT/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 BuildRequires:  perl-ExtUtils-F77 >= 1.11
16 BuildRequires:  gcc-g77
17 %requires_eq    perl
18 Requires:       %{perl_sitearch}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 PGPLOT - perl interface to the PGPLOT graphics library.
23
24 %description -l pl
25 PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
26
27 %prep
28 %setup -q -n PGPLOT-%{version}
29
30 %build
31 perl Makefile.PL
32 %{__make} OPTIMIZE="$RPM_OPT_FLAGS"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 %{__make} install DESTDIR=$RPM_BUILD_ROOT
37
38 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/PGPLOT/*.so
39
40 (
41   cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/PGPLOT
42   sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
43   mv .packlist.new .packlist
44 )
45
46 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
47         CHANGES README HELP
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc {CHANGES,README,HELP}.gz
55
56 %{perl_sitearch}/PGPLOT.pm
57
58 %dir %{perl_sitearch}/auto/PGPLOT
59 %{perl_sitearch}/auto/PGPLOT/.packlist
60 %{perl_sitearch}/auto/PGPLOT/PGPLOT.bs
61 %attr(755,root,root) %{perl_sitearch}/auto/PGPLOT/PGPLOT.so
62
63 %{_mandir}/man3/*
This page took 0.030351 seconds and 3 git commands to generate.