File xtem.spec of Package xtem

#
# spec file for package xtem (Version 8.26)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, 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://bugs.opensuse.org/
#

# norootforbuild

Name:           xtem
BuildRequires:  tk
License:        GNU General Public License (GPL)
Group:          Productivity/Publishing/TeX/Frontends
Requires:       tk
Autoreqprov:    on
Version:        8.26
Release:        57
Summary:        A TeX menu system for the X Window System
URL:            http://www.tug.org/tex-archive/support/xtem_texmenu/xtem/
Source:         xtem_texmenu.%{version}.tar.bz2
Patch:          xtem-%{version}.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xtem is a TeX environment under X. This package is rather powerful and
offers a huge help and reference system which should help the TeX
novices.

The authors of this package ask for feedback for continuing their work!



Authors:
--------
    G. Lamprecht
    W. Lotz
    R. Weibezahn <weibezahn@iwd.uni-bremen.de>

%prep
%setup
%patch

%build
./xteminstall basic

%install
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/
cp -a  ../xtem-%{version} $RPM_BUILD_ROOT/usr/lib/
(cd $RPM_BUILD_ROOT/usr/lib && ln -sf xtem-%{version} xtem)
rm -rf $RPM_BUILD_ROOT/usr/lib/xtem/{COPYING,Changelog,Installation.Reply,\
Installation.tex,README,README.Tcl-version,README.Upgrading,README.hyphen_show,\
SyntaxHelp_htx.tex,locals_english,locals_german}
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xtem/locals_english
cp -a ../xtem_locals_english/* $RPM_BUILD_ROOT/usr/lib/xtem/locals_english
chmod 644 $RPM_BUILD_ROOT/usr/lib/xtem/locals_english/*
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xtem/locals_german
cp -a ../xtem_locals_german/* $RPM_BUILD_ROOT/usr/lib/xtem/locals_german
chmod 644 $RPM_BUILD_ROOT/usr/lib/xtem/locals_german/*
install -d -m 755 $RPM_BUILD_ROOT/usr/share/man/man1
mv $RPM_BUILD_ROOT/usr/lib/xtem/*.1 $RPM_BUILD_ROOT/usr/share/man/man1
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
cd $RPM_BUILD_ROOT/usr/bin 
ln -sf ../lib/xtem/xtem .
ln -sf ../lib/xtem/changecode .
ln -sf ../lib/xtem/hyphen_show .
cd $RPM_BUILD_ROOT/usr/lib/xtem-%{version}
mv xtem xtem.o
sed s:$RPM_BUILD_DIR:/usr/lib: xtem.o > xtem
rm xtem.o
chmod a+x xtem
cd help_english/latex
mv Make_alphlist.tcl Make_alphlist.tcl.o
sed s:/usr/local/bin/wishx:/usr/bin/wish: Make_alphlist.tcl.o > Make_alphlist.tcl
rm Make_alphlist.tcl.o
cd ../../help_german/latex
mv Make_alphlist.tcl Make_alphlist.tcl.o
sed s:/usr/local/bin/wishx:/usr/bin/wish: Make_alphlist.tcl.o > Make_alphlist.tcl
rm Make_alphlist.tcl.o

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING Changelog Installation.tex README README.Tcl-version
%doc README.Upgrading README.hyphen_show SyntaxHelp_htx.tex
/usr/share/man/man1/*
/usr/bin/*
/usr/lib/xtem
/usr/lib/xtem-%{version}

%changelog
* Thu Jun 21 2007 - adrian@suse.de
- fix changelog entry order
* Mon Aug 14 2006 - lmichnovic@suse.cz
- adjusted patch and specfile to omitt X11R6 from paths
* Fri May 19 2006 - lmichnovic@suse.cz
- updated to version 8.26 [#173864]
  - printing now allows for kprinter --> kprinter menu
  - minor correction in tex.tcl concerning problems with leading
  blank in filename at ETeX call
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Mon Jul 08 2002 - max@suse.de
- Fixed for Tcl 8.4.
* Thu Aug 23 2001 - cihlar@suse.cz
- update to version 8.10 - fixed problems
  with language setings
* Thu Jun 28 2001 - cihlar@suse.cz
- removed tclx from Requires
* Tue Mar 13 2001 - cihlar@suse.cz
- update to version 8.00
* Fri Oct 27 2000 - cihlar@suse.cz
- upgrade to version 7.37
- fixed files permissions
- bzipped sources
* Fri May 19 2000 - cihlar@suse.cz
- upgrade to 7.31
* Thu Apr 27 2000 - cihlar@suse.cz
- upgrade to version 7.28
- added BuildRoot
* Fri Nov 05 1999 - max@suse.de
- changed wishx's path to /usr/lib.
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Jan 13 1998 - hf@suse.de
- new Version 6.18
* Thu Jan 08 1998 - hf@suse.de
- added link locals_german.LRW -> locals_german
* Mon Nov 24 1997 - ro@suse.de
- changed local/bin/wishx to X11R6/bin/wishx (in binary tar)
* Mon Nov 17 1997 - ro@suse.de
- changed headlines from help_{english,german}/latex/Make_alphlist.tcl
  to /usr/X11R6/bin/wishx in src and binary tar
* Tue Oct 14 1997 - hf@suse.de
  ready for autobuild
* Thu Aug 07 1997 - hf@suse.de
  new Version 6.04
 - xtem is a interface to TeX/LaTeX
* Fri Aug 01 1997 - hf@suse.de
  added the symbolic link: /usr/lib/xtem to /usr/lib/xtem-6.04
openSUSE Build Service is sponsored by