tgif-vl.spec 9.4 KB

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