%define name gprolog %define version 1.3.0 %define release %mkrel 3 %define Summary GNU Prolog is a free implementation of Prolog Name: %{name} Summary: %{Summary} Version: %{version} Release: %{release} # http://www.gnu.org/software/prolog URL: http://gnu-prolog.inria.fr/ # ftp://ftp.inria.fr/INRIA/Projects/contraintes/gnu-prolog/%{name}-%{version}.tar.bz2 Source0: ftp://ftp.gnu.org/gnu/gprolog/%{name}-%{version}.tar.bz2 Patch1: gprolog-1.3.0-bootstrap.patch Patch2: gprolog-1.2.19-noexecstack.patch.bz2 Group: Development/Other BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot ExclusiveArch: %{ix86} x86_64 amd64 ppc License: GPL %description GNU Prolog is a native Prolog compiler with constraint solving over finite domains (FD) developed by Daniel Diaz. Latest information about GNU Prolog can be found at http://www.gnu.org/software/prolog. A lot of work has been devoted to the ISO compatibility. GNU Prolog is very close to the ISO standard (http://www.logic-programming.org/prolog_std.html). %prep %setup -q %patch1 -p1 %patch2 -p1 (cd src && autoconf) %build cd src %configure2_5x -with-c-flags="%{optflags} -fno-unit-at-a-time" \ --with-install-dir=%{_prefix} \ --with-doc-dir=%{_datadir}/%{name}-%{version} \ --with-html-dir=%{_datadir}/%{name}-%{version}/html \ --with-examples-dir=%{_datadir}/%{name}-%{version}/examples # parallel build is not safe - AdamW 2008/12 make %check # all tests pass on x86-64 make check || echo "#### FIXME ####" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} (cd src ; make install-system INSTALL_DIR=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}) (cd $RPM_BUILD_ROOT%{_bindir} ; ln -sf ../%{_lib}/%{name}-%{version}/bin/* .) mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=GNU Prolog Comment=%{Summary} Exec=%{name} Icon=interpreters_section Terminal=true Type=Application Categories=Development;X-MandrivaLinux-MoreApplications-Development-Interpreters; EOF %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post %{update_menus} %endif %if %mdkversion < 200900 %postun %{clean_menus} %endif %files %defattr(-,root,root) %doc Examples* doc/html_node %{_bindir}/* %{_libdir}/%{name}* %{_datadir}/applications/* %changelog * Tue Dec 09 2008 Adam Williamson <awilliamson@mandriva.com> 1.3.0-3mdv2009.1 + Revision: 312144 - rebuild - disable parallel build (it breaks) + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Sat Jan 12 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3.0-2mdv2008.1 + Revision: 150233 - rebuild - drop old menu - kill re-definition of %%buildroot on Pixel's request - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Fri May 18 2007 Pixel <pixel@mandriva.com> 1.3.0-1mdv2008.0 + Revision: 27816 - new release, 1.3.0 - drop patch0 (gcc4) hopefully not needed anymore - drop patch3 (test) applied upstream - Import gprolog * Thu Aug 24 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.2.19-4mdv2007.0 - fix usage of summary macro in menu item - move check to new %%check stage - fix macro-in-%%changelog - cosmetics * Fri Jul 7 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.2.19-3mdv2007.0 - make check in build - build with optimisations * Fri Jul 7 2006 Pixel <pixel@mandriva.com> 1.2.19-2mdv2007.0 - switch to XDG menu * Mon May 29 2006 Pascal Terjan <pterjan@mandriva.org> 1.2.19-1mdv2007.0 - use unstable version 1.2.19 - mkrel - add gentoo patches (P1,2,3,4) - drop patch0 - disable gcc4 optims until I find the breaking ones - install into the right places * Wed Aug 6 2003 Pixel <pixel@mandrakesoft.com> 1.2.16-5mdk - fix url, description (thanks to John Keller) * Tue Aug 5 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.16-4mdk - Handle amd64 as arch * Tue Dec 17 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.16-3mdk - Enable build on PPC, it should work there too. - Update Patch0 (x86-64) to what Daniel Diaz committed upstream. Simply reformatting tweeks but make sure latest code still works. * Mon Dec 16 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.16-2mdk - Update Patch0 (x86-64) to preserve callee-saved register %%rbx * Mon Dec 9 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.16-1mdk - 1.2.16 - Update Patch0 (x86_64): handle 64-bit integers though I don't think this could occur, define M_MMAP_HIGH_ADR, define global registers * Sat Dec 7 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.13-2mdk - Patch0: Add initial support for x86-64. There may be some clean-ups, optimizations and fixlets to do though. * Thu Jun 27 2002 Pixel <pixel@mandrakesoft.com> 1.2.13-1mdk - new release * Wed Jan 09 2002 David BAUDENS <baudens@mandrakesoft.com> 1.2.8-2mdk - Use standard interpreters_section.png icon * Mon Oct 22 2001 Frederic Lepied <flepied@mandrakesoft.com> 1.2.8-1mdk - 1.2.8 * Wed Aug 29 2001 David BAUDENS <baudens@mandrakesoft.com> 1.2.1-8mdk - Use new icon * Thu Jul 26 2001 Pixel <pixel@mandrakesoft.com> 1.2.1-7mdk - rebuild * Tue Dec 26 2000 Pixel <pixel@mandrakesoft.com> 1.2.1-6mdk - removed ppc from exclusivearch * Mon Dec 4 2000 Pixel <pixel@mandrakesoft.com> 1.2.1-5mdk - ensure optflags are used * Tue Nov 7 2000 Pixel <pixel@mandrakesoft.com> 1.2.1-4mdk - change menu title - icons the way I want :p * Mon Oct 09 2000 Daouda Lo <daouda@mandrakesoft.com> 1.2.1-3mdk - icons - embedded menu * Wed Aug 23 2000 Pixel <pixel@mandrakesoft.com> 1.2.1-2mdk - add packager field * Mon Jul 31 2000 Pixel <pixel@mandrakesoft.com> 1.2.1-1mdk - new version * Sun Jul 30 2000 Pixel <pixel@mandrakesoft.com> 1.2-1mdk - new version * Wed Jul 19 2000 Pixel <pixel@mandrakesoft.com> 1.1.2-4mdk - macroization - BM * Tue May 16 2000 Pixel <pixel@mandrakesoft.com> 1.1.2-3mdk - add exclusivearch * Fri Mar 31 2000 Pixel <pixel@mandrakesoft.com> 1.1.2-2mdk - cleanup, add menu, new group * Wed Dec 01 1999 Lenny Cartier <lenny@mandrakesoft.com> - initial specfile - added %%doc - added symlinks in /usr/bin - enable mdk CFLAGS - ...things to satisfy Mr Pixel