File TeXmacs.spec of Package TeXmacs
#
# spec file for package TeXmacs (Version 1.0.6.15)
#
# Copyright (c) 2008 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: TeXmacs
BuildRequires: fdupes freetype2-devel gcc-c++ guile-devel shared-mime-info update-desktop-files xorg-x11-devel
Summary: A Structured WYSIWYG Scientific Text Editor
Group: Productivity/Editors/Other
Version: 1.0.6.15
Release: 1
License: GPL v2 or later
Requires: texlive guile
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.texmacs.org/
Source: %{name}-%{version}-src.tar.bz2
Patch4: TeXmacs-mime.patch
Patch5: TeXmacs-makefile.patch
Patch7: TeXmacs-cflags.patch
Patch8: TeXmacs-random.patch
Patch9: TeXmacs-null.patch
Patch10: TeXmacs-noreturn.patch
%description
GNU TeXmacs is a free scientific text editor, inspired by TeX and GNU
Emacs. The editor allows you to write structured documents via a
WYSIWYG (what-you-see-is-what-you-get) and user friendly interface. New
styles can be created by the user. The program implements high-quality
typesetting algorithms and TeX fonts, which help you to produce
professional looking documents.
The high typesetting quality still goes through for automatically
generated formulas, which makes TeXmacs suitable as an interface for
computer algebra systems. TeXmacs also supports the Guile/Scheme
extension language, so that you may customize the interface and write
your own extensions to the editor.
In the future, TeXmacs is planned to evolve towards a complete
scientific office suite, with spreadsheet capabilities, a technical
drawing editor, and a presentation mode.
Authors:
--------
Joris van der Hoeven
%package examples
License: GPL v2 or later
Summary: A Structured WYSIWYG Scientific Text Editor
Group: Productivity/Editors/Other
%description examples
GNU TeXmacs is a free scientific text editor, inspired by TeX and GNU
Emacs. The editor allows you to write structured documents via a
WYSIWYG (what-you-see-is-what-you-get) and user friendly interface. New
styles can be created by the user. The program implements high-quality
typesetting algorithms and TeX fonts, which help you to produce
professional looking documents.
The high typesetting quality still goes through for automatically
generated formulas, which makes TeXmacs suitable as an interface for
computer algebra systems. TeXmacs also supports the Guile/Scheme
extension language, so that you may customize the interface and write
your own extensions to the editor.
In the future, TeXmacs is planned to evolve towards a complete
scientific office suite, with spreadsheet capabilities, a technical
drawing editor, and a presentation mode.
Authors:
--------
Joris van der Hoeven
%prep
%setup -q -n %{name}-%{version}-src
%patch4
%patch5
%patch7
%patch8
%patch9
%patch10
rm -f config.cache
%build
autoreconf -f -i
%configure\
--enable-optimize="$RPM_OPT_FLAGS"
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT STRIP=: install
export GUILE_DATA_PATH=`guile-config info pkgdatadir`
export GUILE_LOAD_PATH=`find $GUILE_DATA_PATH -type d | grep ice-9`
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
mv $RPM_BUILD_ROOT%{_datadir}/TeXmacs/misc/mime/*.desktop $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
ln -s %{_datadir}/TeXmacs/misc/pixmaps/TeXmacs.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/mimetypes
ln -s %{_datadir}/TeXmacs/misc/pixmaps/TeXmacs.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-texmacs.xpm
# Convert GNOME MIME Info to Shared MIME Info
mkdir -p $RPM_BUILD_ROOT%{_datadir}/application-registry
mv $RPM_BUILD_ROOT%{_datadir}/TeXmacs/misc/mime/texmacs.applications $RPM_BUILD_ROOT%{_datadir}/application-registry
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime-info
mv $RPM_BUILD_ROOT%{_datadir}/TeXmacs/misc/mime/texmacs.{keys,mime} $RPM_BUILD_ROOT%{_datadir}/mime-info
rmdir $RPM_BUILD_ROOT%{_datadir}/TeXmacs/misc/mime
rmdir $RPM_BUILD_ROOT%{_libdir}/TeXmacs/lib
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
rm -r $RPM_BUILD_ROOT%{_datadir}/application-registry $RPM_BUILD_ROOT%{_datadir}/mime-info
%suse_update_desktop_file texmacs Office WordProcessor
chmod 755 $RPM_BUILD_ROOT/usr/share/TeXmacs/langs/encoding/{scm-to-html.awk,ent-to-scm.awk}
rm $RPM_BUILD_ROOT%{_includedir}/%{name}.h
%fdupes -s $RPM_BUILD_ROOT%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%postun
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%files
%defattr(-, root, root)
%doc TeXmacs/COPYING LICENSE TeXmacs/README TeXmacs/TEX_FONTS
%{_bindir}/*
%{_libdir}/TeXmacs
%{_datadir}/applications/*.desktop
# NOTE: Own directory - we do not want to depend on gnome-icon-theme
%{_datadir}/icons/hicolor
#%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-texmacs.xpm
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/*.xpm
%dir %{_datadir}/TeXmacs
%{_datadir}/TeXmacs/doc
%{_datadir}/TeXmacs/fonts
%{_datadir}/TeXmacs/langs
%{_datadir}/TeXmacs/LICENSE
%{_datadir}/TeXmacs/misc
%{_datadir}/TeXmacs/packages
%{_datadir}/TeXmacs/plugins
%{_datadir}/TeXmacs/progs
%{_datadir}/TeXmacs/styles
%{_datadir}/TeXmacs/texts
%doc %{_mandir}/man?/*.*
%files examples
%defattr(-, root, root)
%{_datadir}/TeXmacs/examples
%changelog
* Mon Aug 18 2008 pgajdos@suse.cz
- updated to 1.6.0.15:
+ Improved Scheme mode.
+ Improved appearance of Wikipedia mathematical pages.
+ Added plug-in for drawing Feynman diagrams.
* Wed May 07 2008 pgajdos@suse.cz
- repaired no-return-in-nonvoid-function
(noreturn.patch)
* Tue Mar 25 2008 pgajdos@suse.cz
- updated to 1.6.0.14:
* TrueColor support.
* Started native Aqua port for TeXmacs.
* Fix compatibility issues for C++ and Guile.
- created TeXmacs-examples subpackage
* Tue Dec 11 2007 pgajdos@suse.cz
- upgraded to version 1.6.0.12
* Complete abstraction of the graphical
user interface should make porting easier.
* Improved signal handling for pipe communications.
* Syntax highlighting for Scheme programs.
* Added plug-in for Sage computer algebra system.
* Continued reorganizations for the graphics mode.
* Corrections of a few bugs.
* Increased user-friendliness of graphics mode.
* Necessary updates for Maxima 5.10.0.
* Background patterns for document, ornaments and table cells.
- bugs covered by anim-clip-cond.patch, 64bit.patch
and new-gcc.patch were fixed upstream, so these patches were
removed
* Tue Oct 16 2007 pgajdos@suse.cz
- fixed new gcc warning
* new-gcc.patch
* Mon Apr 23 2007 ro@suse.de
- require texlive instead of tetex
* Wed Feb 28 2007 mvaner@suse.cz
- Upgrading to 1.0.6.9
- Problem with Guile seems to disappear (#232997)
- Removing forgotten 'exit 1' from last time
* Wed Feb 28 2007 mvaner@suse.cz
- Fixing part of 228035 - crash on 64bit computer
- 64bit.patch
- The package is still unuseable, but for other reason now
(Guile version)
* Tue Feb 20 2007 mvaner@suse.cz
- Fixing odd comparison (bug #233326)
- anim-clip-cond.path
* Thu Jan 25 2007 sbrabec@suse.cz
- Removed references to /opt/gnome.
* Tue Jan 23 2007 ro@suse.de
- drop requires for gnome-filesystem
* Sun Oct 15 2006 ro@suse.de
- update to 1.0.6.6 to fix build
- bugfix release
* Thu Oct 12 2006 ro@suse.de
- added gmp-devel to BuildRequires
* Thu May 25 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 sbrabec@suse.cz
- Do not require shared-mime-info.
* Tue Jan 17 2006 sbrabec@suse.cz
- Updated to version 1.0.6.
* Sun Nov 13 2005 schwab@suse.de
- Fix use of friend injection.
- Fix warnings.
* Fri Oct 28 2005 ro@suse.de
- change GZIP to MGZIP in makefile (gzip uses $GZIP as options)
* Thu Sep 08 2005 ro@suse.de
- added prereq for postinstall script
* Wed Sep 07 2005 sbrabec@suse.cz
- Fixed desktop icon and MIME bindings (#105832).
* Thu Jul 14 2005 sbrabec@suse.cz
- Updated to version 1.0.5.
* Mon May 23 2005 yxu@suse.de
- fixed for GCC4
* Thu Apr 28 2005 yxu@suse.de
- fixed building on Itanium
- fixed serious compiler warings
* Tue Apr 26 2005 sbrabec@suse.cz
- Updated to version 1.0.4.7.
- Fixed invalid casts.
* Thu Jan 06 2005 sbrabec@suse.cz
- Updated to version 1.0.4.5.
* Mon Oct 04 2004 sbrabec@suse.cz
- Fixed architecture detection for AMD64 (#45525).
* Thu Sep 02 2004 sbrabec@suse.cz
- Install properly mime info.
* Wed Sep 01 2004 sbrabec@suse.cz
- Updated to version 1.0.4.2.
* Wed Aug 18 2004 sbrabec@suse.cz
- Updated to version 1.0.4.1.
* Wed Mar 03 2004 sbrabec@suse.cz
- Updated to version 1.0.3.3.
* Thu Feb 05 2004 sbrabec@suse.cz
- Updated to version 1.0.3.2.
* Tue Jan 20 2004 ltinkl@suse.cz
- update to latest stable version (1.0.3)
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Mon Aug 11 2003 sbrabec@suse.cz
- Updated to version 1.0.1.21.
* Mon Jun 16 2003 coolo@suse.de
- package directories
* Fri Dec 20 2002 sbrabec@suse.cz
- Updated to version 1.0.1.
* Thu Dec 05 2002 sbrabec@suse.cz
- Updated to version 1.0.0.24.
* Tue Dec 03 2002 sbrabec@suse.cz
- Updated to version 1.0.0.23.
* Fri Sep 06 2002 mcihar@suse.cz
- keyboard is now working (patch from upstream 1.0.0.13)
* Fri Aug 09 2002 mcihar@suse.de
- updated to 1.0.0.12:
* Complete change of the keyboard behaviour.
* Automatic detection and configuration of modifier keys.
* Automatic translation of menus in the documentation.
* Guile/Scheme scripts inside documents.
* Wildcard system for keyboard shortcuts.
* Keyboard shortcuts in the menus are determined automatically.
* Further reorganization of the menus.
* Support for grey menu items, checkmarks and ... in menus.
* Automatic determination of keyboard shortcuts in menus.
* Widgets are now attached to the current display at creation
time.
* Improved reduce and axiom interfaces.
* Replaced the gencc preprocessor by the more standard template
system of C++.
- removed undeeded patches
* Thu Jul 18 2002 mcihar@suse.cz
- again applied forgotten patch for ia64
* Tue Jul 16 2002 mcihar@suse.cz
- updated to 1.0.0.9:
* Headers and footers through menus.
* Support for user preferences.
* Improved math support, support for Giac computer algebra system.
* Added a presentation mode.
* Visual environment information when editing.
* New styles.
* Implementation of overline and underline macros.
* Some small improvements in LaTeX to TeXmacs converter.
* Enhanced online help, now contains also examples.
* Wed Jun 05 2002 mcihar@suse.cz
- fixed build on ia64
* Mon May 20 2002 mcihar@suse.cz
- created new package (version 1.0.0.3)