%global app_id se.sjoerd.Graphs %global tag v%{version} %global gio_pyio_ver 0.0.6 Name: graphs Version: 2.0.10 Release: 1%{?dist} Summary: Plot and manipulate data License: GPL-3.0-or-later BugURL: https://github.com/Infiniti151/flatpak-apps/issues URL: https://gitlab.gnome.org/World/Graphs # gio_pyio is not packaged in Fedora; bundle the pure-Python wheel Source0: 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: git-core BuildRequires: gcc BuildRequires: vala BuildRequires: gettext BuildRequires: itstool BuildRequires: blueprint-compiler BuildRequires: desktop-file-utils BuildRequires: appstream BuildRequires: desktop-rpm-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 rm -rf %{name}-%{version} git clone --depth 1 --branch %{tag} %{url}.git %{name}-%{version} rm -rf %{name}-%{version}/.git %setup -T -D -n %{name}-%{version} # Make gio_pyio importable for meson's configure-time module check pip3 install --no-deps --no-index --target="$PWD/pydeps" %{SOURCE0} %conf export PYTHONPATH="$PWD/pydeps" %meson %build export PYTHONPATH="$PWD/pydeps" %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 %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/ %{_appsdir}/*.desktop %{_scalableiconsdir}/*.svg %{_symboliciconsdir}/*.svg %{_gschemasdir}/*.gschema.xml %{_dbusservicesdir}/*.service %{_mimepackagesdir}/*.xml %{_mandir}/man1/graphs.1* %{_metainfodir}/*.metainfo.xml %changelog * Sat Nov 28 2026 Infiniti151 <43163551+Infiniti151@users.noreply.github.com> - 2.0.10-1 - Bug fixes: - Fixed operation buttons in the sidebar being cut off when their labels do not fit, which was the case in some translations - Fixed error bars not changing their color when the system switches between light and dark mode - Other Improvements - Translation updates * Sat Nov 14 2026 Infiniti151 <43163551+Infiniti151@users.noreply.github.com> - 2.0.9-1 - Update to 2.0.9