source: projects/specs/trunk/x/xpaint/xpaint-vl.spec @ 7870

Revision 7870, 6.5 KB checked in by yasumichi, 11 years ago (diff)

new upstream release

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