Skip to content

Commit cacbedb

Browse files
committed
added sample rpm spec file
1 parent 18994e6 commit cacbedb

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

feedgnuplot.spec

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Sample spec file for rpm-based systems. Debian-based systems already have this
2+
# packaged, so we do not ship those here
3+
4+
Name: feedgnuplot
5+
Version: 1.38
6+
Release: 1%{?dist}
7+
Summary: Pipe-oriented frontend to Gnuplot
8+
BuildArch: noarch
9+
10+
License: Artistic or GPL-1+
11+
URL: https://www.github.com/dkogan/feedgnuplot/
12+
Source0: https://www.github.com/dkogan/feedgnuplot/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
13+
14+
BuildRequires: /usr/bin/pod2html
15+
BuildRequires: perl-String-ShellQuote
16+
BuildRequires: perl-ExtUtils-MakeMaker
17+
BuildRequires: perl
18+
BuildRequires: gawk
19+
BuildRequires: gnuplot
20+
BuildRequires: perl-IPC-Run
21+
22+
Requires: gnuplot
23+
24+
%description
25+
Flexible, command-line-oriented frontend to Gnuplot. Creates plots from data
26+
coming in on STDIN or given in a filename passed on the commandline. Various
27+
data representations are supported, as is hardcopy output and streaming display
28+
of live data.
29+
30+
%prep
31+
%setup -q
32+
33+
%build
34+
perl Makefile.PL INSTALLDIRS=vendor
35+
make
36+
pod2html --title=feedgnuplot bin/feedgnuplot > feedgnuplot.html
37+
38+
%install
39+
make install DESTDIR=%{buildroot} PREFIX=/usr
40+
41+
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
42+
cp Changes LICENSE feedgnuplot.html %{buildroot}%{_defaultdocdir}/%{name}
43+
44+
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
45+
cp completions/zsh/* %{buildroot}%{_datadir}/zsh/site-functions
46+
47+
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
48+
cp completions/bash/* %{buildroot}%{_datadir}/bash-completion/completions
49+
50+
rm -rf %{buildroot}/usr/lib64
51+
52+
53+
%files
54+
%{_bindir}/*
55+
%{_datadir}/zsh/*
56+
%{_datadir}/bash-completion/*
57+
%doc %{_defaultdocdir}/%{name}/*
58+
%doc %{_mandir}

0 commit comments

Comments
 (0)