Sophie

Sophie

distrib > Mageia > 2 > x86_64 > by-pkgid > d26be2749d674abaee4ab8a11d0f9b36 > files > 4

gnofract4d-3.14-1.1.mga2.src.rpm

%define subrel 1
Name:           gnofract4d
Version:        3.14
Release:        %mkrel 1
Group:          Graphics
License:        BSD
Summary:        Gnofract 4D: Superior Fractal Software
Source:         %{name}-%{version}.tar.gz
Patch0:		gnofract4d-3.13-fix_desktop_file.patch
Patch1:         gnofract4d-3.13-fix_libdl.patch
URL:            http://%{name}.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires:  python-devel
Requires:       gcc

%description
Gnofract 4D is a free, open source program which allows anyone to
create beautiful images called fractals. The images are automatically
created by the computer based on mathematical principles.
These include the Mandelbrot and Julia sets and many more.
You don't need to do any math: you can explore a universe of images
just using a mouse.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
python setup.py build

%install
%__rm -rf %{buildroot}
python setup.py install --root=%{buildroot}

#duplicate docs
rm -rf %{buildroot}%{_docdir}/%{name}

#fix rights
chmod 644 %{buildroot}%{_datadir}/%{name}/maps/royal.map

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}-logo.png
%{_datadir}/mime/packages/%{name}-mime.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome/help/%{name}
%{python_sitearch}/fract4d
%{python_sitearch}/fract4dgui
%{python_sitearch}/fractutils
%{python_sitearch}/%{name}-%{version}-py%{py_ver}.egg-info




%changelog
* Fri Aug 09 2013 ofaurax <ofaurax> 3.14-1.1.mga2
+ Revision: 465002
- Add Requires:gcc, bug 9091
- new version 3.14

* Mon Apr 18 2011 ofaurax <ofaurax> 3.13-2.mga1
+ Revision: 87481
- Patch to compile with libdl
- imported package gnofract4d