Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 0a5c11e10b1f89eb3bc3e0d141fad02b > files > 5

TeXmacs-1.0.6.15-1mdv2009.0.src.rpm

Summary:	WYSIWYG mathematical text editor
Name:		TeXmacs
Version:	1.0.6.15
Release:	%mkrel 1
License:	GPLv2+
Group:		Editors
URL:		http://www.texmacs.org
Source0:	ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
Source10:	%{name}.16.png
Source11:	%{name}.32.png
Source12:	%{name}.48.png

Requires:	tetex
Requires:	guile
Requires:	R-base
Requires:	axiom
Requires:	maxima >= 5.9.1
Obsoletes:	TeXmacs-fonts
Provides:	TeXmacs-fonts
BuildRequires:	X11-devel
BuildRequires:	libguile-devel
BuildRequires:	desktop-file-utils
Requires(post):	desktop-file-utils
Requires(postun): desktop-file-utils
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
GNU TeXmacs is a free scientific text editor, which was both 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 may be created by the user. The program implements high-quality 
typesetting algorithms and TeX fonts, which help you to produce professionally 
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.

Converters exist for TeX/LaTeX and they are under development for
Html/Mathml/Xml.

%prep
%setup -q -n %{name}-%{version}-src

%build
%configure2_5x \
	--enable-optimize="%{optflags}"
	
%make

%install
rm -rf %{buildroot}
%makeinstall_std
export GUILE_DATA_PATH=`guile-config info pkgdatadir`
export GUILE_LOAD_PATH=`find $GUILE_DATA_PATH -type d | grep ice-9`

# fix calls for R >= 2.0.0
(cd %{buildroot}%{_datadir}/TeXmacs/plugins/r/r/
R CMD build --force TeXmacs
R CMD INSTALL -l `pwd` TeXmacs_0.1.tar.gz)

# icons
install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
cp -a %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
cp -a %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
cp -a %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

mkdir -p  %{buildroot}%{_datadir}/applications
cp -a %{buildroot}%{_datadir}/TeXmacs/misc/mime/texmacs.desktop %{buildroot}%{_datadir}/applications/

sed -i -e 's/^Icon=%{name}.xpm$/Icon=%{name}/g' %{buildroot}%{_datadir}/applications/*

desktop-file-install \
  --remove-category="Application" \
  --remove-key="Path" \
  --add-category="Office;WordProcessor;Math;" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_menus}
%{update_desktop_database}
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%clean_icon_cache hicolor
%endif

%files
%defattr(-,root,root)
%{_bindir}/*
%{_includedir}/TeXmacs.h
%{_mandir}/*/*
%{_libexecdir}/TeXmacs
%{_datadir}/TeXmacs
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*


%changelog
* Sat Aug 16 2008 Frederik Himpe <fhimpe@mandriva.org> 1.0.6.15-1mdv2009.0
+ Revision: 272755
- update to new version 1.0.6.15

* Sun Aug 03 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.6.12-5mdv2009.0
+ Revision: 261532
- rebuild

* Wed Jul 30 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.6.12-4mdv2009.0
+ Revision: 254497
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - fix typo calling %%update_icon_cache in %%post

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Wed Nov 07 2007 Funda Wang <fundawang@mandriva.org> 1.0.6.12-2mdv2008.1
+ Revision: 106707
- rebuild for new lzma

  + Thierry Vignaud <tvignaud@mandriva.com>
    - shortenize description

* Mon Nov 05 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.6.12-1mdv2008.1
+ Revision: 106135
- do not hardcode incon extension
- remove wrong entries in desktop file, add math category also
- optimized compilation
- add scriplets
- drop patch 0, fixed upstram
- spec file clean
- new version 1.0.6.12
- new license policy

* Mon Jul 23 2007 Giuseppe Ghibò <ghibo@mandriva.com> 1.0.6.10-4mdv2008.0
+ Revision: 54611
- Add Requires R-base, axiom and maxima.

