Sisyphus repositório
Última atualização: 23 setembro 2019 | SRPMs: 17473 | Visitas: 15148134
en ru br
ALT Linux repositórios
S:0.95.2-alt3
5.0: 0.95-alt2
4.1: 0.95-alt2

Group :: Sistema/Bibliotecas
RPM: lesstif

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: lesstif
Version: 0.95
Release: alt2

Summary: LessTif - a free replacement of OSF/Motif
Group: System/Libraries
Url: http://www.lesstif.org/
Packager: Evgeny Sinelnikov <sin at altlinux.ru>
Source: http://download.sourceforge.net/%name/%name-%version.tar.bz2
License: LGPLv2+
# in Xm-2.1/
# some files are MIT
# LTV6Editres.c XpmAttrib.c XpmCrBufFrI.c XpmCrBufFrP.c XpmCrDatFrI.c
# XpmCrDatFrP.c Xpmcreate.c XpmCrIFrBuf.c XpmCrIFrDat.c XpmCrIFrP.c
# XpmCrPFrBuf.c XpmCrPFrDat.c XpmCrPFrI.c Xpmdata.c Xpmhashtab.c XpmImage.c
# XpmInfo.c Xpmmisc.c Xpmparse.c XpmRdFToBuf.c XpmRdFToDat.c XpmRdFToI.c
# XpmRdFToP.c Xpmrgb.c Xpmscan.c Xpms_popen.c XpmWrFFrBuf.c XpmWrFFrDat.c
# XpmWrFFrI.c XpmWrFFrP.c
# Transltns.c is machine generated (no license, assuming public domain)

# MIT, short version: lib/config/mxmkmf.in


# in includes

# MIT:
# XmI/LTV5EditresP.h XmI/LTV6EditresP.h XmI/XpmI.h Xm/XpmP.h

# clients/Motif-2.1/mwm/

# MIT:
# mwm.h cursors.c decorate.c desktop.c events.c functions.c menus.c misc.c
# mwm.c pan.c props.c resize.c screens.c windows.c
# no restriction
# colormaps.c icons.c move.c pager.c
# GPLV2+
# gethostname.c mwmparse.h

# clients/Motif-2.1/uil/

# no license (LGPLv2+?)
# Expression.c

Source3: mwm.xpm
Source4: mwm32.xpm

# mwm session file

Source5: mwm.desktop
# put mwm conf file in %{_sysconfdir}, and install Dt in %_libdir
Patch0: lesstif-Makefile.in.diff
# have motif-config honor libdir
Patch1: lesstif-motif-config-use_libdir.diff
Patch2: lesstif-0.95.0-CAN-2005-0605.patch
Patch3: lesstif-0.95.0-64bitcleanups.patch
Patch4: lesstif-0.95.0-c++fix.patch
Patch5: http://ftp.debian.org/debian/pool/main/l/lesstif2/lesstif2_0.95.0-2.diff.gz
Patch6: lesstif-0.95.0-scroll.patch
Patch8: lesstif-0.95-resource-fix.patch
Patch9: lesstif-0.95-text.patch
Patch10: lesstif-0.95.0-XxxxProperty-64bit.patch
Patch11: lesstif-0.95.0-accelkeys.patch
Patch12: lesstif-0.95.0-attach-bottom-self.patch
Patch13: lesstif-0.95.0-xtungrab-warning.patch

Provides: motif, %name-compat = %version
Obsoletes: %name-compat
Conflicts: openmotif < 2.2.2

# Automatically added by buildreq on Wed Oct 01 2003

BuildRequires: xorg-x11-devel xorg-x11-libs ctags flex fontconfig-devel freetype2-devel glibc-devel-static lynx man zlib-devel

%package devel
Summary: Include files for Lesstif development
Group: Development/C
Requires: %name = %version-%release
Provides: motif-devel, %name-devel-compat = %version
Obsoletes: %name-devel-compat
Conflicts: openmotif-devel

%package devel-static
Summary: Static libraries for Lesstif development
Group: Development/C
Requires: %name-devel = %version-%release
Provides: motif-devel-static, %name-devel-compat-static = %version
Obsoletes: %name-devel-compat-static
Conflicts: openmotif-devel-static

%package mwm
Summary: Lesstif Motif window manager clone based on fvwm
License: GPL
Group: Graphical desktop/Motif
Requires: %name = %version-%release
Provides: motif-mwm
Conflicts: openmotif-mwm

%package clients
Summary: LessTif clients
License: GPL
Group: Graphical desktop/Motif
Requires: %name = %version-%release
Provides: motif-clients
Conflicts: openmotif-clients

%package doc
Summary: LessTif Manuals
Group: Development/C
Requires: %name = %version-%release
Provides: lessdox = %version
Obsoletes: lessdox

%description
Lesstif is an API compatible clone of the Motif toolkit.

Most of the Motif 1.2 API is in place.
Motif 2.1 functionality is being improved.

Many Motif applications compile and run out-of-the-box with LessTif,
and we want to hear about those that don't.

%description devel
Lesstif is an API compatible clone of the Motif toolkit.

Most of the Motif 1.2 API is in place.
Motif 2.1 functionality is being improved.

Many Motif applications compile and run out-of-the-box with LessTif,
and we want to hear about those that don't.

This package contains programs, development libraries and include files
required to develop lesstif-based applications.

%description devel-static
This package contains static libraries required to develop statically
linked lesstif-based applications.

