]> git.pld-linux.org Git - packages/TeXmacs.git/blobdiff - TeXmacs.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/TeXmacs.git] / TeXmacs.spec
index bf7e1c37b029ea315d5c5bb92cb3e14403ce5221..919ff9a96d61456c0700bfff77e1bd622e7e418c 100644 (file)
@@ -1,19 +1,30 @@
+
+%define         _gcc_ver        %(%{__cc} --version | cut -b 1)
+
 Summary:       A wysiwyg mathematical text editor
+Summary(pl):   Edytor WYSIWYG do tekstów matematycznych
 Name:          TeXmacs
-Version:       0.3.0
-Release:       5
-Requires:      tetex
+Version:       0.3.5.12
+Release:       3
 License:       GPL
 Group:         Applications/Editors
-Group(de):     Applikationen/Editors
-Group(pl):     Aplikacje/Edytory
-Group(pt):     Aplicações/Editores
-Source0:       ftp://ftp.dante.de/tex-archive/systems/unix/TeXmacs/%{name}-%{version}-5-src.tar.gz
-Vendor:                Jo the ripper software
+Source0:       ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
+Patch0:                %{name}-ac_fixes.patch
+Patch1:                %{name}-polish.patch
+URL:           http://www.texmacs.org/
+BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: guile-devel
+BuildRequires: libstdc++-devel
+%if %{_gcc_ver} == 3
+BuildRequires: gcc2-c++
+%endif
+Requires:      tetex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description
 
+%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
@@ -25,37 +36,56 @@ 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.
 
+%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.
+
+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.
+
 %prep
-mkdir -p $RPM_BUILD_ROOT/usr
-cd $RPM_BUILD_ROOT
-zcat $RPM_SOURCE_DIR/TeXmacs-0.3.0-5-src.tar.gz | tar -xvf -
+%setup -q -n %{name}-%{version}-src
+%patch0 -p1
+%patch1 -p1
 
 %build
-cd $RPM_BUILD_ROOT/TeXmacs-0.3.0-5-src
-./configure --prefix=$RPM_BUILD_ROOT%{_prefix}
-%{__make} CXXFLAGS="-O3 -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2" STATIC_TEXMACS
+aclocal
+autoconf
+cp -f /usr/share/automake/config.* .
+# gcc3 produces broken code (argh!!!), so switch to gcc3 if we found it
+%if %{_gcc_ver} == 3
+%define                __cc            gcc2
+%define                __cxx           g++2
+%ifarch athlon
+%define                rpmcflags       -O2 -march=i686
+%endif
+%endif
+%configure
+
+%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd $RPM_BUILD_ROOT/TeXmacs-0.3.0-5-src
-%{__make} install
-./configure --prefix=%{_prefix}
-chmod 755 TeXmacs-0.3.0-5/bin/*
-cp TeXmacs-0.3.0-5/bin/fig2ps $RPM_BUILD_ROOT%{_bindir}
-cp TeXmacs-0.3.0-5/bin/texmacs $RPM_BUILD_ROOT%{_bindir}
-export GUILE_DATA_PATH=`guile-config info pkgdatadir`
-export GUILE_LOAD_PATH=`find $GUILE_DATA_PATH -type d | grep ice-9`
-cp -r -f $GUILE_LOAD_PATH $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/progs
-chmod 755 $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/progs/ice-9
-rm -f $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/lib/*.so
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/texmacs
-%attr(755,root,root) %{_bindir}/fig2ps
-%{_includedir}/TeXmacs.h
-%{_prefix}/man/man1/texmacs.1.gz
-%{_datadir}/TeXmacs-0.3.0-5
+%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}
+%{_mandir}/man?/*
This page took 0.107938 seconds and 4 git commands to generate.