1 | Summary: Painting program for creating icons and pixel-based artwork |
---|
2 | Summary(ja): アイコンやピクセルベースの描画向けのペイントプログラム |
---|
3 | Name: mtpaint |
---|
4 | Version: 3.40 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPLv3+ |
---|
7 | Group: Applications/Graphics |
---|
8 | URL: http://mtpaint.sourceforge.net/ |
---|
9 | |
---|
10 | Source0: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2 |
---|
11 | Patch0: %{name}-3.40-xdg-open.patch |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: gtk2-devel zlib-devel |
---|
15 | BuildRequires: libpng-devel giflib-devel libjpeg-devel libtiff-devel |
---|
16 | BuildRequires: openjpeg-devel lcms2-devel freetype2-devel |
---|
17 | BuildRequires: desktop-file-utils gettext |
---|
18 | # use xdg-open |
---|
19 | Requires: xdg-utils |
---|
20 | |
---|
21 | %description |
---|
22 | mtPaint is a simple painting program designed for creating icons and |
---|
23 | pixel-based artwork. It can edit indexed palette or 24 bit RGB images |
---|
24 | and offers basic painting and palette manipulation tools. Its main |
---|
25 | file format is PNG, although it can also handle JPEG, GIF, TIFF, BMP, |
---|
26 | XPM, and XBM files. |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | mtPaint はシンプルなアイコンやピクセルベースの画像の作成用に |
---|
30 | デザインされたペイントプログラムです。インデックスパレットや |
---|
31 | 24ビットカラーの画像を編集することが可能で、基本的なペイント |
---|
32 | 機能とパレットの編集ツールを備えています。ファイル形式は PNG |
---|
33 | の他にも、JPEG や GIF、TIFF、BMP、XPM、XBM等が扱えます。 |
---|
34 | |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | %patch0 -p1 -b .xdg |
---|
39 | |
---|
40 | # We have moved docs |
---|
41 | %{__sed} -i 's,"/usr/doc/mtpaint/index.html","%{_docdir}/%{name}-handbook-%{version}/index.html",' src/spawn.c |
---|
42 | |
---|
43 | %build |
---|
44 | export CFLAGS="%{optflags} `pkg-config --cflags libopenjpeg`" |
---|
45 | |
---|
46 | # This is not a "normal" configure |
---|
47 | ./configure \ |
---|
48 | --prefix=%{_prefix} \ |
---|
49 | cflags asneeded intl man gtk2 tiff jpeg GIF |
---|
50 | %{__make} %{?_smp_mflags} |
---|
51 | |
---|
52 | %install |
---|
53 | %{__rm} -rf %{buildroot} |
---|
54 | %{__make} install \ |
---|
55 | DESTDIR=%{buildroot} \ |
---|
56 | MT_PREFIX=%{_prefix} \ |
---|
57 | MT_MAN_DEST=%{_mandir} \ |
---|
58 | MT_LANG_DEST=%{_datadir}/locale \ |
---|
59 | BIN_INSTALL=%{_bindir} |
---|
60 | |
---|
61 | # install .desktop |
---|
62 | cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF |
---|
63 | [Desktop Entry] |
---|
64 | Version=1.0 |
---|
65 | Encoding=UTF-8 |
---|
66 | Type=Application |
---|
67 | Name=%{name} |
---|
68 | GenericName=Image Editor |
---|
69 | GenrricName[ja]=イメージエディタ |
---|
70 | Comment=Painting program to create pixel art and manipulate digital photos |
---|
71 | Comment[ja]=ピクセルアートやデジタル写真の加工を行います |
---|
72 | TryExec=%{name} |
---|
73 | Exec=%{_bindir}/%{name} %%F |
---|
74 | Icon=mtpaint |
---|
75 | Terminal=false |
---|
76 | Categories=Graphics;2DGraphics;RasterGraphics;GTK; |
---|
77 | MimeType=image/bmp;image/x-bmp;image/gif;image/jpeg;\ |
---|
78 | image/jpg;image/pjpeg;image/png;image/x-png;image/tiff;\ |
---|
79 | image/x-tga;image/xbm;image/x-xbm;image/x-xbitmap;\ |
---|
80 | image/xpm;image/x-xpm;image/x-xpixmap; |
---|
81 | EOF |
---|
82 | |
---|
83 | %find_lang %{name} |
---|
84 | |
---|
85 | %clean |
---|
86 | %{__rm} -rf %{buildroot} |
---|
87 | |
---|
88 | %post |
---|
89 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
90 | |
---|
91 | |
---|
92 | %posttrans |
---|
93 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
94 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
95 | %{_bindir}/update-desktop-database &> /dev/null |
---|
96 | fi |
---|
97 | |
---|
98 | %postun |
---|
99 | if [ $1 -eq 0 ] ; then |
---|
100 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
101 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
102 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
103 | %{_bindir}/update-desktop-database &> /dev/null |
---|
104 | fi |
---|
105 | fi |
---|
106 | |
---|
107 | |
---|
108 | %files -f %{name}.lang |
---|
109 | %defattr(-, root, root, -) |
---|
110 | %doc COPYING NEWS README |
---|
111 | %{_bindir}/%{name} |
---|
112 | %{_datadir}/applications/*.desktop |
---|
113 | %{_datadir}/pixmaps/%{name}.png |
---|
114 | %{_mandir}/man1/%{name}* |
---|
115 | |
---|
116 | %changelog |
---|
117 | * Mon Feb 9 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.40-1 |
---|
118 | - updated to 3.40 |
---|
119 | - updated Patch0 |
---|
120 | - rebuilt with openjpeg 1.5, libtiff 4.0.3, libpng 1.6.12 and lcms2 |
---|
121 | |
---|
122 | * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.31-2 |
---|
123 | - rebuilt with openjpeg-1.4 |
---|
124 | |
---|
125 | * Thu Mar 11 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 3.31-1 |
---|
126 | - initial build for Vine Linux based on fedora development |
---|
127 | |
---|
128 | * Wed Aug 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 3.31-1 |
---|
129 | - Update to 3.31 |
---|
130 | - Make handbook package noarch |
---|
131 | - New gtk-update-icon-cache scriptlets |
---|
132 | |
---|
133 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-3 |
---|
134 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
135 | |
---|
136 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21-2 |
---|
137 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
138 | |
---|
139 | * Fri Aug 15 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.21-1 |
---|
140 | - 3.21 |
---|
141 | - add %%defattr on handbook |
---|
142 | |
---|
143 | * Sat Feb 9 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-3 |
---|
144 | - Rebuild |
---|
145 | |
---|
146 | * Wed Jan 23 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.20-2 |
---|
147 | - Unzip by %%setup |
---|
148 | - Simplify %%post/postun |
---|
149 | - Added COPYING to handbook |
---|
150 | |
---|
151 | * Sat Dec 29 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-1 |
---|
152 | - 3.20 |
---|
153 | - include patch now upstream |
---|
154 | - handbook patch now upstream |
---|
155 | |
---|
156 | * Wed Dec 19 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.20-0.1.rc2 |
---|
157 | - 3.20RC2 |
---|
158 | - disable openjpeg support |
---|
159 | - icon and desktop file now upstream |
---|
160 | |
---|
161 | * Sun Dec 16 2007 Terje Rosten <terje.rosten@ntnu.no> - 3.19-1 |
---|
162 | - upgrade to 3.19 |
---|
163 | - misc fixes to be rpmlint clean |
---|
164 | - fix debuginfo package |
---|
165 | - handle translations |
---|
166 | - fix license |
---|
167 | - compile with correct flags |
---|
168 | - add patch to compile |
---|
169 | - add handbook subpackage (and fix app to find docs) |
---|
170 | - add xdg-open patch |
---|
171 | - dont' use %%makeinstall |
---|
172 | - add icon and mimetypes to desktop file |
---|
173 | |
---|
174 | * Mon Apr 16 2007 Dries Verachtert <dries@ulyssis.org> - 3.11-1 - 5280/dries |
---|
175 | - Updated to release 3.11. |
---|
176 | |
---|
177 | * Sun Nov 12 2006 Dries Verachtert <dries@ulyssis.org> - 3.02-1 |
---|
178 | - Updated to release 3.02. |
---|
179 | |
---|
180 | * Mon Aug 07 2006 Dries Verachtert <dries@ulyssis.org> - 3.01-1 |
---|
181 | - Updated to release 3.01. |
---|
182 | |
---|
183 | * Wed May 31 2006 Dries Verachtert <dries@ulyssis.org> - 2.31-1 |
---|
184 | - Updated to release 2.31. |
---|
185 | |
---|
186 | * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1.2 |
---|
187 | - Rebuild for Fedora Core 5. |
---|
188 | |
---|
189 | * Wed Mar 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.30-1 |
---|
190 | - Updated to release 2.30. |
---|
191 | |
---|
192 | * Sun Jan 01 2006 Dries Verachtert <dries@ulyssis.org> - 2.20-1 |
---|
193 | - Updated to release 2.20. |
---|
194 | |
---|
195 | * Mon Nov 21 2005 Dries Verachtert <dries@ulyssis.org> - 2.10-1 |
---|
196 | - Updated to release 2.10. |
---|
197 | |
---|
198 | * Sat Sep 24 2005 Dries Verachtert <dries@ulyssis.org> - 2.03-1 |
---|
199 | - Updated to release 2.03. |
---|
200 | |
---|
201 | * Tue Sep 20 2005 Dries Verachtert <dries@ulyssis.org> - 2.02-1 |
---|
202 | - Initial package. |
---|
203 | |
---|