Name: giza Version: 1.5.0 Release: 1%{?dist} Summary: A 2D scientific plotting library built on cairo. License: GPL-3.0-or-later or LGPL-3.0-or-later URL: https://github.com/danieljprice/giza Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: gcc BuildRequires: gcc-gfortran BuildRequires: make BuildRequires: pkgconfig(x11) Patch0: 001-remove-copying-from-docs.patch %description A 2D scientific plotting library built on cairo. Provides uniform output to PDF, PS, PNG and X-Windows. Written in C with no dependencies (other than cairo) as a direct replacement for PGPLOT. This package contains the giza shared libraries. %package -n %{name}-static Summary: giza static libraries Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description -n %{name}-static This package contains the giza static libraries. %package -n %{name}-devel Summary: giza headers and other development files Requires: %{name}%{?_isa} = %{version}-%{release} %description -n %{name}-devel This package contains the header and other development files for developing applications with the giza plotting library. %prep %autosetup -p1 %build %configure %make_build %install %make_install # If EL 9 or lower, remove '.la' files. %if 0%{?el} <= 9 find %{buildroot} -name "*.la" -delete %endif %files -n %{name} %license COPYING COPYING.LESSER %doc README.md INSTALL NEWS AUTHORS ChangeLog %{_libdir}/lib*.so.2* %files -n %{name}-static %license COPYING COPYING.LESSER %doc README.md INSTALL NEWS AUTHORS ChangeLog %{_libdir}/*.a %files -n %{name}-devel %{_includedir}/*.h %{_includedir}/*.F90 %{_libdir}/*.so %{_fmoddir}/giza.mod %{_libdir}/pkgconfig/*.pc %changelog * Fri Oct 03 2025 Phil Wyett - 1.5.0-1 - Initial packaging.