| |
@@ -1,34 +1,17 @@
|
| |
+ %global src_name release-4.2.1.tar.gz
|
| |
+ %global alt_name XaoS
|
| |
+
|
| |
Name: xaos
|
| |
- Version: 3.6
|
| |
- Release: 18%{?dist}
|
| |
+ Version: 4.2.1
|
| |
+ Release: 2%{?dist}
|
| |
Summary: A fast, portable real-time interactive fractal zoomer
|
| |
|
| |
- License: GPLv2+
|
| |
- URL: http://xaos.sourceforge.net
|
| |
- Source0: http://surfnet.dl.sourceforge.net/sourceforge/xaos/xaos-%{version}.tar.gz
|
| |
- Source1: xaos.png
|
| |
- Patch0: xaos-3.6-fix-conflicting-register-types.patch
|
| |
- Patch1: xaos-3.6-format-security.patch
|
| |
- BuildRequires: make
|
| |
- BuildRequires: gcc
|
| |
- BuildRequires: slang-devel
|
| |
- BuildRequires: zlib-devel
|
| |
- BuildRequires: libpng-devel
|
| |
- BuildRequires: aalib-devel
|
| |
- BuildRequires: gpm-devel
|
| |
- BuildRequires: gsl-devel
|
| |
- BuildRequires: gtk2-devel
|
| |
- BuildRequires: ncurses-devel
|
| |
- BuildRequires: libXt-devel
|
| |
- BuildRequires: libX11-devel
|
| |
- BuildRequires: libXext-devel
|
| |
- BuildRequires: libXxf86vm-devel
|
| |
- BuildRequires: libXxf86dga-devel
|
| |
- BuildRequires: dvipdfm
|
| |
- BuildRequires: texinfo
|
| |
- BuildRequires: texinfo-tex
|
| |
- BuildRequires: desktop-file-utils
|
| |
- BuildRequires: gettext
|
| |
+ License: GPL-2.0-or-later
|
| |
+ URL: https://github.com/xaos-project/XaoS
|
| |
+ Source: https://github.com/xaos-project/XaoS/archive/refs/tags/%{src_name}
|
| |
+
|
| |
+ BuildRequires: qt5-qtbase-devel
|
| |
+ BuildRequires: qt5-rpm-macros qt5-linguist
|
| |
|
| |
|
| |
%description
|
| |
@@ -41,87 +24,49 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %setup0 -q
|
| |
- %patch0 -p1 -b .proto
|
| |
- %patch1 -p1 -b .formatsec
|
| |
- # disable stripping binaries when installing
|
| |
- sed -i 's| -s | |' Makefile.in
|
| |
+ %autosetup -n XaoS-release-4.2.1
|
| |
|
| |
%build
|
| |
- %ifarch %ix86 x86_64
|
| |
- %define long_double --with-long-double
|
| |
- %endif
|
| |
- %configure \
|
| |
- --with-gsl=yes \
|
| |
- --with-sffe=yes \
|
| |
- --with-png=yes \
|
| |
- --with-gtk-driver=yes \
|
| |
- --with-aa-driver=yes \
|
| |
- --with-pthread=yes \
|
| |
- %{long_double}
|
| |
- make %{?_smp_mflags}
|
| |
-
|
| |
+ %qmake_qt5
|
| |
+ %make_build STRIP=:
|
| |
|
| |
%install
|
| |
- mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
| |
- make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
| |
- pushd doc
|
| |
- make xaos.dvi
|
| |
- dvipdfm xaos.dvi
|
| |
- popd
|
| |
- pushd help
|
| |
- make html
|
| |
- popd
|
| |
-
|
| |
- # Setup the doc dir structure for install via %%doc
|
| |
- mv help help-build
|
| |
- mkdir help
|
| |
- cp -pr help-build/*.html help/
|
| |
- cp -pr help-build/*.css help/
|
| |
- cp -pr help-build/*.jpg help/
|
| |
-
|
| |
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
| |
- cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
| |
-
|
| |
- cat > xaos.desktop <<EOF
|
| |
- [Desktop Entry]
|
| |
- Name=XaoS
|
| |
- Comment=Interactive fractal zoomer
|
| |
- Exec=xaos -driver "GTK+ Driver"
|
| |
- Icon=xaos
|
| |
- Terminal=false
|
| |
- Type=Application
|
| |
- Categories=Application;Education;Math;Graphics;
|
| |
- Encoding=UTF-8
|
| |
- X-Desktop-File-Install-Version=0.10
|
| |
- EOF
|
| |
-
|
| |
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
| |
- desktop-file-install \
|
| |
- --dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
| |
- xaos.desktop
|
| |
-
|
| |
- rm -f $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs/README
|
| |
- rm -fr $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
|
| |
- rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
| |
-
|
| |
- find $RPM_BUILD_ROOT%{_prefix} -exec chmod u+rw '{}' ';'
|
| |
-
|
| |
- %find_lang %{name}
|
| |
-
|
| |
- %files -f %{name}.lang
|
| |
- %doc README COPYING TODO ChangeLog NEWS
|
| |
- %doc AUTHORS doc/xaos.pdf
|
| |
- %doc help
|
| |
- %{_bindir}/*
|
| |
- %{_infodir}/*
|
| |
- %{_datadir}/XaoS
|
| |
- %{_datadir}/applications/*
|
| |
- %{_datadir}/pixmaps/*
|
| |
- %{_mandir}/man*/*
|
| |
-
|
| |
+ #
|
| |
+ # Stolen from https://build.opensuse.org/package/view_file/openSUSE:Factory/xaos/xaos.spec?expand=1
|
| |
+ #
|
| |
+ # Empty install target generated by qmake => install files manually
|
| |
+ # Binary
|
| |
+ install -D --mode 0755 --target-directory %{buildroot}%{_bindir} bin/%{name}
|
| |
+
|
| |
+ # Data; Datapath forced to %%{alt_name} (not configurable)
|
| |
+ install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/%{alt_name}/catalogs catalogs/*.cat
|
| |
+ cp --archive examples tutorial %{buildroot}%{_datadir}/%{alt_name}
|
| |
+
|
| |
+ # Icon, .desktop, AppData
|
| |
+ install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/metainfo xdg/%{name}.appdata.xml
|
| |
+ install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/applications xdg/%{name}.desktop
|
| |
+ install -D --mode 0644 --target-directory %{buildroot}%{_datadir}/pixmaps xdg/%{name}.png
|
| |
+
|
| |
+ # Man
|
| |
+ install -D --mode 0644 --target-directory %{buildroot}%{_mandir}/man6 doc/%{name}.6
|
| |
+
|
| |
+ %files
|
| |
+ %doc CREDITS.md NEWS doc/README
|
| |
+ %license COPYING
|
| |
+ %{_bindir}/%{name}
|
| |
+ %{_datadir}/%{alt_name}
|
| |
+ %{_datadir}/applications/%{name}.desktop
|
| |
+ %{_datadir}/metainfo/%{name}.appdata.xml
|
| |
+ %{_datadir}/pixmaps/%{name}.png
|
| |
+ %{_mandir}/man6/xaos.6.gz
|
| |
|
| |
%changelog
|
| |
+ * Fri Jan 13 2023 Dale Turner <rxguy@protonmail.com> - 4.2.1-2
|
| |
+ - migrated to SPDX license
|
| |
+
|
| |
+ * Sat Jan 07 2023 Dale Turner <rxguy@protonmail.com> - 4.2.1
|
| |
+ - Update to 4.2.1
|
| |
+
|
| |
* Tue Aug 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6-18
|
| |
- Rebuild for gsl-2.7.1
|
| |
|
| |
@@ -173,7 +118,7 @@
|
| |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
| |
|
| |
- * Thu Jul 9 2015 Gérard Milmeister <gemi@bluewin.ch> - 3.6-1
|
| |
+ * Thu Jul 9 2015 GĂ©rard Milmeister <gemi@bluewin.ch> - 3.6-1
|
| |
- new release 3.6
|
| |
|
| |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-13
|
| |
Update to 4.2.1 - Many changes including: Qt interface instead of GTK, C++ instead of C, etc. Removed unneeded patch files.