tgif-vl.spec 10 KB

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