-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperl-Chart-Graph.spec
More file actions
69 lines (59 loc) · 1.83 KB
/
perl-Chart-Graph.spec
File metadata and controls
69 lines (59 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Conditional build:
%bcond_with tests # perform "make test"
#
%define pdir Chart
%define pnam Graph
Summary: Chart::Graph - Perl extension for a front-end to gnuplot, XRT, and Xmgrace
Summary(pl.UTF-8): Chart::Graph - rozszerzenie Perla o interfejs do gnuplota, XRT i Xmgrace
Name: perl-Chart-Graph
Version: 3.2
Release: 5
License: GPL v2
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 308394f5e2fd06d0aa52d2a9c6b72a44
URL: http://search.cpan.org/dist/Chart-Graph/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRequires: XFree86-Xvfb
BuildRequires: gnuplot
BuildRequires: grace
%endif
Provides: perl(Chart::Graph::Xmgrace::Axis_Options)
Provides: perl(Chart::Graph::Xmgrace::Dataset_Options)
Provides: perl(Chart::Graph::Xmgrace::Graph_Options)
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreq_perl Base_Option
%description
Graph.pm is a wrapper module that allows easy generation of graphs
within Perl. Currently Graph.pm supports three graphing packages,
gnuplot, XRT, and Xmgrace.
%description -l pl.UTF-8
Graph.pm to moduł obudowujący pozwalający na łatwe generowanie
wykresów z poziomu Perla. Aktualnie obsługuje trzy pakiety do
wykresów: gnuplot, XRT i Xmgrace.
%prep
%setup -q -n Chart-Graph-%{version}
%build
echo gnuplot xmgrace | perl Makefile.PL \
INSTALLDIRS=vendor
%{__make}
# tests disabled by default as they require GUI
%if %{with tests}
PATH="/usr/X11R6/bin:$PATH" %{__make} test
%endif
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Change* TODO doc/*
%{perl_vendorlib}/%{pdir}/*.pm
%{perl_vendorlib}/%{pdir}/%{pnam}
%{_mandir}/man3/*