xfractint/xfractint.spec

81 lines
2.7 KiB
RPMSpec

Name: xfractint
Version: 20.2.04
Release: 3mamba
Summary: A freeware fractal generator
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://spanky.triumf.ca/www/fractint/fractint.html
Source: http://www.sdboyd56.com/xfractint/xfract%{version}.zip
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
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libX11-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.
%prep
%setup -q -c -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 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