%description mwm
Lesstif is an API compatible clone of the Motif toolkit.
This package contains mwm - a window manager that adheres largely
to the Motif mwm specification.

%description clients
Lesstif is an API compatible clone of the Motif toolkit.
This package contains uil and xmbind.

%description doc
This package contains LessTif development documentation.

%prep
%setup -q
chmod a-x COPYING* doc/www.lesstif.org/BUG-HUNTING.html
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

# and pick up some fixes from Debian

patch -p1 < debian/patches/020_xpmpipethrough.diff
patch -p1 < debian/patches/021_xim_chained_list_crash.diff
patch -p1 < debian/patches/030_manpage.diff

# those substitutions are not really usefull, since the symbols are redefined

# in the Makefile, but it is clearer like that
touch -r clients/Motif-2.1/mwm/mwm.h __mwm_stamp
sed -i -e 's:"/usr/X11/include":"%_includedir":' \
 -e 's:"/usr/lib/X11/mwm":"%_sysconfdir/mwm":' clients/Motif-2.1/mwm/mwm.h
touch -r __mwm_stamp clients/Motif-2.1/mwm/mwm.h
rm __mwm_stamp

%build
CFLAGS="$RPM_OPT_FLAGS" %configure \
--enable-shared \
--enable-static \
--enable-build-12 \
--enable-build-20 \
--enable-build-21 \
--disable-verbose \
--enable-production \
--with-editres \
--with-xdnd \
%_configure_target

%make_build

%install
%make_install install DESTDIR=$RPM_BUILD_ROOT \
appdir='%_datadir/X11/app-defaults' configdir='%_datadir/X11/config' \
INSTALL="install -p"

%__rm $RPM_BUILD_ROOT%_libdir/*.la

# correct the paths in mxmkmf

sed -i -e 's:"\${xprefix}/lib/X11/config":"%_datadir/X11/config":' \
-e 's:"\${lprefix}/lib/LessTif/config":"%_datadir/X11/config":' \
$RPM_BUILD_ROOT%_bindir/mxmkmf
# use .in timestamp, since the .in and resulting files are the same
touch -r lib/config/mxmkmf.in $RPM_BUILD_ROOT%_bindir/mxmkmf

# will be in in %%doc

%__rm $RPM_BUILD_ROOT%_sysconfdir/mwm/README $RPM_BUILD_ROOT%_sysconfdir/mwm/alt.map

# the corresponding file is not shipped

%__rm $RPM_BUILD_ROOT%_mandir/man*/ltversion*

# remove host.def, it lives in the imake package

%__rm $RPM_BUILD_ROOT%_datadir/X11/config/host.def

# use ChangeLog file timestamp to have the same timestamp on all arches

# for noarch files
touch -r ChangeLog $RPM_BUILD_ROOT%_datadir/X11/config/LessTif.tmpl \
$RPM_BUILD_ROOT%_includedir/Xm/Xm.h

# Cleanup manpages.

find $RPM_BUILD_ROOT%_mandir -type f -name '*.[1-9]' -print0 |
xargs -r0 %__grep -Zl '^\.\.\.' |
xargs -r0 %__subst 's/^\.\.\././g'

## Prepare docs.

%__mkdir_p $RPM_BUILD_ROOT%_docdir/%name-%version
%__mv $RPM_BUILD_ROOT%_x11dir/LessTif/doc $RPM_BUILD_ROOT%_docdir/%name-%version/lessdox
%__mv $RPM_BUILD_ROOT%_x11dir/LessTif/* $RPM_BUILD_ROOT%_docdir/%name-%version/
%__rm $RPM_BUILD_ROOT%_docdir/%name-%version/{COPYING*,Install} -f
%__install -p -m644 clients/Motif-2.1/mwm/README $RPM_BUILD_ROOT%_docdir/%name-%version/mwm.README

# Icons.

%__install -pD -m644 %SOURCE3 $RPM_BUILD_ROOT%_miconsdir/mwm.xpm
%__install -pD -m644 %SOURCE4 $RPM_BUILD_ROOT%_iconsdir/mwm.xpm

# Install mwm xsession file.

%__mkdir_p $RPM_BUILD_ROOT%_datadir/xsessions/
%__install -p -m644 %SOURCE5 $RPM_BUILD_ROOT%_datadir/xsessions/

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

%files
%_libdir/*.so.*
%_man1dir/lesstif.*
%_man5dir/VirtualBindings.*
%doc %dir %_docdir/%name-%version
%doc %_docdir/%name-%version/[A-Z]*

%files devel
%_bindir/motif-config
%_bindir/mxmkmf
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%_datadir/X11/config/*
%_datadir/aclocal/*

%files devel-static
%_libdir/*.a

%files mwm
%doc clients/Motif-2.1/mwm/README clients/Motif-2.1/mwm/alt.map
%dir %_sysconfdir/mwm/
%config(noreplace) %_sysconfdir/mwm/system.mwmrc
%_datadir/X11/app-defaults/Mwm
%_datadir/xsessions/mwm.desktop
%_bindir/mwm
%_mandir/man?/mwm*
%_iconsdir/*.xpm
%_iconsdir/hicolor/*/apps/*.xpm

%doc %dir %_docdir/%name-%version
%doc %_docdir/%name-%version/mwm.README

%files clients
%_bindir/uil
%_bindir/xmbind
%_mandir/man?/uil.*
%_mandir/man?/xmbind.*

%files doc
%doc %dir %_docdir/%name-%version
%doc %_docdir/%name-%version/lessdox

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009