source: projects/specs/branches/6/t/tgif/tgif-vl.spec @ 5581

Revision 5581, 9.6 KB checked in by Takemikaduchi, 12 years ago (diff)

rebuild packages

Line 
1Summary: 2-D drawling tool
2Summary(ja): 2次元ドローイングソフト
3Name: tgif
4%define eversion 4.2.2
5Version: %{eversion}
6Release: 2%{?_dist_release}
7
8Source0: ftp://bourbon.cs.umd.edu/pub/tgif/tgif-QPL-%{eversion}.tar.gz
9Source1: Tgif.ad.ja
10Source2: tgif-4.1.45.ja.po
11Source3: tgif.desktop
12Source4: tgif.png
13
14# http://tyche.pu-toyama.ac.jp/~a-urasim/tgif/
15Patch10: tgif-textcursor-a-urasim.patch
16Patch101: tgif-QPL-4.1.45-size-debug.patch
17
18URL: http://bourbon.usc.edu/tgif/
19License: QPL
20Group: Applications/Multimedia
21Buildroot: %{_tmppath}/%{name}-%{version}-root
22BuildRequires: imake
23BuildRequires: gettext, desktop-file-utils
24BuildRequires: libXmu-devel
25BuildRequires: libidn-devel
26BuildRequires: zlib-devel
27Requires(post): desktop-file-utils
28Requires(postun): desktop-file-utils
29Requires: ghostscript
30Requires: netpbm-progs
31Requires: xorg-x11-fonts-75dpi
32Requires: xorg-x11-fonts-ISO8859-1-75dpi
33Requires: xorg-x11-jpfonts
34Requires: sudo
35
36Vendor: Project Vine
37Distribution: Vine Linux
38
39%description
40tgif  -  Xlib based interactive 2-D drawing facility under
41X11.  Supports hierarchical construction of  drawings  and
42easy  navigation  between  sets  of drawings.  It's also a
43hyper-graphics (or hyper-structured-graphics)  browser  on
44the World-Wide-Web.
45
46%description -l ja
47X 上で動くドローイングソフト tgif です. EPS, PostScript, X11 bitmap
48形式等で出力できます. kinput2 や xwnmo を使えば日本語を入力することが
49できます.
50
51%prep
52rm -rf ${RPM_BUILD_ROOT}
53%setup -q -n %{name}-QPL-%{eversion}
54%patch10 -p0 -b textcursor
55#%patch101 -p1 -b .size
56
57rm -f po/ja/ja.po
58cp %{SOURCE2} po/ja/ja.po
59
60cp -f %{SOURCE1} po/ja/Tgif.ad
61
62%build
63rm -rf Tgif.tmpl
64cp Tgif.tmpl-linux Tgif.tmpl
65xmkmf
66make MOREDEFINES="-DOVERTHESPOT -DUSE_XT_INITIALIZE -D_ENABLE_NLS \
67        -DPRINT_CMD=\\\"lpr\\\" -DA4PAPER" TGIFDIR=%{_datadir}/tgif \
68        LOCAL_LIBRARIES="-lXmu -lXt -lX11" tgif
69
70(cd po
71xmkmf
72make Makefile LIBDIR="%{_datadir}/X11"
73make Makefiles LIBDIR="%{_datadir}/X11"
74make depend
75make all
76)
77
78%install
79rm -rf $RPM_BUILD_ROOT
80make DESTDIR=$RPM_BUILD_ROOT \
81     BINDIR=%{_libexecdir}/ \
82     TGIFDIR=%{_datadir}/tgif/ \
83     DATADIR=%{_datadir} \
84     MANPATH=%{_mandir} \
85     install \
86     install.man
87
88%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/
89%{__install} -cpm 0755 po/ja/tgif-wrapper.sh \
90        $RPM_BUILD_ROOT%{_bindir}/%{name}
91
92rm -f $RPM_BUILD_ROOT%{_datadir}/tgif/*.obj
93install -m 644 *.obj $RPM_BUILD_ROOT%{_datadir}/tgif
94
95mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/ja/app-defaults/
96install -m 644 po/ja/Tgif.ad $RPM_BUILD_ROOT%{_datadir}/X11/ja/app-defaults/Tgif
97
98(cd po
99#install -d $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES
100#install -m644 ja/ja.mo $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES/tgif.mo
101make DESTDIR=$RPM_BUILD_ROOT install
102)
103
104# desktop file & icon
105%__mkdir_p %{buildroot}%{_datadir}/applications
106%__install -p -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
107%__mkdir_p %{buildroot}%{_datadir}/pixmaps
108%__install -p -m644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/tgif.png
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%post
114%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
115for i in vlgothic ipafont
116do
117  if [ ! -d /etc/X11/fontpath.d/TreuType-$i ]; then
118    sudo ln -sf ../../../usr/share/fonts/TrueType-$i /etc/X11/fontpath.d/
119  fi
120done
121
122%postun
123[ "$1" = "1" ] && exit
124%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
125
126%files
127%defattr(-,root,root)
128%doc Copyright HISTORY README* VMS_MAKE_TGIF.COM example.tex
129%doc po/ja/README.jp License
130%{_bindir}/tgif
131%{_libexecdir}/tgif
132%{_mandir}/man1/tgif.1x*
133%{_datadir}/tgif
134%{_datadir}/locale/*/LC_MESSAGES/tgif.mo
135%{_datadir}/X11/ja/app-defaults/Tgif
136%{_datadir}/pixmaps/*.png
137%{_datadir}/applications/*.desktop
138
139%changelog
140* Sun Feb 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.2-2
141- rebuild with Vine6 environment
142- add BuildRequires: libidn-devel, zlib-devel
143
144* Sat Mar 06 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.2-1
145- new upstream release
146  - all patches except textcursor-patch are merged in upstream
147- update ja/Tgif.ad
148
149* Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.45-1
150- new upstream release
151- install ja resources
152- fix BR:
153- add R: xorg-x11-fonts-ISO8859-1-75dpi, xorg-x11-fonts-75dpi
154- add R: xorg-x11-jpfonts
155- add tgif.sh to force ja_JP.eucJP on ja locale
156- update ja/Tgif.ad
157- add fontpath tweaks to %%post script
158
159* Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 4.1.44-1vl5
160- applied new versioning policy, spec in utf-8
161- built with xorg-x11-devel
162- updated obsolete directories /usr/X11R6/...
163- updated scripts to build tgif.mo
164
165* Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.44-0vl6
166- add Patch20 to fix problems with {scim,uim}-anthy (<BTS:512>)
167
168* Wed Dec 27 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.1.44-0vl5
169- add tgificon.png (source4)
170- update tgif.desktop (source3)
171
172* Wed Oct 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.44-0vl4
173- add Patch10 to fix text cursor problem (<BTS:250>)
174  http://tyche.pu-toyama.ac.jp/~a-urasim/tgif/
175
176* Fri Sep 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.1.44-0vl3
177- add and update desktop file (source3)
178- move desktop file to %{_datadir}/applications
179- exec update-desktop-database at %%post,%%postun
180- add Requires(post,postun): desktop-file-utils
181
182* Sat Sep 02 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.1.44-0vl2
183- add BuildRequires: XOrg-devel
184
185* Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.44-0vl1
186- switch to QPL version
187
188* Thu Jun 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.1.43-0vl1
189- source update
190
191* Thu Jun 12 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.42-0vl2
192- rebuild with new toolchains
193
194* Fri Mar 29 2002 Jun Nishii <jun@vinelinux.org> 4.1.41-0vl3
195- add Tate-gaki entry for Ricoh fonts
196
197* Sun Mar 17 2002 Shoji Matsumoto <shom@vinelinux.org> 4.1.41-0vl2
198- refine Tgif.ad for Vine 2.5
199
200* Fri Oct 19 2001 Jun Nishii <jun@vinelinux.org> 4.1.41-0vl1
201- ver.up
202
203* Thu Jul 28 2001 Shoji Matsumoto <shom@vinelinux.org>
204- 4.1.40-0vl2
205- tgif-4.1ja6 (-aliastt-{mincho,gothic}- -> -alias-{mincho,gothic}-)
206
207* Thu Dec  7 2000 Jun Nishii <jun@vinelinux.org>
208- 4.1.40-0vl1
209
210* Tue Oct  3 2000 Jun Nishii <jun@vinelinux.org>
211- 4.1.39-0vl2
212- added documents
213
214* Sun Sep 10 2000 Jun Nishii <jun@vinelinux.org>
215- 4.1.39-0vl1
216
217* Thu Aug 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
218- added overthespot_fix patch for XIM with OverTheSpot style.
219
220* Fri Aug 11 2000 Jun Nishii <jun@vinelinux.org>
221- 4.1.36-0vl1
222
223* Mon Aug  7 2000 Jun Nishii <jun@vinelinux.org>
224- 4.1.35-0vl1
225
226* Sat Jul 15 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
227- 4.1.34-0vl2
228- modified %files section to handle compressed man page
229
230* Mon May  8 2000 Jun Nishii <jun@vinelinux.org>
231- updated 4.0.33
232
233* Thu Apr 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
234- updated 4.0.29
235- modified fontcheck patch to check signgle byte font, too.
236
237* Thu Mar  9 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
238- updated 4.0.28
239
240* Mon Feb 28 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
241- updated 4.0.27
242
243* Thu Feb 24 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
244- added tgif wmconfig, desktop file
245
246* Fri Feb 18 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
247- added xim unofficial patch from fj.sources to fix a bug about XIM.
248
249* Wed Feb 16 2000 Jun Nishii <jun@vinelinux.org>
250- 4.1.26-0vl3
251- bug fix in tgif-4.1.26-fontcheck.patch
252
253* Mon Feb 14 2000 Jun Nishii <jun@vinelinux.org>
254- 4.1.26-0vl2
255- merge tgif-4.1.26-fontcheck.patch by Mr. Yasuyuki Furukawa
256  which obsoletes trigger for Dynafonts and TrueTypeFonts !
257
258* Thu Jan 20 2000 Jun Nishii <jun@vinelinux.org>
259- 4.1.26-0vl2
260- added trigger for Dynafonts and TrueTypeFonts
261
262* Thu Jan 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
263- updated to 4.1.26
264- change ja resource from ja_JP.ujis/app-defaults to ja/app-defaults
265- modified font setting
266
267* Wed Nov 17 1999 Jun Nishii <jun@flatout.org>
268- updated to 4.1.25
269
270* Thu Nov 4 1999 Jun Nishii <jun@flatout.org>
271- updated to 4.1.23
272
273* Thu Oct 28 1999 Jun Nishii <jun@flatout.org>
274- rel.4
275- update ja.po
276- more gettextize in choice.c and menu.c
277
278* Wed Oct 27 1999 Jun Nishii <jun@flatout.org>
279- rel.3
280- merge messages in strtbl.c and added japanese catalog
281
282* Tue Oct 26 1999 Jun Nishii <jun@flatout.org>
283- rel.2
284- enable nls in status buffer and added japanese catalog
285
286* Tue Oct 26 1999 Jun Nishii <jun@flatout.org>
287- updated to 4.1.22
288
289* Sun Aug 8 1999 Norihito Ohmori <ohmori@flatout.org>
290- archive format change to bzip2
291- rebuild for glibc-2.1.x
292
293* Wed Jun 30 1999 Jun Nishii <jun@flatout.org>
294- updated to 4.1.16
295
296* Tue Apr 15 1999 Jun Nishii <jun@flatout.org>
297- updated to 4.1.7
298
299* Tue Apr 8 1999 Jun Nishii <jun@flatout.org>
300- updated to 4.1.6
301- Our menufontset-nls patch and xim patch were merged in original source!
302
303* Tue Mar  9 1999 MATSUMOTO Shoji <vine@flatout.org>
304- vertical font indicator bug fix
305- modify resource and tgif.sh
306
307* Mon Mar 8 1999 Jun Nishii <jun@flatout.org>
308- updated to 4.1
309
310* Mon Mar 8 1999 Jun Nishii <jun@flatout.org>
311- bug fix in showing shortcut key in menu
312- modify document
313
314* Wed Mar  4 1999 MATSUMOTO Shoji <vine@flatout.org>
315- set Tgif.InitialFont Ryumin
316
317* Wed Mar  3 1999 MATSUMOTO Shoji <vine@flatout.org>
318- add XIM OverTheSpot patch
319- modify Tgif-ja.ad
320
321* Mon Mar 2 1999 Jun Nishii <jun@flatout.org>
322- updated to 4.0.18
323
324* Mon Mar 1 1999 Jun Nishii <jun@flatout.org>
325- make patch to support fontset and nls
326- change version name as 4.0.17_jp
327
328* Sat Feb 27 1999 Jun Nishii <jun@flatout.org>
329- modify Tgif-ja.ad (use A4,cm,color-icon,etc...)
330- correct document
331
332* Wed Feb 24 1999 Jun Nishii <jun@flatout.org>
333- updated to ver. 4.0.17
334- make wrapper to read Tgif-ja
335
336* Sat Feb 20 1999 Jun Nishii <jun@flatout.org>
337- updated to ver. 4.0.16
338
339* Tue Feb 16 1999 Jun Nishii <jun@flatout.org>
340- build ver. 4.0.14 for Vine Linux
Note: See TracBrowser for help on using the repository browser.