openMotif-vl.spec 6.6 KB

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