1 | Summary: An X Window System image editing or paint program. |
---|
2 | Summary(ja): Xウィンドウシステム用の画像編集・描写プログラム. |
---|
3 | Name: xpaint |
---|
4 | Version: 2.9.9.4 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | License: MIT |
---|
7 | Group: Applications/Graphics |
---|
8 | URL: http://sf-xpaint.sourceforge.net/ |
---|
9 | Source: http://prdownloads.sourceforge.net/sf-xpaint/%{name}-%{version}.tar.bz2 |
---|
10 | Source3: %{name}.desktop |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | ## for 2.5.7 |
---|
17 | Source1: xpaint-2.5.7-Help_ja |
---|
18 | Patch0: xpaint-2.5.7-config.patch |
---|
19 | Patch1: xpaint-2.5.7-I18N-mb-1.2.patch |
---|
20 | Patch2: xpaint-2.5.7-Imakefile.patch |
---|
21 | #Patch3: xpaint-2.5.7-readPNG.patch |
---|
22 | #Patch4: xpaint-2.5.7-writePNG.patch |
---|
23 | |
---|
24 | ## for 2.7.8.1 |
---|
25 | Source2: xpaint-2.7.8.1-XPaint_ja.ad.in |
---|
26 | Patch10: xpaint-2.7.8.1-config.patch |
---|
27 | Patch11: xpaint-2.7.8.1-Imakefile.patch |
---|
28 | Patch12: xpaint-2.7.8.1-xpaint.patch |
---|
29 | Patch13: xpaint-2.7.8.1-main.patch |
---|
30 | Patch14: xpaint-2.7.8.1-color.patch |
---|
31 | Patch15: xpaint-2.7.8.1-Paint.patch |
---|
32 | Patch16: xpaint-2.7.8.1-PaintP.patch |
---|
33 | Patch17: xpaint-2.7.8.1-fontSelect.patch |
---|
34 | Patch18: xpaint-2.7.8.1-fontOp.patch |
---|
35 | |
---|
36 | #Patch100: xpaint-2.7.8.1-xpmpath.patch |
---|
37 | |
---|
38 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
39 | |
---|
40 | Requires: libXaw3dXft |
---|
41 | BuildRequires: xorg-x11-devel libtiff-devel zlib-devel |
---|
42 | BuildRequires: libpng-devel >= 1.2.5 |
---|
43 | BuildRequires: libjpeg-devel |
---|
44 | BuildRequires: libXaw3dXft-devel |
---|
45 | #Obsoletes: xpaint <= 2.5.7-1vl7 |
---|
46 | |
---|
47 | %description |
---|
48 | XPaint is an X Window System color image editing program which supports |
---|
49 | most standard paint program options. XPaint also supports advanced |
---|
50 | features like image processing algorithms. XPaint allows you to edit |
---|
51 | multiple images simultaneously and supports a variety of image formats, |
---|
52 | including PPM, XBM, TIFF, JPEG, etc. |
---|
53 | And this xpaint has features extended to deal with Japanese in one's |
---|
54 | own right. |
---|
55 | |
---|
56 | Install the xpaint package if you need a paint program for X. |
---|
57 | |
---|
58 | %description -l ja |
---|
59 | XPaintはXウィンドウシステム用のカラー画像編集プログラムです. 標準的な |
---|
60 | 描写操作はほとんどサポートしています。さらにXPaint は画像処理プログラ |
---|
61 | ムといったような発展的な機能も備えています。 |
---|
62 | XPaintを使って、同時に複数の画像を編集することができ、また、さまざ |
---|
63 | まな画像フォーマット(PPM, XBM, TIFF, JPEG等)がサポートされています。 |
---|
64 | %if 0 |
---|
65 | そして、このXPaintでは独自に日本語を扱うための機能が拡張されています。 |
---|
66 | %endif |
---|
67 | X用の描写プログラムが必要なら、XPaintパッケージをインストールしま |
---|
68 | しょう。 |
---|
69 | |
---|
70 | %prep |
---|
71 | %setup -q |
---|
72 | |
---|
73 | %if 0 |
---|
74 | ## for 2.5.7 |
---|
75 | %patch0 -p1 -b .config |
---|
76 | %patch1 -p1 -b .i18n |
---|
77 | #%patch2 -p1 -b .Imakefile |
---|
78 | #%patch3 -p1 -b .readPNG |
---|
79 | #%patch4 -p1 -b .writePNG |
---|
80 | %endif |
---|
81 | |
---|
82 | |
---|
83 | %if 0 |
---|
84 | ## for 2.7.8.1 |
---|
85 | cp %SOURCE2 app-defaults/XPaint.ad.in |
---|
86 | %patch10 -p1 -b .config |
---|
87 | %patch11 -p1 -b .Imakefile |
---|
88 | %patch12 -p1 -b .xpaint |
---|
89 | %patch13 -p1 -b .main |
---|
90 | %patch14 -p1 -b .color |
---|
91 | %patch15 -p1 -b .Paint |
---|
92 | %patch16 -p1 -b .PaintP |
---|
93 | %patch17 -p1 -b .fontSelect |
---|
94 | %patch18 -p1 -b .fontOp |
---|
95 | %endif |
---|
96 | |
---|
97 | #%patch100 -p1 -b .xpmpath |
---|
98 | |
---|
99 | %build |
---|
100 | %configure |
---|
101 | #xmkmf |
---|
102 | #make Makefiles |
---|
103 | make |
---|
104 | |
---|
105 | %install |
---|
106 | rm -rf $RPM_BUILD_ROOT |
---|
107 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
108 | |
---|
109 | ( cd $RPM_BUILD_ROOT |
---|
110 | mkdir -p ./etc/X11/wmconfig |
---|
111 | cat > ./etc/X11/wmconfig/xpaint <<EOF |
---|
112 | xpaint name "xpaint" |
---|
113 | xpaint description "Paint Program" |
---|
114 | xpaint group Graphics |
---|
115 | xpaint exec "xpaint &" |
---|
116 | EOF |
---|
117 | ) |
---|
118 | |
---|
119 | %define applnkdir %{_datadir}/applications |
---|
120 | %__mkdir_p %{buildroot}%{applnkdir} |
---|
121 | %__install -m644 %{SOURCE3} %{buildroot}%{applnkdir} |
---|
122 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps |
---|
123 | %{__cp} XPaintIcon.xpm ${RPM_BUILD_ROOT}%{_datadir}/pixmaps |
---|
124 | |
---|
125 | # remove unuse files |
---|
126 | rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/X11/app-defaults |
---|
127 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/librw.a |
---|
128 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/librw.la |
---|
129 | |
---|
130 | %clean |
---|
131 | rm -rf $RPM_BUILD_ROOT |
---|
132 | |
---|
133 | %files |
---|
134 | %defattr(-,root,root) |
---|
135 | %doc ChangeLog README README.PNG TODO Doc |
---|
136 | %config %{_sysconfdir}/X11/wmconfig/%{name} |
---|
137 | %{_sysconfdir}/X11/app-defaults/XPaint* |
---|
138 | %{_bindir}/* |
---|
139 | %{_datadir}/%{name} |
---|
140 | %{_mandir}/man1/*.1* |
---|
141 | %{_libdir}/librw.so* |
---|
142 | %{_datadir}/applications/%{name}.desktop |
---|
143 | %{_datadir}/pixmaps/XPaintIcon.xpm |
---|
144 | |
---|
145 | |
---|
146 | %changelog |
---|
147 | * Mon Oct 07 2013 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.9.9.4-2 |
---|
148 | - add desktop file |
---|
149 | |
---|
150 | * Sat Oct 05 2013 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.9.9.4-1 |
---|
151 | - new upstream release |
---|
152 | - delete Patch100 |
---|
153 | - fixed date of changelog |
---|
154 | |
---|
155 | * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.8.1-2 |
---|
156 | - add Patch100 to fix include path to the xpm header/library |
---|
157 | |
---|
158 | * Tue Nov 25 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.8.1-1vl5 |
---|
159 | - new upstream release |
---|
160 | - built with libXaw.so.7 (libXaw-1.0.5) |
---|
161 | - applied new versioning policy |
---|
162 | - spec in utf-8 |
---|
163 | - dropt xpaint-2.5.7-config.patch |
---|
164 | - dropt xpaint-2.5.7-I18N-mb-1.2.patch |
---|
165 | - dropt xpaint-2.5.7-Imakefile.patch |
---|
166 | - dropt xpaint-2.5.7-readPNG.patch (fixed) |
---|
167 | - dropt xpaint-2.5.7-writePNG.patch (fixed) |
---|
168 | |
---|
169 | * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl9 |
---|
170 | - changed Group to Applications/Graphics |
---|
171 | |
---|
172 | * Thu Jun 14 2007 Shu Konno <owa@bg.wakwak.com> 2.5.7-1vl8 |
---|
173 | - updated Patch0: xpaint-*-config.patch |
---|
174 | - added Patch2: xpaint-2.5.7-Imakefile.patch |
---|
175 | - added Patch3: xpaint-2.5.7-readPNG.patch |
---|
176 | - added Patch4: xpaint-2.5.7-writePNG.patch |
---|
177 | - added BuildPrereq: libjpeg-devel Xaw3d-devel |
---|
178 | - dropped Epoc:2 |
---|
179 | - rebuilt with new toolchain |
---|
180 | |
---|
181 | * Thu Feb 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.7-1vl7 |
---|
182 | - s/Copyright/License/ |
---|
183 | - s/Serial/Epoch/ |
---|
184 | - added BuildPrereq: XOrg-devel libtiff-devel zlib-devel |
---|
185 | - added URL |
---|
186 | - updated Source location |
---|
187 | |
---|
188 | * Thu Apr 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.7-1vl6 |
---|
189 | - add BuildPrereq: libpng-devel >= 1.2.5 |
---|
190 | |
---|
191 | * Thu Jul 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
192 | - 2.5.7-1vl5 |
---|
193 | - modified %files section to handle compressed man page |
---|
194 | |
---|
195 | * Tue May 09 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
196 | - rebuild for libpng 1.0.5 |
---|
197 | |
---|
198 | * Thu Jan 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
199 | - change ja resource from ja_JP.ujis/app-defaults to ja/app-defaults |
---|
200 | |
---|
201 | * Thu Dec 16 1999 Yasuyuki Furukawa<furukawa@vinelinux.org> |
---|
202 | - updated I18N patch to add XGuessFontSetName to the font-selection dialog. |
---|
203 | - corrected font settings. |
---|
204 | |
---|
205 | * Fri Oct 15 1999 Yasuyuki Furukawa<furukawa@vinelinux.org> |
---|
206 | - updated to 2.5.7 from 2.4.7 |
---|
207 | - add I18N patch and delete glibc patch |
---|
208 | |
---|
209 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
210 | - auto rebuild in the new build environment (release 8) |
---|
211 | |
---|
212 | * Thu Dec 17 1998 Michael Maher <mike@redhat.com> |
---|
213 | - built package for 6.0 |
---|
214 | |
---|
215 | * Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com> |
---|
216 | - build root. |
---|
217 | |
---|
218 | * Tue Jun 09 1998 Mike Wangsmo <wanger@redhat.com> |
---|
219 | - changed the docs from being %config files. |
---|
220 | |
---|
221 | * Fri May 01 1998 Prospector System <bugs@redhat.com> |
---|
222 | - translations modified for de, fr, tr |
---|
223 | |
---|
224 | * Thu Apr 16 1998 Erik Troan <ewt@redhat.com> |
---|
225 | - built against libpng 1.0 |
---|
226 | |
---|
227 | * Fri Oct 24 1997 Marc Ewing <marc@redhat.com> |
---|
228 | - new release |
---|
229 | - wmconfig |
---|
230 | |
---|
231 | * Wed Oct 15 1997 Erik Troan <ewt@redhat.com> |
---|
232 | - build against new libpng |
---|
233 | |
---|
234 | * Thu Jul 31 1997 Erik Troan <ewt@redhat.com> |
---|
235 | - built against glibc |
---|
236 | |
---|
237 | * Tue Mar 25 1997 Erik Troan <ewt@redhat.com> |
---|
238 | - "make install.man" places man page in wrong location |
---|