]>
Commit | Line | Data |
---|---|---|
b14d8194 | 1 | Summary: MyPaint is a fast and easy open-source graphics application for digital painters |
27faf09b | 2 | Summary(pl.UTF-8): Szybka i łatwa w obsłudze aplikacja dla komputerowych malarzy |
b14d8194 | 3 | Name: mypaint |
b4a36849 | 4 | Version: 2.0.1 |
4b57b9f0 | 5 | Release: 5 |
27faf09b | 6 | License: GPL v2+ |
b14d8194 | 7 | Group: X11/Applications/Graphics |
49945c6a JB |
8 | #Source0Download: https://github.com/mypaint/mypaint/releases |
9 | Source0: https://github.com/mypaint/mypaint/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
b4a36849 | 10 | # Source0-md5: dc9abd2e9da8477cbad55905ed07a46a |
49945c6a | 11 | URL: http://mypaint.org/ |
f715b9ec | 12 | BuildRequires: gettext-tools |
27faf09b JB |
13 | BuildRequires: glib2-devel >= 2.0 |
14 | BuildRequires: gtk+3-devel >= 3.12 | |
49945c6a JB |
15 | BuildRequires: json-c-devel >= 0.11 |
16 | BuildRequires: lcms2-devel >= 2 | |
17 | BuildRequires: libgomp-devel | |
b4a36849 | 18 | BuildRequires: libmypaint-devel >= 1.6 |
b14d8194 | 19 | BuildRequires: libpng-devel |
27faf09b JB |
20 | BuildRequires: libstdc++-devel >= 6:4.7 |
21 | BuildRequires: mypaint-brushes-devel >= 2.0 | |
def98e1f | 22 | BuildRequires: pkgconfig |
712d9506 JR |
23 | BuildRequires: python3 >= 1:3.7 |
24 | BuildRequires: python3-numpy-devel | |
25 | BuildRequires: python3-pygobject3-devel >= 3.0 | |
26 | BuildRequires: python3-setuptools | |
b14d8194 | 27 | BuildRequires: rpm-pythonprov |
64dffc6a | 28 | BuildRequires: rpmbuild(find_lang) >= 1.32 |
dbabdb9b | 29 | BuildRequires: sed >= 4.0 |
27faf09b | 30 | BuildRequires: swig-python >= 3 |
49945c6a JB |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
c29e50d4 | 33 | Requires: desktop-file-utils |
aeda14a1 | 34 | Requires: gtk+3 >= 3.12 |
c29e50d4 | 35 | Requires: gtk-update-icon-cache |
b14d8194 | 36 | Requires: hicolor-icon-theme |
b4a36849 | 37 | Requires: libmypaint >= 1.6 |
27faf09b | 38 | Requires: mypaint-brushes >= 2.0 |
4b57b9f0 | 39 | Requires: pydoc3 |
712d9506 JR |
40 | Requires: python3-numpy |
41 | Requires: python3-pycairo >= 1.4 | |
42 | Requires: python3-pygobject3 >= 3 | |
b14d8194 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | MyPaint is a fast and easy open-source graphics application for | |
47 | digital painters. It lets you focus on the art instead of the program. | |
48 | You work on your canvas with minimum distractions, bringing up the | |
49 | interface only when you need it. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | MyPaint jest szybką i łatwą w obsłudze aplikacją dla malarzy. | |
53 | Aplikacja pozwala skupić się na własnym dziele poprzez wygodną funkcję | |
54 | ukrywania interfejsu użytkownika. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
27faf09b | 59 | %{__sed} -i -e 's/^\(linkflags\|ccflags\).*-O3.*/pass/' setup.py |
dbabdb9b | 60 | |
b14d8194 | 61 | %build |
712d9506 | 62 | %py3_build |
b14d8194 | 63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
49945c6a | 66 | |
27faf09b | 67 | # see mypaint script /libpath_combined |
cffe90e7 | 68 | # mypaint imports modules by lib.foo, so it cannot be _libdir |
712d9506 | 69 | %py3_install \ |
cffe90e7 JR |
70 | --install-platlib=%{_prefix}/lib/mypaint \ |
71 | --install-purelib=%{_prefix}/lib/lib/mypaint | |
49945c6a JB |
72 | |
73 | # duplicate of scalable? | |
74 | %{__rm} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/actions/*.svg | |
95a78a3a | 75 | |
49945c6a | 76 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{nn_NO,nn} |
b14d8194 | 77 | |
78 | %find_lang %{name} | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post | |
c29e50d4 | 84 | %update_desktop_database |
b14d8194 | 85 | %update_icon_cache hicolor |
86 | ||
87 | %postun | |
c29e50d4 | 88 | %update_desktop_database |
b14d8194 | 89 | %update_icon_cache hicolor |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
49945c6a | 93 | %doc Changelog.md Licenses.dep5 Licenses.md README.md doc/* |
b14d8194 | 94 | %attr(755,root,root) %{_bindir}/mypaint |
49945c6a | 95 | %attr(755,root,root) %{_bindir}/mypaint-ora-thumbnailer |
cffe90e7 JR |
96 | %dir %{_prefix}/lib/mypaint |
97 | %{_prefix}/lib/mypaint/gui | |
98 | %dir %{_prefix}/lib/mypaint/lib | |
99 | %attr(755,root,root) %{_prefix}/lib/mypaint/lib/_mypaintlib*.so | |
100 | %{_prefix}/lib/mypaint/lib/__pycache__ | |
101 | %{_prefix}/lib/mypaint/lib/*.py | |
102 | %{_prefix}/lib/mypaint/lib/layer | |
103 | %{_prefix}/lib/mypaint/MyPaint-2.0.0a0-py*.egg-info | |
27faf09b JB |
104 | %{_datadir}/metainfo/mypaint.appdata.xml |
105 | %{_datadir}/mypaint | |
49945c6a JB |
106 | %{_datadir}/thumbnailers/mypaint-ora.thumbnailer |
107 | %{_desktopdir}/mypaint.desktop | |
49945c6a JB |
108 | %{_iconsdir}/hicolor/*x*/actions/mypaint-tool-*.png |
109 | %{_iconsdir}/hicolor/scalable/actions/mypaint-*.svg | |
27faf09b JB |
110 | %{_iconsdir}/hicolor/scalable/apps/org.mypaint.MyPaint.svg |
111 | %{_iconsdir}/hicolor/symbolic/apps/org.mypaint.MyPaint-symbolic.svg |