%global app_id se.sjoerd.Graphs %global forgeurl https://gitlab.gnome.org/World/Graphs %global tag v%{version} %global gio_pyio_ver 0.0.6 Name: graphs Version: 2.0.9 Release: 1%{?dist} Summary: Plot and manipulate data License: GPL-3.0-or-later BugURL: https://github.com/Infiniti151/flatpak-apps/issues %forgemeta URL: %{forgeurl} Source0: %{forgesource} # gio_pyio is not packaged in Fedora; bundle the pure-Python wheel Source1: https://files.pythonhosted.org/packages/py3/g/gio_pyio/gio_pyio-%{gio_pyio_ver}-py3-none-any.whl # Build tools BuildRequires: meson >= 1.2.0 BuildRequires: gcc BuildRequires: vala BuildRequires: gettext BuildRequires: itstool BuildRequires: blueprint-compiler BuildRequires: desktop-file-utils BuildRequires: appstream BuildRequires: forge-srpm-macros BuildRequires: gtk-update-icon-cache BuildRequires: glibc-langpack-en BuildRequires: gobject-introspection # Libraries BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) >= 1.8.0 BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libgsf-1) # Python (embedded launcher + modules checked by meson at configure time) BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-gobject BuildRequires: python3-numpy BuildRequires: python3-scipy BuildRequires: python3-matplotlib BuildRequires: python3-sympy BuildRequires: python3-numexpr BuildRequires: python3-pytest Requires: hicolor-icon-theme Requires: gtk4 Requires: libadwaita >= 1.8.0 Requires: python3-gobject Requires: python3-numpy Requires: python3-scipy Requires: python3-matplotlib Requires: python3-matplotlib-gtk4 Requires: python3-sympy Requires: python3-numexpr Requires: python3-cycler Provides: bundled(python3dist(gio-pyio)) = %{gio_pyio_ver} %description Graphs is a simple, yet powerful tool that allows you to plot and manipulate your data with ease. New data can be imported from a wide variety of filetypes, or generated by equation. All data can be manipulated using a variety of operations such as the ability to select, cut, translate, multiply, center and smoothen data, as well as apply any custom transformations on the data. Moreover, Graphs supports curve fitting on imported data and offers extensive customization options for the style of the plots. You can fine-tune and personalize stylesheets to your liking. Graphs is an excellent fit for both plotting and data manipulation. The plots created with Graphs can be saved in a variety of formats suitable for sharing and presenting to a wide audience, such as in a scientific publication or presentations. Additionally, the option to save plots as vector images allows for easy editing in software like Inkscape for further refinement. Graphs is written with the GNOME environment in mind, but should be suitable for any other desktop environment as well. For any feedback, questions or general issues, please file an issue on the GitLab page. %prep %forgesetup # Make gio_pyio importable for meson's configure-time module check pip3 install --no-deps --no-index --target="$PWD/pydeps" %{SOURCE1} %build export PYTHONPATH="$PWD/pydeps" %meson %meson_build %install %meson_install # upstream's install_subdir() uses an absolute build-dir path, which DESTDIR redirects into the buildroot (the test files from tests/meson.build) rm -rf "%{buildroot}${PWD:?}/%{_vpath_builddir}/run_tests" # Install the bundled wheel into the buildroot pip3 install --no-deps --no-index --ignore-installed --root-user-action=ignore --prefix=%{buildroot}%{_prefix} %{SOURCE1} %find_lang %{name} --with-gnome %py3_shebang_fix %{buildroot}%{_bindir}/%{name} %check # upstream's install_subdir() put run_tests in the buildroot, so copy it to the real build dir for meson's pytest test cp -a tests %{_vpath_builddir}/run_tests export LD_LIBRARY_PATH=%{buildroot}%{_libdir} export GI_TYPELIB_PATH=%{buildroot}%{_libdir}/girepository-1.0 export PYTHONPATH=%{buildroot}%{python3_sitelib}:%{buildroot}%{python3_sitearch} %meson_test desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop appstreamcli validate --no-net --explain %{buildroot}%{_metainfodir}/*.metainfo.xml %files -f %{name}.lang %license LICENSE %doc README.md %{_bindir}/%{name} %{_libdir}/libgraphs.so %{_libdir}/girepository-1.0/Graphs-1.typelib %{python3_sitelib}/graphs/ %{python3_sitelib}/gio_pyio/ %{python3_sitelib}/gio_pyio-*.dist-info/ %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/dbus-1/services/*.service %{_datadir}/mime/packages/*.xml %{_mandir}/man1/graphs.1* %{_metainfodir}/*.metainfo.xml %changelog * Sat Nov 14 2026 Infiniti151 <43163551+Infiniti151@users.noreply.github.com> - 2.0.9-1 - Update to 2.0.9