]>
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 |
c29e50d4 | 5 | Release: 1 |
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 |
22 | BuildRequires: swig-python | |
c29e50d4 ER |
23 | Requires: desktop-file-utils |
24 | Requires: gtk-update-icon-cache | |
b14d8194 | 25 | Requires: hicolor-icon-theme |
b14d8194 | 26 | Requires: python-numpy-numarray |
27 | Requires: python-pycairo | |
28 | Requires: python-pygtk-gtk | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | MyPaint is a fast and easy open-source graphics application for | |
33 | digital painters. It lets you focus on the art instead of the program. | |
34 | You work on your canvas with minimum distractions, bringing up the | |
35 | interface only when you need it. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | MyPaint jest szybką i łatwą w obsłudze aplikacją dla malarzy. | |
39 | Aplikacja pozwala skupić się na własnym dziele poprzez wygodną funkcję | |
40 | ukrywania interfejsu użytkownika. | |
41 | ||
42 | %prep | |
43 | %setup -q | |
44 | ||
45 | %build | |
46 | %scons | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
c29e50d4 ER |
50 | %scons install \ |
51 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
b14d8194 | 52 | |
95a78a3a ER |
53 | # not packaged |
54 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/libmypaint | |
55 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmypaint.a | |
56 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/libmypaint.pc | |
57 | ||
b14d8194 | 58 | # unsupported |
4a2f463b | 59 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nn_NO |
b14d8194 | 60 | |
61 | %find_lang %{name} | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post | |
c29e50d4 | 67 | %update_desktop_database |
b14d8194 | 68 | %update_icon_cache hicolor |
69 | ||
70 | %postun | |
c29e50d4 | 71 | %update_desktop_database |
b14d8194 | 72 | %update_icon_cache hicolor |
73 | ||
74 | %files -f %{name}.lang | |
75 | %defattr(644,root,root,755) | |
76 | %doc README changelog doc/* | |
77 | %attr(755,root,root) %{_bindir}/mypaint | |
78 | %dir %{_libdir}/mypaint | |
79 | %attr(755,root,root) %{_libdir}/mypaint/*_mypaintlib.so | |
80 | %{_desktopdir}/mypaint.desktop | |
c29e50d4 ER |
81 | %{_iconsdir}/hicolor/*/apps/mypaint.* |
82 | %{_iconsdir}/hicolor/*/actions/*.* | |
b14d8194 | 83 | %dir %{_datadir}/mypaint |
84 | %{_datadir}/mypaint/backgrounds | |
85 | %dir %{_datadir}/mypaint/brushes | |
4a2f463b | 86 | %{_datadir}/mypaint/brushes/FX_blender_prev.png |
b14d8194 | 87 | %{_datadir}/mypaint/brushes/classic |
88 | %{_datadir}/mypaint/brushes/deevad | |
89 | %{_datadir}/mypaint/brushes/experimental | |
90 | %{_datadir}/mypaint/brushes/ramon | |
91 | %{_datadir}/mypaint/brushes/tanda | |
b14d8194 | 92 | %attr(755,root,root) %{_datadir}/mypaint/brushes/label-brush-mypaint.sh |
93 | %{_datadir}/mypaint/brushes/order.conf | |
94 | %{_datadir}/mypaint/brushes/prev-template.xcf.gz | |
95 | %dir %{_datadir}/mypaint/brushlib | |
96 | %{_datadir}/mypaint/brushlib/__init__.py | |
97 | %{_datadir}/mypaint/brushlib/brushsettings.py | |
4a2f463b | 98 | %{_datadir}/mypaint/brushlib/brushsettings.json |
b14d8194 | 99 | %attr(755,root,root) %{_datadir}/mypaint/brushlib/generate.py |
100 | %dir %{_datadir}/mypaint/gui | |
4a2f463b CM |
101 | %{_datadir}/mypaint/gui/*.xml |
102 | %{_datadir}/mypaint/gui/*.py | |
103 | %dir %{_datadir}/mypaint/gui/colors | |
104 | %{_datadir}/mypaint/gui/colors/*.py | |
105 | %dir %{_datadir}/mypaint/palettes | |
106 | %{_datadir}/mypaint/palettes/*.gpl | |
b14d8194 | 107 | %{_datadir}/mypaint/lib |
108 | %{_datadir}/mypaint/pixmaps |