Hello community,

here is the log from the commit of package racket for openSUSE:Factory checked 
in at 2013-05-27 09:58:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/racket (Old)
 and      /work/SRC/openSUSE:Factory/.racket.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "racket"

Changes:
--------
--- /work/SRC/openSUSE:Factory/racket/racket.changes    2013-03-26 
19:48:34.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.racket.new/racket.changes       2013-05-27 
09:58:47.000000000 +0200
@@ -1,0 +2,35 @@
+Fri May 17 06:16:25 UTC 2013 - [email protected]
+
+- Added backported patches libpn16.patch and libpng16-adjustment.patch
+  correcting libpn16
+- Fix randomly generated mode 666 documentation files 
+
+-------------------------------------------------------------------
+Tue May 14 14:33:37 UTC 2013 - [email protected]
+
+- Update to 5.3.4 release for details see changelog.txt and News
+
+  * Extflonums (80-bit floating-point numbers) are supported on some
+    x86/x86_64 platforms -- including Windows, and including platforms
+    where Racket is compiled to use SSE instructions for flonum
+    arithmetic.  Thanks to Michael Filonenko.
+  * Tally Maze: a new game based an enumeration of 2d mazes.
+  * The Optimization Coach, a DrRacket plugin, has been moved from the
+    Racket distribution to the Racket package repository.  Install it
+    with: raco pkg install optimization-coach
+  * Redex: `define-union-language' now merges productions when
+    languages define the same nonterminals.  Thanks to William Bowman.
+  * The `srfi/19' library is now compatible with the date structure
+    type exported by `racket/base'.
+
+- Packaging changes
+  * 0001-Fix-install-path-for-doc-and-collects.patch based on debian
+    patch but correct doc install directory as well, this patch also
+    enable the removal of 0001-pkg-collects-path.patch
+  * For Factory use libpng12 as racket is not compatible with
+    libpng16
+  * Include libtools to BuildRequires, not to depend on bundled software
+    in the source package
+  * Include full URL for the source package
+
+-------------------------------------------------------------------

Old:
----
  0001-pkg-collects-path.patch
  racket-5.3.3-src-unix.tgz

New:
----
  0001-Fix-install-path-for-doc-and-collects.patch
  libpng16-adjustment.patch
  libpng16.patch
  racket-5.3.4-src-unix.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ racket.spec ++++++
--- /var/tmp/diff_new_pack.iqOhhp/_old  2013-05-27 09:58:49.000000000 +0200
+++ /var/tmp/diff_new_pack.iqOhhp/_new  2013-05-27 09:58:49.000000000 +0200
@@ -1,6 +1,7 @@
 #
 # spec file for package racket
 #
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2012, 2013 Togan Muftuoglu [email protected]
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,37 +18,44 @@
 
 
 Name:           racket
-Version:        5.3.3
+Version:        5.3.4
 Release:        0
 Summary:        Scheme implementation with teaching tools
 License:        LGPL-2.1+ and GPL-3.0+
 Group:          Development/Languages/Scheme
 Url:            http://racket-lang.org
-Source0:        %name-%version-src-unix.tgz
+Source0:        
http://mirror.informatik.uni-tuebingen.de/mirror/%name/%version/%name/%name-%version-src-unix.tgz
 Source1:        drracket.desktop
 Source2:        racket-completion.bash
 Source3:        racket-5.3.rpmlintrc
 Source4:        drracket.png
-# PATCH-FIX-OPENSUSE taken from debian package author David Bremner 
<[email protected]>
-Patch0:         0001-pkg-collects-path.patch
+# PATCH-FIX-OPENSUSE based on debian package [email protected] 
+Patch0:         0001-Fix-install-path-for-doc-and-collects.patch
+# PATCH-FIX-UPSTREAM fix for libpng16 Matthew Flatt <[email protected]>
+Patch1:         libpng16.patch
+Patch2:         libpng16-adjustment.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  ImageMagick
 BuildRequires:  chrpath
 BuildRequires:  desktop-file-utils
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
+BuildRequires:  ghostscript-fonts-std
+BuildRequires:  libexpat1
 BuildRequires:  libjpeg-devel
+BuildRequires:  librsvg-devel
+BuildRequires:  libtool
 BuildRequires:  update-desktop-files
-BuildRequires:  ImageMagick
 BuildRequires:  pkgconfig(cairo)
 BuildRequires:  pkgconfig(fontconfig)
 BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(gtk+-2.0)
 BuildRequires:  pkgconfig(ice)
 BuildRequires:  pkgconfig(libffi)
-BuildRequires:  libpng-devel
-BuildRequires:  librsvg-devel
-BuildRequires:  pkgconfig(pango)
+BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(openssl)
+BuildRequires:  pkgconfig(pango)
+BuildRequires:  pkgconfig(pixman-1) >= 0.22.0
 BuildRequires:  pkgconfig(sm)
 BuildRequires:  pkgconfig(sqlite3)
 BuildRequires:  pkgconfig(x11)
@@ -58,11 +66,6 @@
 BuildRequires:  pkgconfig(xrender)
 BuildRequires:  pkgconfig(xt)
 BuildRequires:  pkgconfig(zlib)
-BuildRequires:  pkgconfig(pixman-1) >= 0.22.0
-BuildRequires:  ghostscript-fonts-std
-%if 0%{?suse_version} == 1220
-BuildRequires:  libexpat1
-%endif
 
 # maggia has this
 # Disable the debug package since otherwise a build would create the following
@@ -125,6 +128,8 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 cp %{S:1} src/.
 cp %{S:2} src/.
@@ -176,19 +181,22 @@
 %build
 cd src
 
-%configure  --enable-shared --disable-static --docdir=%_defaultdocdir/%name
-%{__make}  %{?_smp_mflags} VERBOSE=1 STRIP_DEBUG=/bin/true
+%configure  --enable-shared --disable-static --docdir=%_defaultdocdir/%name 
--disable-strip --enable-places --enable-lt="/usr/bin/libtool"
+
+%{__make}  %{?_smp_mflags} VERBOSE=1 
 
 %install
 cd src
 
-export LD_LIBRARY_PATH=%buildroot%{_libdir}
-export PLT_SETUP_OPTIONS="-j 1 "
-
+# export LD_LIBRARY_PATH=%%buildroot%%{_libdir}
+# export PLT_SETUP_OPTIONS="-j 1 "
 # let obs do the stripping
 
-%make_install STRIP_DEBUG=/bin/true
+install -d %buildroot/%_datadir/doc/%name/
 
+# this should not be needed with disable-strip option in the configure
+#%%make_install STRIP_DEBUG=/bin/true 
+%make_install  
 
 # Fix the rpath error.
 chrpath --delete %buildroot%{_bindir}/gracket
@@ -203,10 +211,16 @@
 install -d %buildroot/etc/bash_completion.d/
 install -m 644 %{S:2} %buildroot/etc/bash_completion.d/%name
 
+# somehow some files are installed with mode 666
+find %buildroot%_defaultdocdir/%name  -perm 666 -type f -exec chmod 644 {} \;
+
+chmod -x %buildroot/%_datadir/%name/collects/2htdp/utest/xrun
+
 %suse_update_desktop_file -i drracket
 
 %fdupes -s %buildroot/%_datadir/%name/
 %fdupes -s %buildroot%_bindir/
+%fdupes -s %buildroot/%_defaultdocdir/%name
 
 %post -p /sbin/ldconfig
 
@@ -248,8 +262,8 @@
 %_datadir/%name/collects/net
 %_datadir/%name/collects/openssl
 %_datadir/%name/collects/parser-tools
+%_datadir/%name/collects/pkg
 %_datadir/%name/collects/planet
-%_datadir/%name/collects/planet2
 %_datadir/%name/collects/preprocessor
 %_datadir/%name/collects/profile
 %_datadir/%name/collects/r5rs
@@ -286,10 +300,8 @@
 %{_mandir}/man1/racket*
 %{_mandir}/man1/raco*
 %{_mandir}/man1/setup-plt*
-%_datadir/%name/doc/*
 %dir %_libdir/%name
 %dir %_datadir/%name
-%dir %_datadir/%name/doc
 %dir %_sysconfdir/bash_completion.d/
 %_sysconfdir/bash_completion.d/%name
 
@@ -311,7 +323,6 @@
 %{_libdir}/%{name}/buildinfo
 %dir %_includedir/%name
 
-
 %files -n drracket
 %defattr(-,root,root,-)
 %_bindir/drracket
@@ -377,4 +388,5 @@
 %_datadir/%name/collects/typed
 %_datadir/applications/drracket.desktop
 %_datadir/pixmaps/drracket.png
+
 %changelog

++++++ 0001-Fix-install-path-for-doc-and-collects.patch ++++++
>From 2d3b04e8248d6d97323ef5ac30c48ba9ea967080 Mon Sep 17 00:00:00 2001
From: madanyang <[email protected]>
Date: Fri, 3 May 2013 19:55:08 +0200
Subject: [PATCH] Fix install path for doc and collects

docdir is hardcoded for /usr/share/doc but in openSUSE
/usr/share/doc/packages is used the base for documentations

collectsdir is hardcoded to ${libdir}/collects in the configure
script, but we want to install the collects (which are mostly
arch-independent) into /usr/share, and symlink the small number of
exceptions into /usr/lib/racket/collects/$foo

Signed-off-by: madanyang <[email protected]>
---
 src/configure | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: racket-5.3.4/src/configure
===================================================================
--- racket-5.3.4.orig/src/configure
+++ racket-5.3.4/src/configure
@@ -813,7 +813,7 @@ sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE}'
+docdir='${datarootdir}/doc/packages/${PACKAGE}'
 infodir='${datarootdir}/info'
 htmldir='${docdir}'
 dvidir='${docdir}'
@@ -1317,7 +1317,7 @@ Fine tuning of the installation director
   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   --mandir=DIR           man documentation [DATAROOTDIR/man]
-  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
+  --docdir=DIR           documentation root [DATAROOTDIR/doc/packages/PACKAGE]
 _ACEOF
 
   cat <<\_ACEOF
@@ -2299,9 +2299,9 @@ else
     prefix="${ac_default_prefix}"
   fi
   libpltdir="${libdir}/racket"
-  collectsdir="${libdir}/racket/collects"
+  collectsdir="${datadir}/racket/collects"
   includepltdir="${includedir}/racket"
-  docdir="${datadir}/doc/racket"
+  docdir="${datadir}/doc/packages/racket"
   MAKE_COPYTREE=copytree
   COLLECTS_PATH='${collectsdir}'
   INSTALL_ORIG_TREE=no

++++++ libpng16-adjustment.patch ++++++
>From f97a7cf1778b74e9f38d97db61e91956565180c3 Mon Sep 17 00:00:00 2001
From: Matthew Flatt <[email protected]>
Date: Wed, 15 May 2013 20:38:40 -0600
Subject: [PATCH] libpng adjustment

Keep error if no "libpng" is found.
---
 collects/racket/draw/unsafe/png.rkt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/collects/racket/draw/unsafe/png.rkt 
b/collects/racket/draw/unsafe/png.rkt
index a6b028d..f57de38 100644
--- a/collects/racket/draw/unsafe/png.rkt
+++ b/collects/racket/draw/unsafe/png.rkt
@@ -12,10 +12,9 @@
    ;; variants often have just "libpng", etc.
    (let loop ([alts '(("libpng16" ("16" ""))
                       ("libpng15" ("15" ""))
-                      ("libpng12" ("0" ""))
-                      ("libpng"))])
+                      ("libpng12" ("0" "")))])
      (cond
-      [(null? alts) #f]
+      [(null? alts) (ffi-lib "libpng")]
       [else (apply ffi-lib (car alts)
                    #:fail (lambda ()
                             (loop (cdr alts))))]))]
-- 
1.8.2.3

++++++ libpng16.patch ++++++
>From 5629a6156a5720e51a277849f75b3135cb93664f Mon Sep 17 00:00:00 2001
From: Matthew Flatt <[email protected]>
Date: Wed, 15 May 2013 20:28:05 -0600
Subject: [PATCH] support libpng16

---
 collects/racket/draw/unsafe/png.rkt | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/collects/racket/draw/unsafe/png.rkt 
b/collects/racket/draw/unsafe/png.rkt
index 596fcb4..a6b028d 100644
--- a/collects/racket/draw/unsafe/png.rkt
+++ b/collects/racket/draw/unsafe/png.rkt
@@ -10,11 +10,15 @@
   [(unix)
    ;; Most Linux distros supply "libpng12", while other Unix
    ;; variants often have just "libpng", etc.
-   (ffi-lib "libpng15" '("15" "")
-           #:fail (lambda ()
-                    (ffi-lib "libpng12" '("0" "")
-                             #:fail (lambda ()
-                                      (ffi-lib "libpng")))))]
+   (let loop ([alts '(("libpng16" ("16" ""))
+                      ("libpng15" ("15" ""))
+                      ("libpng12" ("0" ""))
+                      ("libpng"))])
+     (cond
+      [(null? alts) #f]
+      [else (apply ffi-lib (car alts)
+                   #:fail (lambda ()
+                            (loop (cdr alts))))]))]
   [(macosx) (ffi-lib "libpng15.15.dylib")]
   [(windows)
    (ffi-lib "zlib1.dll")
@@ -29,9 +33,12 @@
 ;;  assume that other versions are also ok
 (define PNG_LIBPNG_VER_STRING (string->bytes/latin-1
                                (let ([v (png_access_version_number)])
-                                 (format "~s.~s"
+                                 (format "~s.~s~a"
                                          (quotient v 10000)
-                                         (quotient (remainder v 10000) 100)))))
+                                         (quotient (remainder v 10000) 100)
+                                         (if (zero? (remainder v 100))
+                                             ""
+                                             (format ".~a" (remainder v 
100)))))))
 
 (define _png_structp (_cpointer 'png_structp))
 (define _png_infop (_cpointer 'png_infop))
-- 
1.8.2.3

++++++ racket-5.3.3-src-unix.tgz -> racket-5.3.4-src-unix.tgz ++++++
/work/SRC/openSUSE:Factory/racket/racket-5.3.3-src-unix.tgz 
/work/SRC/openSUSE:Factory/.racket.new/racket-5.3.4-src-unix.tgz differ: char 
5, line 1

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to