xfractint/xfractint.spec

86 lines
2.8 KiB
RPMSpec

Name: xfractint
Version: 20.04p16
Release: 1mamba
Summary: A freeware fractal generator
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.fractint.org/
Source: http://www.fractint.org/ftp/current/linux/xfractint-%{version}.tar.gz
Source1: http://www.sdboyd56.com/xfractint/Xfractint_maps.tar.bz2
Source2: xfractint-icon-16x16.png
Source3: xfractint-icon-32x32.png
Patch0: xfractint-20.2.04-gcc4.patch
License: Freeware
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXft-devel
BuildRequires: libfontconfig-devel
## AUTOBUILDREQ-END
%description
Fractint is a freeware fractal generator created for IBMPC's and compatible computers. It is the most versatile and extensive fractal program available for any price. The authors (of which I am not one), work very hard to keep it that way. It has many great features and it is constantly being upgraded and improved by the Stone Soup team. Keep this link as a reference to stay up-to-date with the latest developments.
%debug_package
%prep
%setup -q -a1
#%patch0 -p1
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
make install \
BINDIR=%{buildroot}%{_bindir} \
MANDIR=%{buildroot}%{_mandir}/man1 \
SRCDIR=%{buildroot}%{_datadir}/%{name}
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=A fractal generator
GenericName[it]=Un generatore di frattali
Exec=konsole --notoolbar --nomenubar -e xfractint
Icon=xfractint
Terminal=0
Type=Application
Categories=Education;Math;
X-KDE-StartupNotify=false
EOF
install -D -m 0755 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/xfractint.png
install -D -m 0755 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/xfractint.png
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/xfractint
%{_mandir}/man1/xfractint.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/xfractint.desktop
%{_datadir}/icons/hicolor/*/apps/xfractint.png
%changelog
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20.04p16-1mamba
- update to 20.04p16
* Fri Aug 23 2013 Automatic Build System <autodist@mambasoft.it> 20.2.04-3mamba
- automatic rebuild by autodist
* Tue Aug 26 2008 Tiziana Ferro <tiziana.ferro@email.it> 20.2.04-2mamba
- update system menu entry, vendor, distribution, mantainer
- added buildrequirements
* Wed Sep 21 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.04-1qilnx
- package created by autospec