Hello community, here is the log from the commit of package swipl for openSUSE:Factory checked in at 2015-09-11 09:04:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/swipl (Old) and /work/SRC/openSUSE:Factory/.swipl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "swipl" Changes: -------- --- /work/SRC/openSUSE:Factory/swipl/swipl.changes 2014-07-24 06:58:52.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.swipl.new/swipl.changes 2015-09-11 09:04:42.000000000 +0200 @@ -1,0 +2,30 @@ +Thu Sep 10 08:29:00 UTC 2015 - [email protected] + +- Add PREPARE_PACKAGE to sources. + +------------------------------------------------------------------- +Wed Sep 9 18:21:17 UTC 2015 - [email protected] + +- Update to version 7.2.2. +- SWI-Prolog 7 at a glance: + * The new dict type and syntax provides both time and space + efficient name-value maps with a pleasant syntax. + * As a consequence, it was necessary to replace the list + constructor .(H,T) by the (also in use by Mercury) '[|]'(H,T). + * The syntax "..." is now mapped to strings. Strings are + compatible with ECLiPSe. + * Thanks to Torbjorn Lager, we have "Pengines", Prolog engines on + the web. This provides a generic API to talk comfortably to a + Prolog server from JavaScript and other Prolog instances. + * Markus Triska added clp(b), the boolean constraint solver, + improved his clp(fd) and was before several enhancements to the + toplevel dealing with constraints. + * Thanks to Matt Lilley and Mike Elston, there is CQL, a DSL + (Domain Specific Language) for dealing with SQL. + * Matt Lilley improved networking support significantly, + including much better support for SSL and general support for + both HTTP and SOCKS proxy servers. + * Many people have provided add-ons (packs) that rely on + SWI-Prolog version 7. See http://www.swi-prolog.org/pack/list. + +------------------------------------------------------------------- Old: ---- pl-6.6.6.tar.gz refman.pdf New: ---- PREPARE_PACKAGE swipl-7.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ swipl.spec ++++++ --- /var/tmp/diff_new_pack.9Aompm/_old 2015-09-11 09:04:43.000000000 +0200 +++ /var/tmp/diff_new_pack.9Aompm/_new 2015-09-11 09:04:43.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package swipl # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,29 @@ Name: swipl +Version: 7.2.2 +Release: 0 +Summary: Prolog Compiler +License: GPL-2.0+ and LGPL-2.1+ +Group: Development/Languages/Other +Url: http://www.swi-prolog.org +# See PREPARE_PACKAGE for instructions on how to create archive. +Source0: swipl-%{version}.tar.gz +Source99: PREPARE_PACKAGE +# FIXME: these patches are undocumented. +Patch0: pl.patch +Patch1: pkgconfig.patch +Patch2: internal_fix.patch +Patch3: swipl-ppc64.patch BuildRequires: fdupes BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: java-devel >= 1.6.0 +BuildRequires: libarchive-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel +BuildRequires: libunwind-devel BuildRequires: mysql-devel BuildRequires: openssl-devel BuildRequires: postgresql-devel @@ -34,22 +50,6 @@ BuildRequires: xorg-x11 BuildRequires: xorg-x11-Xvfb BuildRequires: xorg-x11-devel -%if 0%{?suse_version} <= 1230 -BuildRequires: javapackages-tools -%endif -Version: 6.6.6 -Release: 0 -Summary: Prolog Compiler -License: GPL-2.0+ and LGPL-2.1+ -Group: Development/Languages/Other -Source: pl-%{version}.tar.gz -Source1: refman.pdf -Patch0: pl.patch -Patch1: pkgconfig.patch -# This is now upstream -Patch2: internal_fix.patch -Patch3: swipl-ppc64.patch -Url: http://www.swi-prolog.org Provides: swi-prolog = %{version} Provides: swi_pl = %{version} Obsoletes: swi-prolog < %{version} @@ -62,57 +62,47 @@ Emacs interface, a very fast compiler,and an X11 interface using XPCE (see http://www.swi.psy.uva.nl/projects/xpce). - - -Authors: --------- - Jan Wielemaker <[email protected]> - - %prep -%setup -q -n pl-%{version} +%setup -q %patch0 -p 1 %patch1 -p 1 %patch2 -p 1 %patch3 -p 1 %build -cp build.templ build +cp -p build.templ build -export COFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export COFLAGS="%{optflags} -fno-strict-aliasing" ./build --prefix=%{_prefix} --config --libdir=%{_libdir} --enable-shared -./build --prefix=%{_prefix} --make %{?jobs:-j %{jobs}} +./build --prefix=%{_prefix} --make %{?_smp_mflags} unset COFLAGS %install -DESTDIR=$RPM_BUILD_ROOT ./build --prefix=%{_prefix} --install +DESTDIR=%{buildroot} ./build --prefix=%{_prefix} --install # Add another symlink -cd $RPM_BUILD_ROOT/%{_prefix}/bin +cd %{buildroot}/%{_prefix}/bin ln -s ../%{_lib}/%{name}-%{version}/bin/*/swipl pl # Add a link to the documentation in docdir. -mkdir -p $RPM_BUILD_ROOT/%{_docdir} -cd $RPM_BUILD_ROOT/%{_docdir} +mkdir -p %{buildroot}/%{_docdir} +cd %{buildroot}/%{_docdir} ln -s %{_libdir}/%{name}-%{version}/doc swipl -chmod -x $RPM_BUILD_ROOT/%{_libdir}/%{name}-%{version}/doc/packages/examples/pldoc/man_server.pl - -%fdupes $RPM_BUILD_ROOT/%{_libdir}/%{name}-%{version} +chmod -x %{buildroot}/%{_libdir}/%{name}-%{version}/doc/packages/examples/pldoc/man_server.pl -%clean -rm -rf $RPM_BUILD_ROOT +%fdupes %{buildroot}/%{_libdir}/%{name}-%{version} %files %defattr(-,root,root,-) -%{_prefix}/bin/pl -%{_prefix}/bin/swipl -%{_prefix}/bin/swipl-ld -%{_prefix}/bin/swipl-rc -%{_prefix}/bin/xpce-client +%{_bindir}/pl +%{_bindir}/swipl +%{_bindir}/swipl-ld +%{_bindir}/swipl-rc +%{_bindir}/xpce-client %{_libdir}/%{name}-%{version} %{_libdir}/pkgconfig/%{name}.pc %{_docdir}/%{name} ++++++ PREPARE_PACKAGE ++++++ # # PREPARE_PACKAGE for swipl # # Description: # Some hints to prepare the archive file of swipl. # # Summary: # swipl developers use git submodules to structurate their # work. Unfortunately, these submodules are not included # in the archive file that is generated and available # on GitHub as well as other useful files (configure, # config.h.in, ...) # In this file I suggest a way to create an archive which # would include this missing files and therefore an archive # which allows us to easily create a rpm. # # TODO: # * make a proper bash script # * improve file filter: there must remain some files # that are not needed... # * spec file need to be reviewed because some doc files are not installed... # 1. Install git. 2. Clone the swipl stable repository: git clone https://github.com/SWI-Prolog/swipl.git 3. Get the submodules and the documentation: cd swipl ./prepare # make sure to accept to download the documentation 4. Create archive find . -type f | grep -iEv "win32|windows|macos|cygwin|cache|/\." > filelist tar czf swipl-${version} -T filelist --transform 's,^.,swipl-%{version},' Then you just have to update the rpm spec file!
