Xaw3d-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. %define compatlib 0
  2. Summary: A version of the MIT Athena widget set for X.
  3. Summary(ja): X 用 MIT Athena widget の 3D 風バージョン
  4. Name: Xaw3d
  5. Version: 1.5E
  6. Release: 6%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Source: ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-%{version}.tar.gz
  9. Source1: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6/Xaw3d-1.3.tar.gz
  10. Source2: Imakefile
  11. URL: ftp://ftp.visi.com/users/hawkeyd/X/
  12. # patch for compat libraries
  13. Patch0: Xaw3d-1.1-shlib.patch
  14. Patch1: Xaw3d-1.3-glibc.patch
  15. Patch2: Xaw3d-1.3-X11R6.3.patch
  16. Patch3: xaw3d.patch
  17. Patch4: Xaw3d-1.3-static.patch
  18. Patch5: Xaw3d-ia64.patch
  19. Patch6: Xaw3d-1.5-i18n.patch
  20. Patch7: Xaw3d-1.5-color.patch
  21. Patch8: Xaw3d-1.5-troughColor.patch
  22. Patch9: Xaw3d-1.3-misc.patch
  23. Patch10: Xaw3d-1.5-scrollbar2.patch
  24. # patch for current libraries
  25. Patch50: Xaw3d-1.5E-xorg-imake.patch
  26. License: MIT
  27. Prereq: fileutils
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. BuildRequires: libXmu-devel
  30. BuildRequires: libXt-devel
  31. BuildRequires: libSM-devel
  32. BuildRequires: libXext-devel
  33. BuildRequires: libX11-devel
  34. BuildRequires: libXpm-devel
  35. BuildRequires: imake
  36. BuildRequires: bison
  37. BuildRequires: flex
  38. BuildRequires: ed
  39. Vendor: Project Vine
  40. Distribution: Vine Linux
  41. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  42. %description
  43. Xaw3d is an enhanced version of the MIT Athena Widget set for
  44. the X Window System. Xaw3d adds a three-dimensional look to applications
  45. with minimal or no source code changes.
  46. You should install Xaw3d if you are using applications which incorporate
  47. the MIT Athena widget set and you'd like to incorporate a 3D look into
  48. those applications.
  49. %description -l ja
  50. Xaw3d は X ウィンドウシステム用 MIT Athena ウィジェットセットの
  51. 拡張バージョンです.Xaw3d はソースコードに殆ど,あるいは全く変更を
  52. 加えることなく,アプリケーションに 3D ルックを追加することが出来ます.
  53. MIT Athena ウィジェットセットを使ったアプリケーションを利用していて,
  54. これらで 3D ルックを使いたい場合は,Xaw3d をインストールして下さい.
  55. %package -n compat32-%{name}
  56. Summary: A version of the MIT Athena widget set for X.
  57. Summary(ja): X 用 MIT Athena widget の 3D 風バージョン
  58. Group: System Environment/Libraries
  59. Requires: %{name} = %{version}-%{release}
  60. %description -n compat32-%{name}
  61. Xaw3d is an enhanced version of the MIT Athena Widget set for
  62. the X Window System. Xaw3d adds a three-dimensional look to applications
  63. with minimal or no source code changes.
  64. You should install Xaw3d if you are using applications which incorporate
  65. the MIT Athena widget set and you'd like to incorporate a 3D look into
  66. those applications.
  67. %description -n compat32-%{name} -l ja
  68. Xaw3d は X ウィンドウシステム用 MIT Athena ウィジェットセットの
  69. 拡張バージョンです.Xaw3d はソースコードに殆ど,あるいは全く変更を
  70. 加えることなく,アプリケーションに 3D ルックを追加することが出来ます.
  71. MIT Athena ウィジェットセットを使ったアプリケーションを利用していて,
  72. これらで 3D ルックを使いたい場合は,Xaw3d をインストールして下さい.
  73. %package devel
  74. Summary: Header files and static libraries for development using Xaw3d.
  75. Group: Development/Libraries
  76. Requires: %{name} = %{version}-%{release}
  77. Requires: libXmu-devel
  78. Requires: libXt-devel
  79. Requires: libSM-devel
  80. Requires: libXext-devel
  81. Requires: libX11-devel
  82. Requires: libXpm-devel
  83. %description devel
  84. Xaw3d is an enhanced version of the MIT Athena widget set for
  85. the X Window System. Xaw3d adds a three-dimensional look to those
  86. applications with minimal or no source code changes. Xaw3d-devel includes
  87. the header files and static libraries for developing programs that take
  88. full advantage of Xaw3d's features.
  89. You should install Xaw3d-devel if you are going to develop applications
  90. using the Xaw3d widget set. You'll also need to install the Xaw3d
  91. package.
  92. %description devel -l ja
  93. Xaw3d は X ウィンドウシステム用 MIT Athena ウィジェットセットの
  94. 拡張バージョンです.Xaw3d はソースコードに殆ど,あるいは全く変更を
  95. 加えることなく,アプリケーションに 3D ルックを追加することが出来ます.
  96. Xaw3d-devel パッケージには,Xaw3d の機能を最大限に利用するプログラムの
  97. 開発に必要なヘッダファイルとスタティックライブラリが収められています.
  98. Xaw3d ウィジェットセットを使ったアプリケーション開発を行う場合は
  99. Xaw3d-devel パッケージをインストールして下さい.
  100. 同時に Xaw3d もインストールしておく必要があります.
  101. %prep
  102. %setup -q -c
  103. # Xaw3d7
  104. pushd xc/lib/Xaw3d
  105. ln -s .. X11
  106. %patch50 -p0 -b .config
  107. popd
  108. # Xaw3d6 (compat libs)
  109. %if %{compatlib}
  110. %ifnarch ia64
  111. mkdir old
  112. pushd old
  113. tar xzf %{SOURCE1}
  114. popd
  115. mv old/xc/lib/Xaw3d xc/lib/Xaw3d6
  116. rm -rf old
  117. pushd xc/lib/Xaw3d6
  118. %patch0 -p0
  119. ln -s .. X11
  120. %patch1 -p4
  121. %patch2 -p3
  122. %patch3 -p4
  123. %patch4 -p0
  124. %patch6 -p4
  125. %patch7 -p3
  126. #%patch8 -p3
  127. %patch9 -p3
  128. #%patch10 -p4
  129. popd
  130. %endif
  131. %endif
  132. %build
  133. # Xaw3d7
  134. pushd xc/lib/Xaw3d
  135. #export PATH=/usr/X11R6/bin:$PATH
  136. xmkmf
  137. make CDEBUGFLAGS="${RPM_OPT_FLAGS} -DARROW_SCROLLBAR -DUSEGRAY"
  138. popd
  139. # Xaw3d6 (compat libs)
  140. %if %{compatlib}
  141. %ifnarch ia64
  142. cp %{SOURCE2} xc/lib/Xaw3d6
  143. pushd xc/lib/Xaw3d6
  144. xmkmf
  145. make CFLAGS="${RPM_OPT_FLAGS} -DARROW_SCROLLBAR -DUSEGRAY"
  146. popd
  147. %endif
  148. %endif
  149. %install
  150. rm -rf $RPM_BUILD_ROOT
  151. # Xaw3d7
  152. pushd xc/lib/Xaw3d
  153. make install DESTDIR=$RPM_BUILD_ROOT
  154. popd
  155. # Xaw3d6
  156. %if %{compatlib}
  157. %ifnarch ia64
  158. %__mkdir_p $RPM_BUILD_ROOT/usr/%{_lib}
  159. cp -aR xc/lib/Xaw3d6/libXaw*so.* $RPM_BUILD_ROOT/usr/%{_lib}/
  160. %endif
  161. %endif
  162. %clean
  163. rm -rf $RPM_BUILD_ROOT
  164. %post -p /sbin/ldconfig
  165. %postun -p /sbin/ldconfig
  166. %post -n compat32-%{name} -p /sbin/ldconfig
  167. %postun -n compat32-%{name} -p /sbin/ldconfig
  168. %files
  169. %defattr(-,root,root)
  170. /usr/%{_lib}/*.so.*
  171. %if %{build_compat32}
  172. %files -n compat32-%{name}
  173. %defattr(-,root,root)
  174. /usr/%{_lib}/*.so.*
  175. %endif
  176. %files devel
  177. %defattr(-,root,root)
  178. #/usr/X11R6/%{_lib}/*.a
  179. /usr/%{_lib}/*.so
  180. %{_includedir}/X11/Xaw3d
  181. #ghost /usr/X11R6/include/Xaw3d
  182. %changelog
  183. * Sun Jul 12 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5E-6
  184. - update Requires of -devel
  185. * Sat Jun 7 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5E-5
  186. - rebuilt with xorg-x11-7.3
  187. - updated BuildRequires
  188. - spec in UTF-8
  189. * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5E-4vl1
  190. - update to 1.5E
  191. - sync with fedora core's 1.5E-4
  192. - import patches:
  193. - misc.patch (patch9)
  194. - scrollbar2.patch (patch10)
  195. - xorg-imake.patch (patch50)
  196. * Thu Jan 20 2005 Than Ngo <than@redhat.com> 1.5E-2
  197. - enable ARROW_SCROLLBARS, MULTIPLANE_PIXMAPS
  198. * Tue Nov 30 2004 Than Ngo <than@redhat.com> 1.5E-1
  199. - update to 1.5E, #130310
  200. - fix compiler warning #110766
  201. * Tue Nov 23 2004 Than Ngo <than@redhat.com> 1.5-24
  202. - add patch to fix build problem with xorg-x11, #140475
  203. * Wed Nov 26 2003 Than Ngo <than@redhat.com> 1.5-20
  204. - added missing Buildprereq: XFree86-devel (bug #110601, #109692, #110735)
  205. - fixed arguments in scrollbar (bug #110766)
  206. - fix description devel -l ja
  207. - update URLs
  208. - add Vendor/Distribution tag
  209. * Sat Sep 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5-17vl4
  210. - add BuildRequires: XOrg-devel, bison, flex
  211. - add Requires: XOrg-devel (Xaw3d-devel)
  212. - mkdir $RPM_BUILD_ROOT/usr/X11R6/%%{_lib} before copy libraries
  213. * Sun May 21 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.5-17vl3
  214. - added compat32-Xaw3d package for x86_64 architecture support
  215. * Mon Apr 7 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.5-17vl2
  216. - rebuild
  217. * Tue Dec 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-17vl1
  218. - add patch7 to use grayscale color.
  219. - merged with rawhide release
  220. * Thu Nov 7 2002 han Ngo <than@redhat.com> 1.5-17
  221. - fix some building problems
  222. * Thu Sep 5 2002 Preston Brown <pbrown@redhat.com> 1.5-16
  223. - -DARROW_SCROLLBAR for rms
  224. * Thu Aug 8 2002 Than Ngo <than@redhat.com> 1.5-15
  225. - Added patch file to fix i18n issue, ynakai@redhat.com
  226. * Fri Jul 13 2001 <sagami@vinelinux.org>
  227. - 1.5-9vl3: use %%{ix86} for _arch instead of i386 :-)
  228. * Wed May 23 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  229. - 1.5-9vl2
  230. - add i386 and alpha to libXaw*so.*'s link in %%install
  231. * Wed May 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  232. - 1.5-9vl1
  233. - rebuilt for Vine Linux
  234. - added Japanese summary and description
  235. - added sparc, sparc64 to libXaw*so.*'s link in %%install
  236. (this is taken from 1.5-8vl1 from VineSeed/TestPkg by Machino-san)
  237. * Wed Feb 28 2001 Than Ngo <than@redhat.com>
  238. - add requires Xaw3d = %%{version}
  239. - add prereq /sbin/ldconfig
  240. * Tue Oct 10 2000 Than Ngo <than@redhat.com>
  241. - fix link which causes faulty update (Bug #17895)
  242. * Mon Jul 24 2000 Bill Nottingham <notting@redhat.com>
  243. - ia64 tweaks
  244. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  245. - automatic rebuild
  246. * Mon Jul 10 2000 Bernhard Rosenkraenzer <bero@redhat.de>
  247. - Restore Xaw3d 1.5 - the addition of the backward compatibility library
  248. killed the current one.
  249. - get rid of the CDEBUGFLAGS="" hack, the current gcc fixes it
  250. * Mon Jul 03 2000 Than Ngo <than@redhat.de>
  251. - fix Imakefile to static Xawd3d
  252. * Sat Jun 17 2000 Than Ngo <than@redhat.de>
  253. - add backward compatibility libXaw3d.so.6 (Bug# 12261)
  254. * Mon May 15 2000 Bill Nottingham <notting@redhat.com>
  255. - fix unaligned traps on ia64
  256. * Mon May 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  257. - 1.5
  258. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  259. - auto rebuild in the new build environment (release 21)
  260. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  261. - Injected new description and group.
  262. * Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
  263. - bumped spec number for initial rh 6.0 build
  264. * Fri Nov 06 1998 Preston Brown <pbrown@redhat.com>
  265. - added security/update patch from debian (the X11R6.3 patch). Thanks guys. :)
  266. * Wed Oct 14 1998 Cristian Gafton <gafton@redhat.com>
  267. - handle the symlink with triggers instead of getting rid of it
  268. * Mon Oct 5 1998 Jeff Johnson <jbj@redhat.com>
  269. - remove backward compatible symlink.
  270. * Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
  271. - fixed the bad symlink
  272. - BuildRoot
  273. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  274. - translations modified for de, fr, tr
  275. * Tue Nov 04 1997 Erik Troan <ewt@redhat.com>
  276. - don't lave an improper return code from %pre
  277. * Mon Nov 03 1997 Cristian Gafton <gafton@redhat.com>
  278. - take care of the old location of the Xaw3d includes in case that one exist
  279. - updated Prereq: field
  280. * Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com
  281. - fixed the -devel package for the right include files path
  282. * Mon Oct 13 1997 Donnie Barnes <djb@redhat.com>
  283. - minor spec file cleanups
  284. * Wed Oct 01 1997 Erik Troan <ewt@redhat.com>
  285. - i18n widec.h patch needs to be applied on all systems
  286. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  287. - changed axp check to alpha
  288. * Mon Jun 16 1997 Erik Troan <ewt@redhat.com>
  289. - built against glibc