Репозиторий Sisyphus
Последнее обновление: 18 сентября 2019 | Пакетов: 17447 | Посещений: 15121650
en ru br
Репозитории ALT
S:2.3.8-alt1
5.1: 2.3.2-alt3
4.1: 2.2.3-alt3.1
4.0: 2.2.3-alt3.1
3.0: 2.2.3-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: openmotif

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: openmotif
Version: 2.2.3
Release: alt3.1

%def_with demos
%def_disable static

%define _x11sysconfdir %_sysconfdir/X11

Summary: The Open Motif
License: Open Group Public License
Group: System/Libraries
Url: http://www.motifzone.org/
Packager: Victor Forsyuk <force at altlinux.ru>

# repackaged from tar.gz

Source: http://ftp.motifzone.com/om%version/src/openMotif-%version.tar.bz2

# RH

Patch1: openMotif-2.2.3-rh-acinclude.patch
Patch2: openMotif-2.2.3-rh-char_not_supported.patch
Patch3: openMotif-2.2.3-rh-libdir.patch
Patch4: openMotif-2.2.3-rh-long64.patch
Patch5: openMotif-2.2.3-rh-multiscreen.patch
Patch6: openMotif-2.2.3-rh-pixel_length.patch
Patch7: openMotif-2.2.3-rh-popup_timeout.patch
Patch8: openMotif-2.2.3-rh-uil_lib.patch
Patch9: openmotif-2.2.3-rh-utf8.patch
Patch10: openMotif-2.2.3-rh-vizcount.patch
# CAN, CVE
Patch21: openMotif-2.2.3-CAN-2004-0687-0688.patch
Patch22: openMotif-2.2.3-CAN-2004-0914.patch
Patch23: openmotif-2.2.3-CAN-2004-0914_sec8.patch
Patch24: openmotif-CVE-2005-3964.patch
#
Patch31: openMotif-2.2.3-motifzone_1193.patch
Patch32: openMotif-2.2.3-motifzone_1202.patch
Patch33: openMotif-2.2.3-rgbtxt.patch
# ALT
Patch41: openmotif-2.2.2-alt-DefaultUserPath.patch
Patch42: openmotif-2.2.2-alt-VARDIR.patch
Patch43: openmotif-2.2.2-alt-bison.patch
Patch44: openmotif-2.2.3-alt-VERSION.patch


Provides: motif = %version-%release

# Automatically added by buildreq on Tue Feb 07 2006

BuildRequires: flex gcc-c++ imake libICE-devel libSM-devel libX11-devel libXau-devel libXaw-devel libXext-devel libXmu-devel libXp-devel libXt-devel libstdc++-devel xorg-cf-files xorg-x11-bitmaps xorg-x11-proto-devel

%package devel
Summary: Include files for OpenMotif development
Group: Development/C
Requires: %name = %version-%release
Conflicts: lesstif-devel
Provides: motif-devel = %version-%release

%package devel-static
Summary: Static libraries for OpenMotif development
Group: Development/C
Requires: %name-devel = %version-%release
Conflicts: lesstif-devel-static
Provides: motif-devel-static = %version-%release

%package mwm
Summary: Motif window manager
Group: Graphical desktop/Motif
Requires: %name = %version-%release
Conflicts: lesstif-mwm
Provides: motif-mwm = %version-%release

%package clients
Summary: Motif clients
Group: Graphical desktop/Motif
Requires: %name = %version-%release
Conflicts: lesstif-clients
Provides: motif-clients = %version-%release

%package demos
Summary: OpenMotif demo applications
Group: Development/C
Requires: %name = %version-%release

%package doc
Summary: OpenMotif documentation
Group: Development/C
Requires: %name = %version-%release

%description
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains shared libraries required to run Motif applications.

%description mwm
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains mwm - Motif window manager.

%description clients
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains uil and xmbind.

%description devel
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains the Motif header files required to develop Motif applications.

%description devel-static
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains the Motif static libraries.

%description demos
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains the Motif demo applications.

%description doc
Open Motif - the industry standard user interface toolkit for the X Window System.
This package contains the Motif documentation in ps-format.

%prep
%setup -q -n openMotif-%version
# RH
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
# CAN
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
#
%patch31 -p1
%patch32 -p1
%patch33 -p1
# ALT
%patch41 -p1
%patch42 -p1
%patch43 -p1
%patch44 -p1

%patch4 -p1

find -type f -name \*.orig -print -delete

%build
%set_autoconf_version 2.5
%set_automake_version 1.4
libtoolize --copy --force
aclocal
autoconf
automake --foreign --include-deps --add-missing --copy

%add_optflags -D_FILE_OFFSET_BITS=64
%{?!_enable_static:export lt_cv_prog_cc_static_works=no}
libtoolize --copy --force

CFLAGS="%optflags" \
%configure --enable-shared %{subst_enable static}

make clean
# SMP-incompatible build.
%make

%install
mkdir -p $RPM_BUILD_ROOT%_x11sysconfdir/{app-defaults,mwm,xinit.d}
%__ln_s ../../..%_x11bindir/xmbind $RPM_BUILD_ROOT%_x11sysconfdir/xinit.d/

%make_install install DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%_libexecdir/X11/system.mwmrc $RPM_BUILD_ROOT%_x11sysconfdir/mwm
for f in $RPM_BUILD_ROOT%_libexecdir/app-defaults/*; do
[ -f "$f" ] || continue
%__mv "$f" $RPM_BUILD_ROOT%_x11sysconfdir/app-defaults/
done

rm -Rf %buildroot%_datadir/Xm/Exm
%if_with demos
/bin/ls -1 $RPM_BUILD_ROOT%_bindir/* |
%__sed -e "s,$RPM_BUILD_ROOT,,g" |
%__grep -Ev '/(mwm|uil|xmbind)$' >demos.list
%endif

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%pre devel
%__rm -f %_x11includedir/{Mrm,Xm} >/dev/null 2>&1 ||:

%files
%_libdir/*.so.*
%doc BUGREPORT COPYRIGHT.MOTIF RELNOTES TODO

%files devel
%_libdir/*.so
%_includedir/Mrm
%_includedir/Xm
%_includedir/uil
%_includedir/X11/bitmaps/*
%_man3dir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%files clients
%_x11sysconfdir/xinit.d/xmbind
%_libexecdir/X11/bindings
%_bindir/xmbind
%_bindir/uil
%_man1dir/uil.1*
%_man1dir/xmbind.1*
%_man5dir/*

%files mwm
%dir %_x11sysconfdir/mwm
%config %_x11sysconfdir/mwm/*
%_bindir/mwm
%_man1dir/mwm.1*
%_man4dir/*

%if_with demos
%files demos -f demos.list
# conflicts with util-linux
%exclude %_bindir/column
%_datadir/Xm
%_mandir/manm/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin