%global debug_package %{nil} %global forgeurl https://github.com/sciplot/sciplot %global common_description %{expand: The goal of the sciplot project is to enable a C++ programmer to conveniently plot beautiful graphs as easy as in other high-level programming languages. sciplot is a header-only library that needs a C++17-capable compiler, but has no external dependencies for compiling.} Name: sciplot0.2 Version: 0.2.2 Release: %autorelease Summary: Modern C++ scientific plotting library (0.2 compatibility package) License: MIT URL: https://sciplot.github.io/ Source: %{forgeurl}/archive/v%{version}/sciplot-%{version}.tar.gz # Enable testing with CMake and ctest Patch: %{forgeurl}/pull/115.patch BuildRequires: cmake BuildRequires: gcc-c++ %description %{common_description} %package devel Summary: %{summary} Provides: %{name}-static = %{version}-%{release} Conflicts: sciplot-devel %description devel %{common_description} %prep %autosetup -p1 -n sciplot-%{version} # Fix permissions chmod -x LICENSE README.md %build %cmake \ -DSCIPLOT_BUILD_DOCS=OFF \ -DSCIPLOT_BUILD_EXAMPLES=OFF \ -DSCIPLOT_BUILD_TESTS=OFF %cmake_build %install %cmake_install %files devel %license LICENSE %doc README.md %{_includedir}/sciplot/ %{_datadir}/sciplot/ %changelog %autochangelog