%define name mozart %define version 1.3.2.20060615 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: Mozart, an efficient and distributed implementation of Oz License: Mozart License Url: http://www.mozart-oz.org/ Group: Development/Other Source0: ftp://ftp.mozart-oz.org/pub/%{version}/tar/%{name}-%{version}-src.tar.bz2 Patch1: %{name}-1.3.2.20060615.fhs.patch Patch2: %{name}-1.3.1.20040616.man.patch BuildRequires: libgmp-devel BuildRequires: libgdbm-devel BuildRequires: zlib-devel BuildRequires: libxscrnsaver-devel BuildRequires: tcl BuildRequires: tcl-devel BuildRequires: tk BuildRequires: tk-devel BuildRequires: openjade BuildRequires: ghostscript BuildRequires: tetex-latex BuildRequires: tetex-dvips BuildRequires: emacs-bin BuildRequires: flex BuildRequires: bison ExclusiveArch: %{ix86} BuildRoot: %{_tmppath}/%{name}-%{version} %description The Mozart system provides state-of-the-art support in two areas: open distributed computing and constraint-based inference. Mozart implements Oz, a concurrent object-oriented language with dataflow synchronization. Oz combines concurrent and distributed programming with logical constraint-based inference, making it a unique choice for developing multi-agent systems. Mozart is an ideal platform for both general-purpose distributed applications as well as for hard problems requiring sophisticated optimization and inferencing abilities. We have developed applications in scheduling and time-tabling, in placement and configuration, in natural language and knowledge representation, multi-agent systems and sophisticated collaborative tools. Mozart has been jointly developed by the Programming Systems Lab at DFKI and Universität des Saarlandes, the Swedish Institute of Computer Science, and Université de Louvain. This package contains all you need to run and develop Oz programs with Mozart. %package doc Summary: Mozart documentation Group: Development/Other %description doc This package contains the extensive Mozart online documentation as a set of HTML pages, postscript and pdf documents. It also contains demo applications that can directly be started from the pages. %prep %setup -q %patch1 -p1 %patch2 -p1 %build %configure \ --prefix=%{_datadir}/%{name} \ --disable-copy-tcl-libs \ --disable-compile-elisp \ --enable-opt \ --enable-doc \ --with-documents=all make %install rm -rf %{buildroot} # generic install make PREFIX=%{buildroot}%{_datadir}/%{name} install # fix perms find %{buildroot} -type f -exec chmod u+w {} \; find %{buildroot} -type d -exec chmod g-w {} \; # install man pages install -d -m 755 %{buildroot}%{_mandir}/man1 install -m 644 oz.1 %{buildroot}%{_mandir}/man1 install -m 644 ozdoc.1 %{buildroot}%{_mandir}/man1 install -d -m 755 %{buildroot}%{_bindir} for f in oz ozengine ozc ozl ozd oztool convertTextPickle ozdoc; do mv %{buildroot}%{_datadir}/%{name}/bin/$f %{buildroot}%{_bindir} done install -d -m 755 %{buildroot}%{_libdir}/%{name}/bin mv %{buildroot}%{_datadir}/%{name}/bin/ozplatform \ %{buildroot}%{_libdir}/%{name}/bin for f in oldpickle2text pickle2text text2pickle; do ln -sf ../../../bin/oz %{buildroot}/%{_libdir}/%{name}/bin/$f rm -f %{buildroot}%{_datadir}/%{name}/bin/$f done # move architecture-dependent files into /usr/lib/mozart cd %{buildroot}%{_datadir}/%{name} find -type f -a -name '*.so-*' | \ tar --create --files-from - --remove-files | \ (cd %{buildroot}%{_libdir}/%{name} && tar --preserve --extract) rm -rf %{buildroot}%{_datadir}/%{name}/cache/x-oz/boot rm -rf %{buildroot}%{_libdir}/%{name}/platform mv %{buildroot}%{_datadir}/%{name}/platform %{buildroot}%{_libdir}/%{name} # remove superfluous tcl/tk stuff rm -r %{buildroot}/%{_libdir}/%{name}/platform/*/wish # move elisp files to their proper place install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp mv %{buildroot}%{_datadir}/%{name}/share/elisp \ %{buildroot}%{_datadir}/emacs/site-lisp/%{name} # move include files to their proper place install -d -m 755 %{buildroot}/%{_includedir} mv %{buildroot}%{_datadir}/%{name}/include \ %{buildroot}/%{_includedir}/%{name} # remove licenses (see debian/copyright) rm -f %{buildroot}%{_datadir}/%{name}/README \ rm -f %{buildroot}%{_datadir}/%{name}/LICENSE* # remove useless documentation file rm -f %{buildroot}%{_datadir}/%{name}/doc/.htaccess rm -f %{buildroot}%{_datadir}/%{name}/doc/install/*.diff rm -f %{buildroot}%{_datadir}/%{name}/doc/install/FILES # move the documentation and the examples install -d -m 755 %{buildroot}%{_docdir}/%{name}-doc-%{version} mv %{buildroot}%{_datadir}/%{name}/doc \ %{buildroot}%{_docdir}/%{name}-doc-%{version} mv %{buildroot}%{_datadir}/%{name}/examples \ %{buildroot}%{_docdir}/%{name}-doc-%{version} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README LICENSE LICENSE.html LICENSE.rtf %{_bindir}/* %{_mandir}/man1/* %{_libdir}/%{name} %{_datadir}/%{name} %{_datadir}/emacs/site-lisp/%{name} %{_includedir}/%{name} %files doc %defattr(-,root,root) %{_docdir}/%{name}-doc-%{version} %changelog * Fri Sep 07 2007 Anssi Hannula <anssi@mandriva.org> 1.3.2.20060615-3mdv2008.0 + Revision: 82020 - rebuild for new soname of tcl * Thu Jun 14 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.2.20060615-2mdv2008.0 + Revision: 39804 - should never have existed - should never have existed - doesn't build on x86_64, so mark it as x86-exclusive - import mozart * Fri Aug 25 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.2.20060615-1mdv2007.0 - new release - drop patch 0 (merged upstream) - rediff patch 1 - uncompressed patches * Thu May 11 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-8mdk - buildrequires flex * Mon Jan 02 2006 Oden Eriksson <oeriksson@mandriva.com> 1.3.1.20040616-7mdk - rebuilt against soname aware deps (tcl/tk) - fix deps * Fri Aug 05 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-6mdk - fix files ownership * Fri Aug 05 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-5mdk - fixed emacs file loading - used %%mkrel - buildrequires emacs-bin * Tue Jun 14 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-4mdk - buildrequires openjade, ghostscript, tetex-dvips, tetex-latex * Sat Jun 04 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-3mdk - man pages (stolen from debian) * Wed Jun 01 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-2mdk - install in standard directories - fhs compliance (debian patch) - drop documentation tarball * Wed Jun 01 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.3.1.20040616-1mdk - first mdk release