%global reldate 20150401 %global relgitver 95f9502 Name: gnuplot-iostream Version: 0.%{reldate}_%{relgitver} Release: 1%{?dist} Summary: C++ gnuplot interface License: MIT URL: http://stahlke.org/dan/gnuplot-iostream/ # git clone https://github.com/dstahlke/gnuplot-iostream.git # tar cjf gnuplot-iostream-%{relgitver}.tar.bz2 gnuplot-iostream Source0: gnuplot-iostream-%{relgitver}.tar.bz2 BuildRequires: boost Requires: boost BuildArch: noarch %description A simple C++ gnuplot interface, based on an iostream %prep %autosetup -n %{name} %build head -n22 gnuplot-iostream.h | tail -n19 > COPYING %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_includedir}/gnuplot-iostream install gnuplot-iostream.h $RPM_BUILD_ROOT%{_includedir}/gnuplot-iostream %check make test || true %files %license COPYING %doc README %{_includedir}/gnuplot-iostream %changelog * Wed May 30 2018 Thomas Sailer - 0.20150401_95f9502-1 - initial package