]>
Commit | Line | Data |
---|---|---|
b14d8194 | 1 | Summary: MyPaint is a fast and easy open-source graphics application for digital painters |
2 | Summary(pl.UTF-8): Szybka i łatwa w obsłudze aplikacja dla komputerowych malarzy. | |
3 | Name: mypaint | |
4a2f463b | 4 | Version: 1.1.0 |
a9518cec | 5 | Release: 3 |
b14d8194 | 6 | License: GPL |
7 | Group: X11/Applications/Graphics | |
8 | Source0: http://download.gna.org/mypaint/%{name}-%{version}.tar.bz2 | |
c29e50d4 | 9 | # Source0-md5: 7846a8406259d0fc81c9a2157a2348bf |
b14d8194 | 10 | URL: http://mypaint.intilinux.com/ |
b14d8194 | 11 | BuildRequires: gettext-devel |
def98e1f | 12 | BuildRequires: gtk+2-devel |
4a2f463b CM |
13 | BuildRequires: json-c-devel |
14 | BuildRequires: lcms2-devel | |
b14d8194 | 15 | BuildRequires: libpng-devel |
def98e1f | 16 | BuildRequires: pkgconfig |
b14d8194 | 17 | BuildRequires: python-numpy-numarray-devel |
def98e1f | 18 | BuildRequires: python-pygobject-devel |
b14d8194 | 19 | BuildRequires: rpm-pythonprov |
64dffc6a | 20 | BuildRequires: rpmbuild(find_lang) >= 1.32 |
b14d8194 | 21 | BuildRequires: scons |
dbabdb9b | 22 | BuildRequires: sed >= 4.0 |
b14d8194 | 23 | BuildRequires: swig-python |
c29e50d4 ER |
24 | Requires: desktop-file-utils |
25 | Requires: gtk-update-icon-cache | |
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 | ||
dbabdb9b ER |
46 | %{__sed} -i -e " |
47 | # set our cflags | |
48 | s/'-O3'/'%{rpmcflags}'/ | |
49 | ||
50 | # lib64 fix | |
51 | s,prefix/lib/mypaint,prefix/%{_lib}/mypaint, | |
52 | " SConscript SConstruct | |
53 | ||
54 | %{__sed} -i -e " | |
55 | /@LIBDIR@/ s/'lib'/'%{_lib}'/ | |
56 | s,prefix/lib,prefix/%{_lib}, | |
57 | " brushlib/SConscript | |
58 | ||
b14d8194 | 59 | %build |
dbabdb9b ER |
60 | %scons \ |
61 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
b14d8194 | 62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
c29e50d4 ER |
65 | %scons install \ |
66 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
b14d8194 | 67 | |
dbabdb9b ER |
68 | # scons as always sucks and doesn't set +x bit |
69 | chmod +x $RPM_BUILD_ROOT%{_libdir}/mypaint/_mypaintlib.so | |
70 | ||
95a78a3a ER |
71 | # not packaged |
72 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/libmypaint | |
73 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmypaint.a | |
74 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/libmypaint.pc | |
75 | ||
b14d8194 | 76 | # unsupported |
4a2f463b | 77 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nn_NO |
b14d8194 | 78 | |
79 | %find_lang %{name} | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post | |
c29e50d4 | 85 | %update_desktop_database |
b14d8194 | 86 | %update_icon_cache hicolor |
87 | ||
88 | %postun | |
c29e50d4 | 89 | %update_desktop_database |
b14d8194 | 90 | %update_icon_cache hicolor |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %doc README changelog doc/* | |
95 | %attr(755,root,root) %{_bindir}/mypaint | |
96 | %dir %{_libdir}/mypaint | |
97 | %attr(755,root,root) %{_libdir}/mypaint/*_mypaintlib.so | |
98 | %{_desktopdir}/mypaint.desktop | |
c29e50d4 ER |
99 | %{_iconsdir}/hicolor/*/apps/mypaint.* |
100 | %{_iconsdir}/hicolor/*/actions/*.* | |
b14d8194 | 101 | %dir %{_datadir}/mypaint |
102 | %{_datadir}/mypaint/backgrounds | |
103 | %dir %{_datadir}/mypaint/brushes | |
4a2f463b | 104 | %{_datadir}/mypaint/brushes/FX_blender_prev.png |
b14d8194 | 105 | %{_datadir}/mypaint/brushes/classic |
106 | %{_datadir}/mypaint/brushes/deevad | |
107 | %{_datadir}/mypaint/brushes/experimental | |
108 | %{_datadir}/mypaint/brushes/ramon | |
109 | %{_datadir}/mypaint/brushes/tanda | |
b14d8194 | 110 | %attr(755,root,root) %{_datadir}/mypaint/brushes/label-brush-mypaint.sh |
111 | %{_datadir}/mypaint/brushes/order.conf | |
112 | %{_datadir}/mypaint/brushes/prev-template.xcf.gz | |
113 | %dir %{_datadir}/mypaint/brushlib | |
114 | %{_datadir}/mypaint/brushlib/__init__.py | |
115 | %{_datadir}/mypaint/brushlib/brushsettings.py | |
4a2f463b | 116 | %{_datadir}/mypaint/brushlib/brushsettings.json |
b14d8194 | 117 | %attr(755,root,root) %{_datadir}/mypaint/brushlib/generate.py |
118 | %dir %{_datadir}/mypaint/gui | |
4a2f463b CM |
119 | %{_datadir}/mypaint/gui/*.xml |
120 | %{_datadir}/mypaint/gui/*.py | |
121 | %dir %{_datadir}/mypaint/gui/colors | |
122 | %{_datadir}/mypaint/gui/colors/*.py | |
123 | %dir %{_datadir}/mypaint/palettes | |
124 | %{_datadir}/mypaint/palettes/*.gpl | |
b14d8194 | 125 | %{_datadir}/mypaint/lib |
126 | %{_datadir}/mypaint/pixmaps |