Accepting request 110150 from graphics
submiting without old patch OBS-URL: https://build.opensuse.org/request/show/110150 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libraw?expand=0&rev=22
This commit is contained in:
commit
d661a04d5f
12
libraw-gcc47.patch
Normal file
12
libraw-gcc47.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: LibRaw-0.13.5/samples/dcraw_emu.cpp
|
||||||
|
===================================================================
|
||||||
|
--- LibRaw-0.13.5.orig/samples/dcraw_emu.cpp
|
||||||
|
+++ LibRaw-0.13.5/samples/dcraw_emu.cpp
|
||||||
|
@@ -27,6 +27,7 @@ it under the terms of the one of three l
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <unistd.h> // For getpagesize, read and close
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <math.h>
|
@ -1,15 +0,0 @@
|
|||||||
--- configure.ac
|
|
||||||
+++ configure.ac
|
|
||||||
@@ -44,9 +44,9 @@
|
|
||||||
esac],[lcms=true])
|
|
||||||
|
|
||||||
if test x$lcms = xtrue; then
|
|
||||||
- PKG_CHECK_MODULES([LCMS2],[lcms2],[
|
|
||||||
- CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS -DUSE_LCMS2"
|
|
||||||
- LDFLAGS="$LDFLAGS $LCMS2_LIBS"
|
|
||||||
+ PKG_CHECK_MODULES([LCMS],[lcms2],[
|
|
||||||
+ CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS -DUSE_LCMS2"
|
|
||||||
+ LDFLAGS="$LDFLAGS $LCMS_LIBS"
|
|
||||||
AC_SUBST([PACKAGE_REQUIRES],[lcms2])
|
|
||||||
],[
|
|
||||||
PKG_CHECK_MODULES([LCMS],[lcms],[
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 14 19:29:33 UTC 2012 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Add libraw-gcc47.patch: Fix build with gcc 4.7.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 24 11:53:14 UTC 2011 - idonmez@novell.com
|
Wed Aug 24 11:53:14 UTC 2011 - idonmez@novell.com
|
||||||
|
|
||||||
|
15
libraw.spec
15
libraw.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libraw
|
# spec file for package libraw
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,12 +20,14 @@
|
|||||||
|
|
||||||
Name: libraw
|
Name: libraw
|
||||||
Version: 0.13.5
|
Version: 0.13.5
|
||||||
Release: 3
|
Release: 0
|
||||||
License: CDDL-1.0 or LGPL-2.1
|
|
||||||
Summary: Library for reading RAW files obtained from digital photo cameras
|
Summary: Library for reading RAW files obtained from digital photo cameras
|
||||||
Url: http://www.libraw.org/
|
License: CDDL-1.0 or LGPL-2.1
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Url: http://www.libraw.org/
|
||||||
Source: http://www.libraw.org/data/%{tar_name}-%{version}.tar.gz
|
Source: http://www.libraw.org/data/%{tar_name}-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM libraw-gcc47.patch dimstar@opensuse.org -- Fix build with gcc 4.7.
|
||||||
|
Patch0: libraw-gcc47.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
@ -40,7 +42,6 @@ LibRaw is based on the source codes of the dcraw utility, where part of
|
|||||||
drawbacks have already been eliminated and part will be fixed in future.
|
drawbacks have already been eliminated and part will be fixed in future.
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
License: CDDL-1.0 or LGPL-2.1
|
|
||||||
Summary: Library for reading RAW files obtained from digital photo cameras -- Tools
|
Summary: Library for reading RAW files obtained from digital photo cameras -- Tools
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
@ -52,7 +53,6 @@ LibRaw is based on the source codes of the dcraw utility, where part of
|
|||||||
drawbacks have already been eliminated and part will be fixed in future.
|
drawbacks have already been eliminated and part will be fixed in future.
|
||||||
|
|
||||||
%package -n libraw2
|
%package -n libraw2
|
||||||
License: CDDL-1.0 or LGPL-2.1
|
|
||||||
Summary: Library for reading RAW files obtained from digital photo cameras
|
Summary: Library for reading RAW files obtained from digital photo cameras
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
@ -64,7 +64,6 @@ LibRaw is based on the source codes of the dcraw utility, where part of
|
|||||||
drawbacks have already been eliminated and part will be fixed in future.
|
drawbacks have already been eliminated and part will be fixed in future.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: CDDL-1.0 or LGPL-2.1
|
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: libraw2 = %{version}
|
Requires: libraw2 = %{version}
|
||||||
@ -77,7 +76,6 @@ LibRaw is based on the source codes of the dcraw utility, where part of
|
|||||||
drawbacks have already been eliminated and part will be fixed in future.
|
drawbacks have already been eliminated and part will be fixed in future.
|
||||||
|
|
||||||
%package devel-static
|
%package devel-static
|
||||||
License: CDDL-1.0 or LGPL-2.1
|
|
||||||
Summary: Library for reading RAW files obtained from digital photo cameras
|
Summary: Library for reading RAW files obtained from digital photo cameras
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
@ -94,6 +92,7 @@ against LibRaw. LibRaw does not provide dynamic libraries.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{tar_name}-%{version}
|
%setup -q -n %{tar_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CXXFLAGS="%{optflags} -fPIC" \
|
CXXFLAGS="%{optflags} -fPIC" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user