X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=TeXmacs.spec;h=cfb5965235914ccc9a64c456f0547381ad079120;hb=21253777cb964c99b8f0defe113714b8a2cadf87;hp=513a65552c8f1992f9e3b652fd60512d09fc7ca3;hpb=d3ce822dfc5fb4ac79b934494167ed104ac9a812;p=packages%2FTeXmacs.git diff --git a/TeXmacs.spec b/TeXmacs.spec index 513a655..cfb5965 100644 --- a/TeXmacs.spec +++ b/TeXmacs.spec @@ -1,80 +1,78 @@ -%define _gcc_ver %(%{__cc} -dumpversion | cut -b 1) - -Summary: A wysiwyg mathematical text editor -Summary(pl): Edytor WYSIWYG do tekstów matematycznych +# TODO: +# - update pl-translation +Summary: A wysiwyg scientific text editor +Summary(pl): Edytor WYSIWYG do tekstów naukowych Name: TeXmacs -Version: 1.0 +Version: 1.0.4 Release: 1 License: GPL Group: Applications/Editors Source0: ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz -Patch0: %{name}-ac_fixes.patch -Patch1: %{name}-polish.patch +# Source0-md5: ebec9edf0872def83e42a1faa54f7d2a +Source1: %{name}.desktop URL: http://www.texmacs.org/ BuildRequires: XFree86-devel -BuildRequires: autoconf BuildRequires: automake BuildRequires: guile-devel >= 1.4.1 BuildRequires: libstdc++-devel -%if %{_gcc_ver} == 3 -BuildRequires: gcc2-c++ -%endif +Requires: kpathsea Requires: tetex -Requires: guile-devel +Requires: tetex-dvips +Requires: tetex-metafont +Requires: ghostscript BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -# gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it -%if %{_gcc_ver} == 3 -%define __cc gcc2 -%define __cxx g++2 -%ifarch athlon -%define rpmcflags -O2 -march=i686 -%endif -%endif - %description -GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text -editor, which was both inspired by TeX and GNU Emacs. The program -implements high quality typesetting using TeX fonts, but it is also -provides a user friendly interface. +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, and it is possible to use TeXmacs as an interface -to computer algebra systems. GNU TeXmacs also supports the -Guile/Scheme extension language, which makes it possible to adapt the -user interface to specific needs and even to extend the editor. +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. In the future, TeXmacs is planned to evolve towards a +complete scientific office suite, with spreadsheet capacities, a +technical drawing editor and a presentation mode. %description -l pl GNU TeXmacs jest wolnodostêpnym edytorem typu WYSIWYG do tekstów -matematycznych, zainspirowanym przez TeX-a i GNU Emacsa. Ma -zaimplementowany wysokiej jako¶ci sk³ad przy u¿yciu fontów TeX-a, ale -udostêpnia tak¿e przyjazny interfejs u¿ytkownika. +naukowych, zainspirowanym przez TeXa i GNU Emacsa. Ma zaimplementowany +wysokiej jako¶ci sk³ad tekstu przy u¿yciu fontów TeXa a tak¿e +udostêpnia przyjazny interfejs u¿ytkownika. Wysoka jako¶æ sk³adu jest zachowana przy automatycznie generowanych wzorach i jest mo¿liwe u¿ywanie TeXmacsa jako interfejsu do systemów algebry. GNU TeXmacs obs³uguje tak¿e jêzyk rozszerzeñ Guile/Scheme, co umo¿liwia adaptowanie interfejsu u¿ytkownika do specyficznych potrzeb, -a tak¿e rozszerzanie edytora. +a tak¿e rozszerzanie mo¿liwo¶ci edytora. %prep %setup -q -n %{name}-%{version}-src -%patch0 -p1 -%patch1 -p1 %build -cp -f /usr/share/automake/config.* . -aclocal -%{__autoconf} -%configure +cp -f %{_datadir}/automake/config.sub . +%configure2_13 -%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates" +# DO NOT add -fno-rtti -fno-implicit-templates, it BREAKS build +%{__make} \ + CXXOPTIMIZE="%{rpmcflags} -fno-exceptions" %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_desktopdir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} + %clean rm -rf $RPM_BUILD_ROOT @@ -82,10 +80,9 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %{_includedir}/*.h -%dir %{_libdir}/%{name}-%{version} -%dir %{_libdir}/%{name}-%{version}/bin -%dir %{_libdir}/%{name}-%{version}/lib -%attr(755,root,root) %{_libdir}/%{name}-%{version}/bin/* -%attr(755,root,root) %{_libdir}/%{name}-%{version}/lib/* -%{_datadir}/%{name}-%{version} +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/bin +%attr(755,root,root) %{_libdir}/%{name}/bin/* +%{_datadir}/%{name} +%{_desktopdir}/*.desktop %{_mandir}/man?/*