1 |
Name: gnofract4d |
2 |
Version: 4.3 |
3 |
%define subrel 1 |
4 |
Release: %mkrel 1 |
5 |
Group: Graphics/Utilities |
6 |
License: BSD |
7 |
Summary: A fractal generation program for linux |
8 |
URL: http://fract4d.github.io/gnofract4d/ |
9 |
Source0: https://github.com/fract4d/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz |
10 |
Patch0: gnofract4d-4.3-fix_desktop_file.patch |
11 |
Patch1: gnofract4d-4.3-linking.patch |
12 |
# Upstream patches: |
13 |
Patch101: 0001-fract4dc-sanitize-#154.patch |
14 |
Patch102: 0002-Hold-the-GIL-while-deleting-python-objects.patch |
15 |
Patch103: 0003-fix-#177_avoid-GIL-deadlock.patch |
16 |
BuildRequires: pkgconfig(python3) |
17 |
BuildRequires: pkgconfig(libjpeg) |
18 |
BuildRequires: pkgconfig(libpng) |
19 |
#needed at runtime, see bug 9091 |
20 |
Requires: gcc |
21 |
|
22 |
%description |
23 |
Gnofract 4D is a free, open source program which allows anyone to |
24 |
create beautiful images called fractals. The images are automatically |
25 |
created by the computer based on mathematical principles. |
26 |
These include the Mandelbrot and Julia sets and many more. |
27 |
You don't need to do any math: you can explore a universe of images |
28 |
just using a mouse. |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
%autopatch -p1 |
33 |
|
34 |
%build |
35 |
%py3_build |
36 |
|
37 |
%install |
38 |
%py3_install |
39 |
|
40 |
#duplicate docs |
41 |
rm -rf %{buildroot}%{_docdir}/%{name} |
42 |
|
43 |
#fix rights |
44 |
chmod 644 %{buildroot}%{_datadir}/%{name}/maps/royal.map |
45 |
|
46 |
# install manapage |
47 |
mkdir -p %{buildroot}%{_mandir}/man1/ |
48 |
install -m 0644 doc/gnofract4d.1 %{buildroot}%{_mandir}/man1/ |
49 |
|
50 |
%files |
51 |
%doc README.md |
52 |
%license LICENSE |
53 |
%{_bindir}/%{name} |
54 |
%{_datadir}/%{name}/ |
55 |
%{_datadir}/pixmaps/%{name}* |
56 |
%{_datadir}/mime/packages/%{name}-mime.xml |
57 |
%{_datadir}/applications/%{name}.desktop |
58 |
%{_iconsdir}/hicolor/*/apps/%{name}.png |
59 |
%{_mandir}/man1/%{name}.1* |
60 |
%{python3_sitearch}/fract4d/ |
61 |
%{python3_sitearch}/fract4d_compiler/ |
62 |
%{python3_sitearch}/fract4dgui/ |
63 |
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info |