Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
openmotif
openmotif.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openmotif.spec of Package openmotif
# # spec file for package openmotif (Version 2.3.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: openmotif %{expand:%%global _prefix %(pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_prefix" == "/usr/X11R6" %define _mandir %_prefix/man %define _datadir %_prefix/lib %endif BuildRequires: bison flex freetype2-devel libjpeg-devel libpng-devel lzma pkgconfig update-desktop-files xorg-x11-devel Version: 2.3.2 Release: 2 License: MOTIF LICENSE (http://www.opengroup.org/openmotif/license) Group: System/Libraries AutoReqProv: on PreReq: sed grep Conflicts: lestif2 Summary: Open Motif BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.motifzone.net/ Source: openmotif-%{version}.tar.lzma Source1: mwm.desktop Source2: baselibs.conf Patch: openmotif-%{version}.diff Patch1: warn.patch Patch3: strcmp.diff Patch4: openmotif-xpm.diff Patch5: sentinel.diff Patch6: openmotif-uil.diff Patch7: openmotif-unaligned.diff Patch8: mwm.diff Patch9: openmotif-editres.diff Patch10: openmotif-libpng14.diff %description This is the Open Motif runtime environment. It includes the Motif shared libraries. Open Motif is a freely available version of the well known Motif user interface toolkit for Open Source operating systems. This package was built with the Metro Link sources. %package libs License: MOTIF LICENSE (http://www.opengroup.org/openmotif/license) Summary: Open Motif Runtime Libraries Group: System/Libraries AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: openmotif-libs-64bit %endif # Provides: openmotif:/usr/X11R6/%_lib/libXm.so.3 %description libs This is the Open Motif runtime environment. It includes the Motif shared libraries. 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 License: http://www.opengroup.org/openmotif/license/ Summary: Include Files and Libraries mandatory for Development. Group: Development/Libraries/X11 AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: openmotif-devel-64bit %endif # Requires: openmotif-libs = %{version} xorg-x11-devel zlib-devel libjpeg-devel libpng-devel Conflicts: lesstifd lestif2d lesstif-devel PreReq: coreutils %description devel This is the Open Motif development environment. It includes the Motif header files and static libraries, plus the Motif UIL (User Interface Language) compiler and the manual pages for the Motif widgets and library functions. %prep %setup -q %patch %patch1 %patch3 %patch4 %patch5 %patch6 %patch7 %patch8 %patch9 -p1 %patch10 -p1 %build autoreconf --force --install %ifarch %arm # miscompilation? RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O1" %endif export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" YACC=yacc %configure --disable-static --with-pic rm -f tools/wml/Uil.[ch] tools/wml/wmlparse.[ch] # Not parallel safe make rcdir=/etc/X11 %install make install DESTDIR="$RPM_BUILD_ROOT" rcdir=/etc/X11 mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/config cp config/cf/Motif.rules $RPM_BUILD_ROOT%{_datadir}/X11/config/Motif.rules.openmotif cp config/cf/Motif.tmpl $RPM_BUILD_ROOT%{_datadir}/X11/config/Motif.tmpl.openmotif # install kdm/gdm entry install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/ install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/xsessions/ %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/xsessions/mwm.desktop %{__rm} -f %{buildroot}%{_libdir}/*.la %triggerin devel -- xdevel # Replace Motif.tmpl and Motif.rules with our versions MOTIFTMPL="%{_datadir}/X11/config/Motif.tmpl" [ ! -f $MOTIFTMPL ] || mv -f $MOTIFTMPL $MOTIFTMPL.orig ln -sf $MOTIFTMPL.openmotif $MOTIFTMPL MOTIFRULES="%{_datadir}/X11/config/Motif.rules" [ ! -f $MOTIFRULES ] || mv -f $MOTIFRULES $MOTIFRULES.orig ln -sf $MOTIFRULES.openmotif $MOTIFRULES # Set TopLevelProject to Motif in site.def. SITEDEF="%{_datadir}/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 chmod a+r $SITEDEF fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %postun devel if [ "$1" = 0 ]; then # Restore original versions of Motif.tmpl, Motif.rules, and site.def MOTIFTMPL="%{_datadir}/X11/config/Motif.tmpl" rm -f $MOTIFTMPL [ ! -f $MOTIFTMPL.orig ] || mv -f $MOTIFTMPL.orig $MOTIFTMPL MOTIFRULES="%{_datadir}/X11/config/Motif.rules" rm -f $MOTIFRULES [ ! -f $MOTIFRULES.orig ] || mv -f $MOTIFRULES.orig $MOTIFRULES SITEDEF="%{_datadir}/X11/config/site.def" [ ! -f $SITEDEF.orig ] || mv -f $SITEDEF.orig $SITEDEF fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %dir %{_prefix}/include/X11/bitmaps %{_prefix}/include/X11/bitmaps/xm_* %{_datadir}/X11/bindings %{_prefix}/bin/mwm %{_prefix}/bin/xmbind %config /etc/X11/system.mwmrc %{_mandir}/man1/mwm.1.gz %{_mandir}/man1/xmbind.1.gz %{_mandir}/man4/*.gz /usr/share/xsessions/* %files libs %defattr(-, root, root) %{_libdir}/*.so.* %files devel %defattr(-, root, root) %{_prefix}/bin/uil %{_prefix}/include/Mrm %{_prefix}/include/uil %{_prefix}/include/Xm %{_libdir}/*.so %{_datadir}/X11/config/Motif.rules.openmotif %{_datadir}/X11/config/Motif.tmpl.openmotif %{_mandir}/man1/uil.1.gz %{_mandir}/man3/*.gz %{_mandir}/man5/*.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor