Репозиторий Sisyphus
Последнее обновление: 30 марта 2020 | Пакетов: 17553 | Посещений: 17789351
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: alt2
%define realname openMotif
%define srcname %realname-%version
%def_with demos

Summary: The Open Motif
License: Open Group Public License
Group: System/Libraries
Url: http://www.motifzone.org/

# http://ftp.motifzone.net/2.2/src/%srcname.tar.bz2

Source: ftp://ftp.ics.com/pub/Products/Motif/om%version/src/%srcname.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
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
#
Patch31: openMotif-2.2.3-motifzone_1193.patch
Patch32: openMotif-2.2.3-motifzone_1202.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

%def_disable static

Provides: motif = %version-%release

BuildPreReq: XFree86-bitmaps XFree86-devel flex

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

%package devel-static
Summary: Static libraries for Motif-2.1 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: Motif-2.1 demo applications
Group: Development/C
Requires: %name = %version-%release

%package doc
Summary: Motif-2.1 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 %srcname
# 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
#
%patch31 -p1
%patch32 -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="$RPM_OPT_FLAGS" \
./configure %_configure_target \
--prefix=%_x11dir \
--libdir=%_x11libdir \
--enable-shared \
%{subst_enable static}

make clean
# SMP-incompatible build.
make

%install
mkdir -p $RPM_BUILD_ROOT%_x11dir/{lib/X11/app-defaults,include/X11,doc}
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/X11/{app-defaults,mwm,xinit.d}
%__ln_s ../../..%_x11bindir/xmbind $RPM_BUILD_ROOT%_sysconfdir/X11/xinit.d/

%make_install install \
DESTDIR=$RPM_BUILD_ROOT \
VARDIR="$RPM_BUILD_ROOT%_x11x11dir"

mv $RPM_BUILD_ROOT%_x11x11dir/system.mwmrc $RPM_BUILD_ROOT%_sysconfdir/X11/mwm
for f in $RPM_BUILD_ROOT%_x11x11dir/app-defaults/*; do
[ -f "$f" ] || continue
%__mv "$f" $RPM_BUILD_ROOT%_sysconfdir/X11/app-defaults/
done
#mv $RPM_BUILD_ROOT%_x11includedir/uil $RPM_BUILD_ROOT%_x11includedir/X11

%if_with demos
/bin/ls -1 $RPM_BUILD_ROOT%_x11bindir/* |
%__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
%_x11libdir/*.so.*
#%config %_sysconfdir/X11/app-defaults/Xmd*
#%config %_sysconfdir/X11/app-defaults/Fileview
#%_x11x11dir/uid
%doc BUGREPORT COPYRIGHT.MOTIF README RELEASE RELNOTES TODO

%files devel
%_x11libdir/*.so
%_x11includedir/Mrm
%_x11includedir/Xm
%_x11includedir/uil
%_x11includedir/X11/bitmaps/*
%_x11mandir/man3/*

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

%files clients
%_sysconfdir/X11/xinit.d/xmbind
%_x11x11dir/bindings
%_x11bindir/xmbind
%_x11bindir/uil
%_x11mandir/man1/uil.1*
%_x11mandir/man1/xmbind.1*
%_x11mandir/man5/*

%files mwm
%dir %_sysconfdir/X11/mwm
%config %_sysconfdir/X11/mwm/*
#%config %_sysconfdir/X11/app-defaults/Mwm
%_x11bindir/mwm
%_x11mandir/man1/mwm.1*
%_x11mandir/man4/*

%if_with demos
%files demos -f demos.list
%_x11datadir/Xm
%_x11mandir/manm/*
%endif

%changelog

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

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