453a91e
Name:           xaos
Gérard Milmeister baff687
Version:        3.6
ba987e3
Release:        20%{?dist}
453a91e
Summary:        A fast, portable real-time interactive fractal zoomer
453a91e
f146443
License:        GPLv2+
453a91e
URL:            http://xaos.sourceforge.net
49072ea
Source0:        http://surfnet.dl.sourceforge.net/sourceforge/xaos/xaos-%{version}.tar.gz
453a91e
Source1:	xaos.png
Gérard Milmeister baff687
Patch0:	xaos-3.6-fix-conflicting-register-types.patch
Gérard Milmeister baff687
Patch1:	xaos-3.6-format-security.patch
ba987e3
Patch2: xaos-c99.patch
489dc85
BuildRequires: make
Igor Gnatenko f4cb5a4
BuildRequires:  gcc
453a91e
BuildRequires:  slang-devel
453a91e
BuildRequires:	zlib-devel
453a91e
BuildRequires:	libpng-devel
453a91e
BuildRequires:	aalib-devel
453a91e
BuildRequires:  gpm-devel
171ea20
BuildRequires:  gsl-devel
26438e2
BuildRequires:  gtk2-devel
453a91e
BuildRequires:	ncurses-devel
453a91e
BuildRequires:	libXt-devel
453a91e
BuildRequires:	libX11-devel
453a91e
BuildRequires:	libXext-devel
453a91e
BuildRequires:	libXxf86vm-devel
453a91e
BuildRequires:	libXxf86dga-devel
aef5381
BuildRequires:	dvipdfm
453a91e
BuildRequires:	texinfo
453a91e
BuildRequires:	texinfo-tex
453a91e
BuildRequires:  desktop-file-utils
651013f
BuildRequires:	gettext
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
49072ea
%setup0 -q 
TASAKA Mamoru 9ca1818
%patch0 -p1 -b .proto
Yaakov Selkowitz f5d0ca5
%patch1 -p1 -b .formatsec
ba987e3
%patch2 -p1
9bd8e07
# disable stripping binaries when installing
9bd8e07
sed -i 's| -s | |' Makefile.in
453a91e
453a91e
%build
49072ea
%ifarch %ix86 x86_64
49072ea
%define long_double --with-long-double
49072ea
%endif
49072ea
%configure \
49072ea
    --with-gsl=yes \
49072ea
    --with-sffe=yes \
49072ea
    --with-png=yes \
49072ea
    --with-gtk-driver=yes \
49072ea
    --with-aa-driver=yes \
49072ea
    --with-pthread=yes \
49072ea
    %{long_double}
453a91e
make %{?_smp_mflags}
453a91e
453a91e
453a91e
%install
453a91e
mkdir -p $RPM_BUILD_ROOT%{_infodir}
Parag Nemade e15af2d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
453a91e
pushd doc
453a91e
make xaos.dvi
453a91e
dvipdfm xaos.dvi
453a91e
popd
453a91e
pushd help
453a91e
make html
453a91e
popd
453a91e
ccf2439
# Setup the doc dir structure for install via %%doc
ccf2439
mv help help-build
ccf2439
mkdir help
ccf2439
cp -pr help-build/*.html help/
ccf2439
cp -pr help-build/*.css help/
ccf2439
cp -pr help-build/*.jpg help/
ccf2439
453a91e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
Parag Nemade e15af2d
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
453a91e
453a91e
cat > xaos.desktop <
453a91e
[Desktop Entry]
453a91e
Name=XaoS
453a91e
Comment=Interactive fractal zoomer
26438e2
Exec=xaos -driver "GTK+ Driver"
aef5381
Icon=xaos
453a91e
Terminal=false
453a91e
Type=Application
aef5381
Categories=Application;Education;Math;Graphics;
453a91e
Encoding=UTF-8
453a91e
X-Desktop-File-Install-Version=0.10
453a91e
EOF
453a91e
453a91e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
453a91e
desktop-file-install \
453a91e
        --dir $RPM_BUILD_ROOT%{_datadir}/applications \
453a91e
        xaos.desktop
453a91e
453a91e
rm -f $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs/README
453a91e
rm -fr $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
453a91e
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
453a91e
26438e2
find $RPM_BUILD_ROOT%{_prefix} -exec chmod u+rw '{}' ';'
453a91e
453a91e
%find_lang %{name}
453a91e
453a91e
%files -f %{name}.lang
49072ea
%doc README COPYING TODO ChangeLog NEWS
49072ea
%doc AUTHORS doc/xaos.pdf
ccf2439
%doc help
453a91e
%{_bindir}/*
453a91e
%{_infodir}/*
453a91e
%{_datadir}/XaoS
453a91e
%{_datadir}/applications/*
453a91e
%{_datadir}/pixmaps/*
453a91e
%{_mandir}/man*/*
453a91e
453a91e
453a91e
%changelog
ba987e3
* Thu Feb 02 2023 Florian Weimer <fweimer@redhat.com> - 3.6-20
ba987e3
- Fix C99 compatibility issues
ba987e3
911f06b
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-19
911f06b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
911f06b
5f4c078
* Tue Aug 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6-18
5f4c078
- Rebuild for gsl-2.7.1
5f4c078
487e890
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-17
487e890
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
487e890
3524247
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-16
3524247
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3524247
320669c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-15
320669c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
320669c
a7847b1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-14
a7847b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a7847b1
2883dd4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-13
2883dd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2883dd4
c38d41f
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-12
c38d41f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c38d41f
d4f83e0
* Tue Aug 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.6-11
d4f83e0
- Rebuilt for GSL 2.6.
d4f83e0
75d270d
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-10
75d270d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
75d270d
80ebb82
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-9
80ebb82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
80ebb82
2051880
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-8
2051880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2051880
a68d7c9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-7
a68d7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a68d7c9
113ddfc
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-6
113ddfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
113ddfc
c6ca41f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-5
c6ca41f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c6ca41f
1ecba49
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-4
1ecba49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1ecba49
Orion Poplawski c4f8110
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 3.6-3
Orion Poplawski c4f8110
- Rebuild for gsl 2.1
Orion Poplawski c4f8110
920e116
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
920e116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
920e116
Gérard Milmeister baff687
* Thu Jul  9 2015 GĂ©rard Milmeister <gemi@bluewin.ch> - 3.6-1
Gérard Milmeister baff687
- new release 3.6
Gérard Milmeister baff687
0df7865
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-13
0df7865
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0df7865
aba9d7c
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-12
aba9d7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aba9d7c
Yaakov Selkowitz f5d0ca5
* Wed Jun 25 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.5-11
Yaakov Selkowitz f5d0ca5
- Fix FTBFS with -Werror=format-security (#1037389, #1107203)
Yaakov Selkowitz f5d0ca5
bd94f5b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-10
bd94f5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bd94f5b
1a0ca35
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-9
1a0ca35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1a0ca35
ccf2439
* Fri Feb 15 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5-8
ccf2439
- Rework help doc installation so that it will build with F19's rpm
ccf2439
Parag Nemade e15af2d
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 3.5-7
Parag Nemade e15af2d
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade e15af2d
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade e15af2d
TASAKA Mamoru 9ca1818
* Wed Aug  1 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 3.5-6
TASAKA Mamoru 9ca1818
- Fix gcc build error wrt conflicting types for register attribute
TASAKA Mamoru 9ca1818
6e699f5
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-5
6e699f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6e699f5
577dcab
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-4
577dcab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
577dcab
4454ca8
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 3.5-3
4454ca8
- Rebuild for new libpng
4454ca8
10ee80e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-2
10ee80e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10ee80e
49072ea
* Sat Jul 25 2009 Gerard Milmeister <gemi@bluewin.ch> - 3.5-1
49072ea
- new release 3.5
49072ea
- Enable long double on ix86 and x86_64 architectures.
49072ea
- Enable i386 inline assembly on ix86.
49072ea
- Enable threads on all architectures
49072ea
4eaac06
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
4eaac06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4eaac06
26438e2
* Wed Aug 20 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.4-2
26438e2
- enabled GTK driver
26438e2
171ea20
* Wed Aug 20 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.4-1
171ea20
- new release 3.4
171ea20
f146443
* Tue Aug 12 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.2.3-5
f146443
- Fix license tag.
f146443
aef5381
* Fri Feb 22 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.2.3-3
aef5381
- added BR dvipdfm
aef5381
186f7ef
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.2.3-2
186f7ef
- Autorebuild for GCC 4.3
186f7ef
8b5227e
* Sat Dec  2 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.3-1
8b5227e
- new version 3.2.3
8b5227e
ff68fc8
* Sun Nov  5 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.2-1
ff68fc8
- new version 3.2.2
ff68fc8
651013f
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-4
651013f
- Rebuild for FE6
651013f
- added BR: gettext
651013f
9bd8e07
* Sat Jun 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-3
9bd8e07
- disabled stripping of binaries
9bd8e07
453a91e
* Tue Jun  6 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-2
453a91e
- added BuildReq: libXt-devel
453a91e
- fixed permissions
453a91e
- added .desktop file
453a91e
- added icon
453a91e
453a91e
* Sun Jun  4 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-1
453a91e
- new version 3.2.1
453a91e
453a91e
* Sat Feb  4 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2-1
453a91e
- new version 3.2
453a91e
453a91e
* Sun Dec 18 2005 Gerard Milmeister <gemi@bluewin.ch> - 3.1.3-1
453a91e
- New Version 3.1.3
453a91e
453a91e
* Thu Mar 31 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:3.1-0.fdr.1
453a91e
- New Version 3.1.2
453a91e
453a91e
* Sun Jul 18 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:3.1-0.fdr.1
453a91e
- First Fedora release