/[packages]/cauldron/gnofract4d/current/SPECS/gnofract4d.spec
ViewVC logotype

Contents of /cauldron/gnofract4d/current/SPECS/gnofract4d.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2022539 - (show annotations) (download)
Wed Dec 27 20:38:03 2023 UTC (5 months ago) by daviddavid
File size: 2127 byte(s)
SILENT: fix empty debug files

1 Name: gnofract4d
2 Version: 4.3
3 Release: %mkrel 6
4 Group: Graphics/Utilities
5 License: BSD
6 Summary: A fractal generation program for linux
7 URL: https://fract4d.github.io/gnofract4d/
8 Source0: https://github.com/fract4d/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
9 Patch0: gnofract4d-4.3-fix_desktop_file.patch
10 Patch1: gnofract4d-4.3-linking.patch
11 # Upstream patches:
12 Patch101: 0001-fract4dc-sanitize-#154.patch
13 Patch102: 0002-Hold-the-GIL-while-deleting-python-objects.patch
14 Patch103: 0003-fix-#177_avoid-GIL-deadlock.patch
15 BuildRequires: pyproject-rpm-macros
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 %autosetup -p1
32
33 # Do not override Mageia flags
34 sed -e 's|^\(os\.environ\["CFLAGS"\] = \).*|\1"%{build_cflags}"|' \
35 -e 's|^\(os\.environ\["OPT"\] = \).*|\1"%{build_cflags}"|' \
36 -e '/\.replace/d' \
37 -e 's/, "-O3"//' \
38 -i setup.py
39
40 %generate_buildrequires
41 %pyproject_buildrequires
42
43 %build
44 %pyproject_wheel
45
46 %install
47 %pyproject_install
48 %pyproject_save_files fract4d fract4d_compiler fract4dgui
49
50 # duplicate docs
51 rm -rf %{buildroot}%{_docdir}/%{name}
52
53 # fix rights
54 chmod 644 %{buildroot}%{_datadir}/%{name}/maps/royal.map
55
56 # install manapage
57 mkdir -p %{buildroot}%{_mandir}/man1/
58 install -m 0644 doc/gnofract4d.1 %{buildroot}%{_mandir}/man1/
59
60 %files -f %{pyproject_files}
61 %doc README.md
62 %license LICENSE
63 %{_bindir}/%{name}
64 %{_datadir}/%{name}/
65 %{_datadir}/pixmaps/%{name}*
66 %{_datadir}/mime/packages/%{name}-mime.xml
67 %{_datadir}/applications/%{name}.desktop
68 %{_iconsdir}/hicolor/*/apps/%{name}.png
69 %{_mandir}/man1/%{name}.1*

  ViewVC Help
Powered by ViewVC 1.1.30