|
|
13f61b3 |
%global altname ZeGrapher
|
|
|
13f61b3 |
|
|
|
13f61b3 |
Name: zegrapher
|
|
|
13f61b3 |
Summary: Free and opensource math graphing software
|
|
|
8adac6c |
Version: 3.1.1
|
|
|
0c2942b |
Release: %autorelease
|
|
|
7c01f86 |
License: GPL-3.0-or-later
|
|
|
13f61b3 |
|
|
|
13f61b3 |
URL: https://www.zegrapher.com/
|
|
|
13f61b3 |
Source0: https://github.com/AdelKS/%{altname}/archive/v%{version}/%{altname}-%{version}.tar.gz
|
|
|
8adac6c |
# Grab ZeGrapher.appdata.xml from the appdata dir
|
|
|
8adac6c |
Patch0: https://patch-diff.githubusercontent.com/raw/AdelKS/ZeGrapher/pull/19.patch#/0001-Grab-ZeGrapher.appdata.xml-from-the-appdata-dir.patch
|
|
|
13f61b3 |
|
|
|
a7239e9 |
BuildRequires: make
|
|
|
220778e |
BuildRequires: gcc-c++
|
|
|
13f61b3 |
BuildRequires: boost-devel
|
|
|
13f61b3 |
BuildRequires: pkgconfig(Qt5)
|
|
|
13f61b3 |
BuildRequires: pkgconfig(Qt5WebKit)
|
|
|
13f61b3 |
BuildRequires: desktop-file-utils
|
|
|
13f61b3 |
BuildRequires: libappstream-glib
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%description
|
|
|
0e297c4 |
ZeGrapher is a plotting program for functions, sequences, parametric equations,
|
|
|
13f61b3 |
and tabular data. It has been designed to be as easy to use as possible.
|
|
|
13f61b3 |
|
|
|
13f61b3 |
ZeGrapher supports importing and exporting of tabular data from and to CSV files
|
|
|
0e297c4 |
and polynomial (regression) fits, plotting of tangents (the point can be
|
|
|
0e297c4 |
selected interactively). Calculation and plotting of derivatives and integrals
|
|
|
13f61b3 |
is also possible.
|
|
|
13f61b3 |
|
|
|
13f61b3 |
Plots can be exported in various image formats and as PDF files.
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%prep
|
|
|
13f61b3 |
%autosetup -p1 -n %{altname}-%{version}
|
|
|
13f61b3 |
sed -i 's|^QMAKE_LFLAGS_RELEASE = -s|QMAKE_LFLAGS_RELEASE =|' ZeGrapher.pro
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%build
|
|
|
0e297c4 |
mkdir build && cd build
|
|
|
13f61b3 |
%qmake_qt5 ../ PREFIX=%{_prefix}
|
|
|
13f61b3 |
%make_build
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%install
|
|
|
0e297c4 |
%make_install INSTALL_ROOT=%{buildroot} -C build
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%find_lang %{altname} --with-qt
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%check
|
|
|
13f61b3 |
desktop-file-validate %{buildroot}%{_datadir}/applications/%{altname}.desktop
|
|
|
8adac6c |
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{altname}.appdata.xml
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%files -f %{altname}.lang
|
|
|
13f61b3 |
%doc README.md
|
|
|
13f61b3 |
%license LICENSE
|
|
|
13f61b3 |
%{_bindir}/%{altname}
|
|
|
8adac6c |
%{_metainfodir}/%{altname}.appdata.xml
|
|
|
13f61b3 |
%{_datadir}/applications/%{altname}.desktop
|
|
|
13f61b3 |
%{_datadir}/icons/hicolor/128x128/apps/%{altname}.png
|
|
|
13f61b3 |
%dir %{_datadir}/%{altname}
|
|
|
13f61b3 |
|
|
|
13f61b3 |
%changelog
|
|
|
0c2942b |
%autochangelog
|