Hello community,
here is the log from the commit of package lib3ds for openSUSE:Factory checked in at 2014-08-08 10:10:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lib3ds (Old)
and /work/SRC/openSUSE:Factory/.lib3ds.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lib3ds"
Changes:
--------
--- /work/SRC/openSUSE:Factory/lib3ds/lib3ds.changes 2013-01-12 14:51:16.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.lib3ds.new/lib3ds.changes 2014-08-08 10:13:43.000000000 +0200
@@ -1,0 +2,10 @@
+Mon Aug 4 16:43:01 UTC 2014 - tchvatal@suse.com
+
+- Add pkgconfig patch to match Fedora behaviour:
+ * lib3ds-pkgconfig.patch
+- Format with spec-cleaner.
+- Remove Obsoletes from openSUSE-10.2
+- Add patch to fix potential CVE-2010-0280:
+ * lib3ds-mesh.c.patch
+
+-------------------------------------------------------------------
New:
----
lib3ds-mesh.c.patch
lib3ds-pkgconfig.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ lib3ds.spec ++++++
--- /var/tmp/diff_new_pack.Vn2IDa/_old 2014-08-08 10:13:45.000000000 +0200
+++ /var/tmp/diff_new_pack.Vn2IDa/_new 2014-08-08 10:13:45.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package lib3ds
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,32 +16,33 @@
#
+%define libname %{name}-1-3
Name: lib3ds
-Url: http://lib3ds.sourceforge.net
+Version: 1.3.0
+Release: 0
Summary: Import and Export of Autodesk 3DS Files
License: LGPL-2.1+
Group: Development/Libraries/C and C++
-Version: 1.3.0
-Release: 0
-Source0: %name-%version.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Url: http://lib3ds.sourceforge.net
+Source0: %{name}-%{version}.tar.bz2
+Patch0: lib3ds-pkgconfig.patch
+Patch1: lib3ds-mesh.c.patch
BuildRequires: Mesa-devel
BuildRequires: freeglut-devel
BuildRequires: libtool
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
handling 3DS files. Its main goal is to simplify the creation of 3DS
import and export filters.
-%package -n lib3ds-1-3
+%package -n %{libname}
Summary: Import and Export of Autodesk 3DS Files
Group: Development/Libraries/C and C++
Provides: %{name} = %{version}
-#opensuse 10.2
-Obsoletes: %{name} <= 1.2.0
-%description -n lib3ds-1-3
+%description -n %{libname}
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
handling 3DS files. Its main goal is to simplify the creation of 3DS
import and export filters.
@@ -49,8 +50,8 @@
%package devel
Summary: Import and Export of Autodesk 3DS Files
Group: Development/Libraries/C and C++
+Requires: %{libname} = %{version}
Requires: glibc-devel
-Requires: lib3ds-1-3 = %{version}
%description devel
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
@@ -59,22 +60,27 @@
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-autoreconf -fi
-export CFLAGS="$RPM_OPT_FLAGS"
-%configure --enable-shared --disable-static --with-pic
+autoreconf -fvi
+export CFLAGS="%{optflags}"
+%configure \
+ --enable-shared \
+ --disable-static \
+ --with-pic
make %{?_smp_mflags}
%install
-%{__rm} -rf examples/.deps
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
-%{__rm} -f %{buildroot}%{_libdir}/*.la
+rm -rf examples/.deps
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
+find %{buildroot} -type f -name "*.la" -delete -print
%check
-%{__make} check
+make check %{?_smp_mflags}
-%files -n lib3ds-1-3
+%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib3ds-1.so.3*
@@ -89,8 +95,8 @@
%{_libdir}/lib3ds.so
%{_datadir}/aclocal/lib3ds.m4
-%post -n lib3ds-1-3 -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
-%postun -n lib3ds-1-3 -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
%changelog
++++++ lib3ds-mesh.c.patch ++++++
diff -Naur lib3ds-1.3.0.orig/lib3ds/mesh.c lib3ds-1.3.0/lib3ds/mesh.c
--- lib3ds-1.3.0.orig/lib3ds/mesh.c 2007-06-20 19:04:08.000000000 +0200
+++ lib3ds-1.3.0/lib3ds/mesh.c 2010-09-14 06:34:39.987807911 +0200
@@ -87,8 +87,11 @@
faces=lib3ds_io_read_word(io);
for (i=0; i