## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global altname ZeGrapher Name: zegrapher Summary: Free and opensource math graphing software Version: 3.1.1 Release: %autorelease License: GPL-3.0-or-later URL: https://www.zegrapher.com/ Source0: https://github.com/AdelKS/%{altname}/archive/v%{version}/%{altname}-%{version}.tar.gz # Grab ZeGrapher.appdata.xml from the appdata dir Patch0: https://patch-diff.githubusercontent.com/raw/AdelKS/ZeGrapher/pull/19.patch#/0001-Grab-ZeGrapher.appdata.xml-from-the-appdata-dir.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: pkgconfig(Qt5) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %description ZeGrapher is a plotting program for functions, sequences, parametric equations, and tabular data. It has been designed to be as easy to use as possible. ZeGrapher supports importing and exporting of tabular data from and to CSV files and polynomial (regression) fits, plotting of tangents (the point can be selected interactively). Calculation and plotting of derivatives and integrals is also possible. Plots can be exported in various image formats and as PDF files. %prep %autosetup -p1 -n %{altname}-%{version} sed -i 's|^QMAKE_LFLAGS_RELEASE = -s|QMAKE_LFLAGS_RELEASE =|' ZeGrapher.pro %build mkdir build && cd build %qmake_qt5 ../ PREFIX=%{_prefix} %make_build %install %make_install INSTALL_ROOT=%{buildroot} -C build %find_lang %{altname} --with-qt %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{altname}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{altname}.appdata.xml %files -f %{altname}.lang %doc README.md %license LICENSE %{_bindir}/%{altname} %{_metainfodir}/%{altname}.appdata.xml %{_datadir}/applications/%{altname}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{altname}.png %dir %{_datadir}/%{altname} %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 3.1.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Apr 27 2024 topazus - 3.1.1-11 - SPDX migration * Sat Jan 27 2024 Fedora Release Engineering - 3.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 3.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 3.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 3.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 3.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jan 28 2021 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Aug 24 19:22:32 CEST 2020 Robert-André Mauchin - 3.1.1-1 - Update to 3.1.1 (#1854049) * Wed Jul 29 2020 Fedora Release Engineering - 3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jan 11 20:40:10 CET 2020 Robert-André Mauchin - 3.1-1 - Update to 3.1 (#1787890) * Sat Jul 27 2019 Fedora Release Engineering - 3.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 3.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 3.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Feb 18 2018 Robert-André Mauchin - 3.0.2-4 - Add missing BR for gcc-c++ * Fri Feb 09 2018 Fedora Release Engineering - 3.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 3.0.2-2 - Remove obsolete scriptlets * Wed Oct 11 2017 Robert-André Mauchin - 3.0.2-1 - Upstream release 3.0.2 * Tue Sep 26 2017 Robert-André Mauchin - 3.0.1-2 - Added patches to fix permissions, fix desktop file, add appdata and add install method * Mon Sep 25 2017 Robert-André Mauchin - 3.0.1-1 - Initial package. ## END: Generated by rpmautospec