76f65e3
# Use forge macros for pulling from GitHub
76f65e3
%global forgeurl https://github.com/xaos-project/XaoS
76f65e3
76f65e3
%global alt_name XaoS
23b88ae
453a91e
Name:           xaos
Packit ce8515a
Version:        4.3.2
76f65e3
Release:        %autorelease
453a91e
Summary:        A fast, portable real-time interactive fractal zoomer
76f65e3
%global tag release-%{version}
76f65e3
%forgemeta
c372644
License:        GPL-2.0-or-later
76f65e3
URL:            %forgeurl
76f65e3
Source:         %forgesource
cb2b505
1698f67
BuildRequires:  qt6-qtbase-devel
1698f67
BuildRequires:  qt6-rpm-macros qt6-linguist
453a91e
453a91e
453a91e
%description
453a91e
XaoS is a fast, portable real-time interactive fractal zoomer. It
453a91e
displays the Mandelbrot set (among other escape time fractals) and
453a91e
allows you zoom smoothly into the fractal. Various coloring modes are
453a91e
provided for both the points inside and outside the selected set. XaoS
453a91e
supports switching between Julia and Mandelbrot fractal types and
453a91e
on-the-fly plane switching.
453a91e
453a91e
453a91e
%prep
fc23812
%forgeautosetup -p1
453a91e
453a91e
%build
1698f67
%qmake_qt6
23b88ae
%make_build STRIP=:
453a91e
453a91e
%install
23b88ae
#
23b88ae
# Stolen from https://build.opensuse.org/package/view_file/openSUSE:Factory/xaos/xaos.spec?expand=1
23b88ae
#
23b88ae
# Empty install target generated by qmake => install files manually
23b88ae
# Binary
23b88ae
install -D --mode 0755 --target-directory %{buildroot}%{_bindir} bin/%{name}
23b88ae
23b88ae
# Data; Datapath forced to %%{alt_name} (not configurable)
23b88ae
install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/%{alt_name}/catalogs catalogs/*.cat
23b88ae
cp --archive examples tutorial %{buildroot}%{_datadir}/%{alt_name}
23b88ae
23b88ae
# Icon, .desktop, AppData
23b88ae
install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/metainfo xdg/%{name}.appdata.xml
56c3304
install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/applications xdg/io.github.xaos_project.XaoS.desktop
23b88ae
install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/pixmaps xdg/%{name}.png
23b88ae
23b88ae
# Man
23b88ae
install -D --mode 0644 --target-directory %{buildroot}%{_mandir}/man6 doc/%{name}.6
23b88ae
23b88ae
%files
23b88ae
%doc CREDITS.md NEWS doc/README
23b88ae
%license COPYING
23b88ae
%{_bindir}/%{name}
23b88ae
%{_datadir}/%{alt_name}
56c3304
%{_datadir}/applications/io.github.xaos_project.XaoS.desktop
23b88ae
%{_datadir}/metainfo/%{name}.appdata.xml
23b88ae
%{_datadir}/pixmaps/%{name}.png
23b88ae
%{_mandir}/man6/xaos.6.gz
453a91e
453a91e
%changelog
a51f736
%autochangelog