openMotif-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. Summary: The Open Motif runtime components.
  2. Name: openMotif
  3. Version: 2.3.0
  4. Release: 1%{?_dist_release}
  5. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  6. License: The Open Group Public License
  7. Group: System Environment/Libraries
  8. Source0: ftp://ftp.ics.com/openmotif/2.3/%{version}/openmotif-%{version}.tar.gz
  9. Source1: xmbind
  10. # license at http://www.opengroup.org/openmotif/license/
  11. Source2: OPEN_GROUP_PUBLIC_LICENSE.html
  12. ## not build and install demos (modified for cvs20061112)
  13. Patch0: openmotif-2.3.0-20061112-no_demos.patch
  14. ## Patch1 is for CVE-2005-3964
  15. Patch1: openMotif-2.2.3-uil_lib.patch
  16. ## Patch2 is for xorg7
  17. Patch2: openMotif-2.3.0-rgbtxt.patch
  18. ## change mwvrc dir (modified for cvs20061112)
  19. Patch3: openmotif-2.3.0-20061112-mwmrc_dir.patch
  20. ## #Patch4 is for xorg7 (modified for cvs20061112)
  21. Patch4: openmotif-2.3.0-20061112-bindings.patch
  22. Patch5: openMotif-2.3.0-no_X11R6.patch
  23. Patch6: openmotif-sentinel.diff
  24. Patch7: openmotif-unaligned.diff
  25. URL: http://www.motifzone.org/
  26. BuildPrereq: xorg-x11-devel xorg-x11-xbitmaps
  27. BuildPrereq: flex byacc automake14
  28. Obsoletes: %{name}-devel < 2.2.2-0vl5
  29. Obsoletes: %{name}-demos
  30. Conflicts: lesstif-clients lesstif-mwm
  31. %description
  32. The base package for the industry standard
  33. user interface toolkit for the X Window
  34. System as enhanced by ICS and others for
  35. better integration with GNOME and KDE desktop
  36. environments. The base package consists of
  37. the Open Motif runtime components --
  38. shared libraries and mwm (Motif Window Manager).
  39. %package clients
  40. Summary: Open Motif clients
  41. Group: User Interface/X
  42. Obsoletes: lesstif-clients
  43. %description clients
  44. Uil and xmbind.
  45. %package devel
  46. Summary: The Open Motif development libraries and tools.
  47. Group: Development/Libraries
  48. PreReq: %{name} = %{version}-%{release}
  49. Conflicts: lesstif lesstif-devel lesstif-static
  50. %description devel
  51. The development package includes all of the
  52. Open Motif header files, archive libraries,
  53. the UIL (User Interface Language) compiler,
  54. examples and ICS enhancements for greater
  55. integration with GNOME and KDE desktop
  56. environments.
  57. %prep
  58. %setup -q -n openmotif-%{version}
  59. cp -f %{SOURCE2} .
  60. %patch0 -p1
  61. %patch1 -p1
  62. %patch2 -p1
  63. %patch3 -p1
  64. %patch4 -p1
  65. %patch5 -p1
  66. %patch6 -p0
  67. %patch7 -p0
  68. %build
  69. unset LANG || :
  70. libtoolize --force --automake
  71. aclocal-1.4 -I .
  72. autoconf
  73. autoheader
  74. automake-1.4 --foreign --include-deps --add-missing
  75. %configure --enable-static
  76. perl -pi -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=\"-L\\\$libdir\"|g;' libtool
  77. export LD_LIBRARY_PATH=`pwd`/lib/Mrm/.libs:`pwd`/lib/Xm/.libs
  78. make clean
  79. LANG=C make
  80. %install
  81. rm -rf $RPM_BUILD_ROOT
  82. export LD_LIBRARY_PATH=`pwd`/lib/Mrm/.libs:`pwd`/lib/Xm/.libs
  83. make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install
  84. mkdir -p $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
  85. install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/xmbind.sh
  86. rm -f $RPM_BUILD_ROOT%{_bindir}/mwm
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/X11/system.mwmrc
  88. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mwm.1*
  89. rm -f $RPM_BUILD_ROOT%{_mandir}/man4/mwmrc.4*
  90. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm/system.mwmrc
  91. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT
  94. %post -p /sbin/ldconfig
  95. %postun -p /sbin/ldconfig
  96. %files
  97. %defattr(-, root, root)
  98. %doc BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES
  99. %doc OPEN_GROUP_PUBLIC_LICENSE.html
  100. %{_includedir}/X11/bitmaps/*
  101. %{_libdir}/lib*.so.*
  102. %files clients
  103. %defattr(-,root,root)
  104. %doc LICENSE OPEN_GROUP_PUBLIC_LICENSE.html
  105. %{_bindir}/uil
  106. %{_bindir}/xmbind
  107. %{_datadir}/X11/bindings
  108. %{_mandir}/man1/uil.*
  109. %{_mandir}/man1/xmbind.*
  110. %{_sysconfdir}/X11/xinit/xinitrc.d/xmbind.sh
  111. %files devel
  112. %defattr(-, root, root)
  113. %{_includedir}/Mrm
  114. %{_includedir}/Xm
  115. %{_includedir}/uil
  116. %{_libdir}/*.a
  117. %{_libdir}/*.so
  118. %{_mandir}/man3/*
  119. %{_mandir}/man5/*
  120. %changelog
  121. * Tue May 27 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.3.0-1
  122. - new upstream release
  123. - revised patches (from momonga)
  124. - build with xorg-x11-7.3
  125. - update BuildPrereq
  126. - change prefix to /usr
  127. - change mandir to %%{_mandir}
  128. - drop demos
  129. * Wed Aug 23 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl6
  130. - added Patch2 and 3 for security fix based on RHEL4
  131. * Wed Mar 29 2006 Thomas Woerner <twoerner@redhat.com> 2.2.3-10.RHEL4.1
  132. - fixed CVE-2005-3964: libUil buffer overflows (#174814)
  133. * Wed Aug 23 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.2.3-0vl5
  134. - fix library path on x86_64
  135. - add --libdir=%%{prefix}/%%{_lib} to %%configure
  136. - use %%{prefix}/%%{_lib} instead of %%{prefix}/lib
  137. -
  138. * Thu Mar 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.3-0vl4
  139. - rebuilt
  140. * Sat Dec 4 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.3-0vl3
  141. - rebuild for VineSeed
  142. * Fri Dec 3 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.3-0vl2
  143. - add patch0 from Fedora Core (CAN-2004-0687-0688)
  144. - add patch1 from Fedora Core (CAN-2004-0914)
  145. - add BuildPrereq: autoconf213 automake14 for patch1
  146. * Thu Jun 3 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.3-0vl1
  147. - source upgrade
  148. - add BuildPrereq: flex byacc
  149. - add %%postun -p /sbin/ldconfig
  150. - change configure option
  151. - use %%{prefix} for files section
  152. - sprit example code and demo programs to demos package
  153. - move %%{prefix}/lib/X11/bindings to main package
  154. - make symlink /usr/include/Mrm for %%{prefix}/include/Mrm
  155. - make symlink /usr/include/uil for %%{prefix}/include/uil
  156. - remove %%post devel and %%preun devel
  157. * Wed Apr 14 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.2-0vl5
  158. - rebuild with XOrg
  159. - clean up changelog to use (double-percent) everywhere
  160. - add BuildPrereq: build-essential XOrg-devel
  161. - make symlink /usr/include/Xm for %%{prefix}/include/Xm in %%install
  162. (not %%post devel section)
  163. - add Obsoletes: %%{name}-devel < 2.2.2-0vl5
  164. - add PreReq: %%{name} = %%{version} to openMotif-devel package
  165. * Sat Jan 4 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.2-0vl4
  166. - delete Obsoletes: lines
  167. - add Conflicts: lesstif-clients lesstif-mwm to openMotif package
  168. - add Conflicts: lesstif(-devel, static) to openMotif-devel package
  169. * Fri Jan 3 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.2-0vl3
  170. - rebuild without lesstif package installed
  171. * Fri Jan 3 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.2-0vl2
  172. - add %%defattr(-, root, root) in %%files section
  173. * Wed Jan 1 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.2-0vl1
  174. - build for VineSeed
  175. - cleanup spec
  176. - Obsoletes: lesstif <= 0.91.0-0vl2
  177. * Wed Jan 23 2002 ICS <info@ics.om>
  178. - Switched build system to AutoConf and updated for new openMotif 2.2
  179. - widgets.
  180. * Wed Aug 30 2000 ICS <info@ics.com> 2.1.30-3_ICS
  181. - Update for the Rev 3 release
  182. * Fri May 19 2000 ICS <info@ics.com> 2.1.bz2.3.bz20-2_ICS
  183. - Significant overhaul for SRPM distribution