]>
Commit | Line | Data |
---|---|---|
4a2f463b CM |
1 | # TODO: |
2 | # * create devel subpackage | |
def98e1f | 3 | # * fix lang packaging |
b14d8194 | 4 | Summary: MyPaint is a fast and easy open-source graphics application for digital painters |
5 | Summary(pl.UTF-8): Szybka i łatwa w obsłudze aplikacja dla komputerowych malarzy. | |
6 | Name: mypaint | |
4a2f463b | 7 | Version: 1.1.0 |
def98e1f | 8 | Release: 0.1 |
b14d8194 | 9 | License: GPL |
10 | Group: X11/Applications/Graphics | |
11 | Source0: http://download.gna.org/mypaint/%{name}-%{version}.tar.bz2 | |
12 | URL: http://mypaint.intilinux.com/ | |
b14d8194 | 13 | BuildRequires: gettext-devel |
def98e1f | 14 | BuildRequires: gtk+2-devel |
4a2f463b CM |
15 | BuildRequires: json-c-devel |
16 | BuildRequires: lcms2-devel | |
b14d8194 | 17 | BuildRequires: libpng-devel |
def98e1f | 18 | BuildRequires: pkgconfig |
b14d8194 | 19 | BuildRequires: python-numpy-numarray-devel |
def98e1f | 20 | BuildRequires: python-pygobject-devel |
b14d8194 | 21 | BuildRequires: rpm-pythonprov |
64dffc6a | 22 | BuildRequires: rpmbuild(find_lang) >= 1.32 |
b14d8194 | 23 | BuildRequires: scons |
24 | BuildRequires: swig-python | |
def98e1f | 25 | Requires(post,postun): desktop-file-utils |
b14d8194 | 26 | Requires: hicolor-icon-theme |
b14d8194 | 27 | Requires: python-numpy-numarray |
28 | Requires: python-pycairo | |
29 | Requires: python-pygtk-gtk | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | MyPaint is a fast and easy open-source graphics application for | |
34 | digital painters. It lets you focus on the art instead of the program. | |
35 | You work on your canvas with minimum distractions, bringing up the | |
36 | interface only when you need it. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | MyPaint jest szybką i łatwą w obsłudze aplikacją dla malarzy. | |
40 | Aplikacja pozwala skupić się na własnym dziele poprzez wygodną funkcję | |
41 | ukrywania interfejsu użytkownika. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | ||
46 | %build | |
47 | %scons | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
def98e1f | 51 | %scons prefix=$RPM_BUILD_ROOT%{_prefix} install |
b14d8194 | 52 | |
53 | # unsupported | |
4a2f463b | 54 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nn_NO |
b14d8194 | 55 | |
56 | %find_lang %{name} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post | |
def98e1f ER |
62 | /sbin/ldconfig |
63 | umask 022 | |
64 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 ||: | |
b14d8194 | 65 | %update_icon_cache hicolor |
66 | ||
67 | %postun | |
def98e1f ER |
68 | /sbin/ldconfig |
69 | umask 022 | |
70 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 | |
b14d8194 | 71 | %update_icon_cache hicolor |
72 | ||
73 | %files -f %{name}.lang | |
74 | %defattr(644,root,root,755) | |
75 | %doc README changelog doc/* | |
76 | %attr(755,root,root) %{_bindir}/mypaint | |
77 | %dir %{_libdir}/mypaint | |
78 | %attr(755,root,root) %{_libdir}/mypaint/*_mypaintlib.so | |
79 | %{_desktopdir}/mypaint.desktop | |
def98e1f ER |
80 | %{_iconsdir}/hicolor/16x16/apps/mypaint.png |
81 | %{_iconsdir}/hicolor/16x16/actions/*.png | |
82 | %{_iconsdir}/hicolor/22x22/apps/mypaint.png | |
83 | %{_iconsdir}/hicolor/22x22/actions/*.png | |
84 | %{_iconsdir}/hicolor/24x24/apps/mypaint.png | |
85 | %{_iconsdir}/hicolor/24x24/actions/*.png | |
86 | %{_iconsdir}/hicolor/32x32/apps/mypaint.png | |
87 | %{_iconsdir}/hicolor/32x32/actions/*.png | |
88 | %{_iconsdir}/hicolor/48x48/apps/mypaint.png | |
89 | %{_iconsdir}/hicolor/48x48/actions/*.png | |
90 | %{_iconsdir}/hicolor/scalable/apps/mypaint.svg | |
91 | %{_iconsdir}/hicolor/scalable/actions/*.svg | |
b14d8194 | 92 | %dir %{_datadir}/mypaint |
93 | %{_datadir}/mypaint/backgrounds | |
94 | %dir %{_datadir}/mypaint/brushes | |
4a2f463b | 95 | %{_datadir}/mypaint/brushes/FX_blender_prev.png |
b14d8194 | 96 | %{_datadir}/mypaint/brushes/classic |
97 | %{_datadir}/mypaint/brushes/deevad | |
98 | %{_datadir}/mypaint/brushes/experimental | |
99 | %{_datadir}/mypaint/brushes/ramon | |
100 | %{_datadir}/mypaint/brushes/tanda | |
def98e1f | 101 | #%{_datadir}/mypaint/brushes/FX_blender_prev |
b14d8194 | 102 | %attr(755,root,root) %{_datadir}/mypaint/brushes/label-brush-mypaint.sh |
103 | %{_datadir}/mypaint/brushes/order.conf | |
104 | %{_datadir}/mypaint/brushes/prev-template.xcf.gz | |
105 | %dir %{_datadir}/mypaint/brushlib | |
106 | %{_datadir}/mypaint/brushlib/__init__.py | |
107 | %{_datadir}/mypaint/brushlib/brushsettings.py | |
4a2f463b | 108 | %{_datadir}/mypaint/brushlib/brushsettings.json |
b14d8194 | 109 | %attr(755,root,root) %{_datadir}/mypaint/brushlib/generate.py |
110 | %dir %{_datadir}/mypaint/gui | |
def98e1f | 111 | #%attr(755,root,root) %{_datadir}/mypaint/gui/colorsamplerwindow.py |
4a2f463b CM |
112 | %{_datadir}/mypaint/gui/*.xml |
113 | %{_datadir}/mypaint/gui/*.py | |
114 | %dir %{_datadir}/mypaint/gui/colors | |
115 | %{_datadir}/mypaint/gui/colors/*.py | |
116 | %dir %{_datadir}/mypaint/palettes | |
117 | %{_datadir}/mypaint/palettes/*.gpl | |
b14d8194 | 118 | %{_datadir}/mypaint/lib |
119 | %{_datadir}/mypaint/pixmaps |