* Sun Jul 22 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.6.10-3mdv2008.0
+ Revision: 54497
- remove requires on R-base,axiom and maxima (closes bug #31734)
- drop old menu style
- remove X-MandrivaLinux
- move icons into fdo directories
- spec file clean

* Sat Jun 16 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.6.10-2mdv2008.0
+ Revision: 40385
- rebuild for R-base

* Tue May 15 2007 David Walluck <walluck@mandriva.org> 1.0.6.10-1mdv2008.0
+ Revision: 26774
- 1.0.6.10
- bunzip2 sources
- replace  with %%{buildroot}
- add patch to fix build

* Tue May 01 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.6.9-2mdv2008.0
+ Revision: 20038
- rebuild against new R-base


* Tue Feb 13 2007 Lenny Cartier <lenny@mandriva.com> 1.0.6.9-1mdv2007.0
+ Revision: 120412
- Update to 1.0.6.9

* Thu Jan 18 2007 Lenny Cartier <lenny@mandriva.com> 1.0.6.8-1mdv2007.1
+ Revision: 110346
- Update to 1.0.6.8

* Wed Dec 13 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.7-1mdv2007.1
+ Revision: 96410
- Update to 1.0.6.7

* Fri Oct 27 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0.6.6-2mdv2007.1
+ Revision: 73127
- Add BuildRequires

  + Lenny Cartier <lenny@mandriva.com>
    - Import TeXmacs

* Thu Aug 24 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.6-1mdv2007.0
- 1.0.6.6
- remove patch0 now useless

* Thu Aug 10 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.5-1mdv2007.0
- 1.6.0.5
- xdg

* Wed Jun 21 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.3-1mdv2007.0
- 1.6.0.3

* Fri Jun 09 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.2-1mdv2007.0
- 1.0.6.2

* Sat May 13 2006 Lenny Cartier <lenny@mandriva.com> 1.0.6.1-1mdk
- 1.0.6.1

* Mon Dec 05 2005 Lenny Cartier <lenny@mandriva.com> 1.0.6-1mdk
- 1.0.6

* Wed Nov 16 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.12-1mdk
- 1.0.5.12

* Tue Oct 25 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.11-1mdk
- 1.0.5.11

* Sat Oct 01 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.9-1mdk
- 1.0.5.9

* Fri Sep 23 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.8-1mdk
- 1.0.5.8

* Wed Jul 27 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.6-1mdk
- 1.0.5.6

* Fri Jun 10 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.3-1mdk
- 1.0.5.3

* Thu Jun 09 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.2-1mdk
- 1.0.5.2

* Wed May 18 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5.1-1mdk
- 1.0.5.1

* Fri Apr 29 2005 Lenny Cartier <lenny@mandriva.com> 1.0.5-1mdk
- 1.0.5

* Tue Apr 26 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0.4.7-3mdk
- Removed Patch2 (doesn't work properly), and add AXIOMsys
  wrapper under axiom package.

* Tue Apr 26 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0.4.7-2mdk
- Added Patch for axiom and maxima.

* Wed Apr 06 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.7-1mdk
- 1.0.4.7

* Wed Feb 23 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.6-1mdk
- 1.0.4.6

* Wed Feb 16 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0.4.5-2mdk
- Added Patch0, to allow R >= 2.0.0 to be called from within TeXmacs.

* Thu Dec 16 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.5-1mdk
- 1.0.4.5

* Mon Nov 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.4-1mdk
- 1.0.4.4

* Thu Oct 07 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.3-1mdk
- 1.0.4.3

* Thu Sep 02 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.2-1mdk
- 1.0.4.2

* Sat Aug 21 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.4.1-2mdk
- fix typo in menu entry

* Thu Aug 12 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4.1-1mdk
- 1.0.4.1

* Thu Jul 29 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.4-1mdk
- 1.0.4

* Tue Jul 20 2004 Michael Scherer <misc@mandrake.org> 1.0.3.11-1mdk
- New release 1.0.3.11
- rpmbuildupdate aware
- some spec cleaning

* Tue May 25 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.3.9-1mdk
- 1.0.3.9

* Sat May 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.3.8-1mdk
- 1.0.3.8

* Mon Feb 16 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.3.3-1mdk
- 1.0.3.3