Name: gr Version: 0.71.3 Release: 1%{?dist} Summary: A graphics library for visualisation applications Group: Development/Libraries License: MIT URL: https://gr-framework.org/ Source0: https://github.com/sciapp/%{name}/archive/refs/tags/v%{version}.tar.gz BuildRequires: bzip2-devel BuildRequires: cairo-devel BuildRequires: cmake BuildRequires: ffmpeg-free-devel BuildRequires: freetype-devel BuildRequires: gcc-c++ BuildRequires: ghostscript-devel BuildRequires: glfw-devel BuildRequires: gtk2-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libogg-devel BuildRequires: libpng-devel BuildRequires: libtheora-devel BuildRequires: libtiff-devel BuildRequires: libX11-devel BuildRequires: libXt-devel BuildRequires: libXft-devel BuildRequires: pixman-devel BuildRequires: qhull-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt6-qtbase-devel BuildRequires: wxGTK3-devel BuildRequires: zeromq-devel BuildRequires: zlib-devel # Do not use bundled fonts Requires: urw-base35-fonts Requires: texlive-dingbat Requires: dejavu-fonts-all Requires: texlive-fpl %description GR is a universal framework for cross-platform visualization applications. It offers developers a compact, portable and consistent graphics library for their programs. Applications range from publication quality 2D graphs to the representation of complex 3D scenes. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n gr-%{version} %build %cmake -DGR_BUILD_DEMOS=OFF \ -DGR_USE_BUNDLED_LIBRARIES=OFF \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SHARED_LINKER_FLAGS=-Wl,-soname,0 \ -DGR_SHARED_LIBRARY_SUFFIX=.so.%{version} %cmake_build %install %cmake_install rm -r %{buildroot}/usr//fonts # Remove static libraries (share libraries are available) rm %{buildroot}/%{_libdir}/*.a %check # No tests %files %{_bindir}/gksqt %{_bindir}/grplot #%exclude fonts %license LICENSE.md %exclude %{_datadir}/doc/GR %doc README.md %doc examples/*.c %doc examples/*.f %{_libdir}/*.so.0.* %files devel %{_includedir}/*.h %dir %{_includedir}/grm %{_includedir}/grm/*.h %dir %{_libdir}/cmake/GR/ %{_libdir}/cmake/GR/*.cmake %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %changelog * Sun Jan 08 2023 Benson Muite - 0.71.3-1 - Update packaged version * Fri Dec 23 2022 Benson Muite - 0.71.2-1 - Initial packaging