# # spec file for package openmotif21-libs (Version 2.1.30MLI4) # # Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://www.suse.de/feedback/ # # neededforbuild xf86 yacc BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libselinux libstdc++ libxcrypt m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel XFree86 XFree86-devel XFree86-libs autoconf automake binutils expat fontconfig fontconfig-devel gcc gdbm gettext libtool perl rpm Name: openmotif21-libs Version: 2.1.30MLI4 Release: 115 License: Other License(s), see package Group: System/Libraries AutoReqProv: on Conflicts: lestif2 Summary: Open Motif 2.1.30 Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.opengroup.org/openmotif/ Source: openmotif-2.1.30-4_MLI.src.tar.bz2 Patch: motif.dif Patch1: motif_jdk_grab.patch Patch2: motif_bison.patch %description This is the old 2.1.30 Open Motif runtime environment. It includes the Motif version 2.1.30 shared libraries. This Motif version is needed by Oracle (e.g. Forms&Reports), the newer 2.2.x Motif does not work and is not certified with Oracle. Open Motif is a freely available version of the well known user interface toolkit Motif for Open Source operating systems. This package was built with the sources from Metro Link. %package devel Summary: Header files for openmotif21-libs Group: System/Libraries %description devel Some header files, static libs, and man pages for openmotif21-libs. Conflicts with openmotif-devel-2.2.2, so openmotif-devel-2.2.2 must be uninstalled while compiling 2.1.30 apps. Also conflicts with XFree86-devel-4.3.99.902 %prep %setup -q -n motif %patch %patch1 %patch2 %build mkdir -p imports/x11 ln -sf /usr/X11R6/bin /usr/X11R6/include /usr/X11R6/lib imports/x11 make World %install if [ -n "$RPM_BUILD_ROOT" ] ; then [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT fi make install install.man DESTDIR="$RPM_BUILD_ROOT" # remove everything not packaged rm -rf $RPM_BUILD_ROOT/usr/X11R6/bin/[a-tv-z]* #rm -rf $RPM_BUILD_ROOT/usr/X11R6/include #rm -rf $RPM_BUILD_ROOT/usr/X11R6/lib/X11 for f in $RPM_BUILD_ROOT/usr/X11R6/lib/X11/config/*; do case "$f" in *openmotif) continue;; esac rm -f "$f" done #rm -rf $RPM_BUILD_ROOT/usr/X11R6/lib/lib*.a #rm -rf $RPM_BUILD_ROOT/usr/X11R6/man %post devel # Replace Motif.tmpl and Motif.rules with our versions MOTIFTMPL="/usr/X11R6/lib/X11/config/Motif.tmpl" [ ! -f $MOTIFTMPL ] || mv -f $MOTIFTMPL $MOTIFTMPL.orig ln -sf Motif.tmpl.openmotif $MOTIFTMPL MOTIFRULES="/usr/X11R6/lib/X11/config/Motif.rules" [ ! -f $MOTIFRULES ] || mv -f $MOTIFRULES $MOTIFRULES.orig ln -sf Motif.rules.openmotif $MOTIFRULES # Set TopLevelProject to Motif in site.def. umask 022 SITEDEF="/usr/X11R6/lib/X11/config/site.def" if ! grep "^\#define TopLevelProject Motif" $SITEDEF > /dev/null 2>&1; then [ -f $SITEDEF.orig ] || mv -f $SITEDEF $SITEDEF.orig sed -e '/^\#ifdef BeforeVendorCF$/a\ \ \#define TopLevelProject Motif\ ' < $SITEDEF.orig > $SITEDEF fi %postun devel if [ "$1" = 0 ]; then # Restore original versions of Motif.tmpl, Motif.rules, and site.def MOTIFTMPL="/usr/X11R6/lib/X11/config/Motif.tmpl" rm -f $MOTIFTMPL [ ! -f $MOTIFTMPL.orig ] || mv -f $MOTIFTMPL.orig $MOTIFTMPL MOTIFRULES="/usr/X11R6/lib/X11/config/Motif.rules" rm -f $MOTIFRULES [ ! -f $MOTIFRULES.orig ] || mv -f $MOTIFRULES.orig $MOTIFRULES SITEDEF="/usr/X11R6/lib/X11/config/site.def" [ ! -f $SITEDEF.orig ] || mv -f $SITEDEF.orig $SITEDEF fi %clean #if [ -n "$RPM_BUILD_ROOT" ] ; then # [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT #fi %files %defattr(-,root,root) /usr/X11R6/lib/*.so.* %files devel %defattr(-,root,root) /usr/X11R6/bin/* /usr/X11R6/include/* /usr/X11R6/lib/*.a /usr/X11R6/lib/*.so /usr/X11R6/lib/X11/* /usr/X11R6/man/*/* %changelog -n openmotif21-libs * Fri Sep 03 2004 - Volker Kuhlmann - Recompiling SuSE 9.1's openmotif21-libs-...src.rpm to get a -devel rpm. Spec file changes based on spec file from openmotif-2.1.30MLI4-288.src.rpm from SuSE 8.0. * Thu Jan 08 2004 - ro@suse.de - fix build with current bison * Fri Nov 28 2003 - ro@suse.de - clean unpackaged files from build root * Mon Nov 03 2003 - mha@suse.com - New package: Libraries for old OpenMotif 2.1.30, required for running Oracle components that use Motif. The new 2.2.x OpenMotif does not work and is not certified for running Oracle.