From baa0fca9675943109d27439a1b49800bc7c9ee55 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:17:51 +0100 Subject: [PATCH] fixed pkgconfig file; added debug package; added gcc 11.1.0 patch [release 0.3.0-2mamba;Tue Jun 29 2021] --- libopenraw-0.3.0-gcc-11.1.0.patch | 36 +++++++++++++++++++++++++++++++ libopenraw.spec | 32 +++++++++++++++++++-------- 2 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 libopenraw-0.3.0-gcc-11.1.0.patch diff --git a/libopenraw-0.3.0-gcc-11.1.0.patch b/libopenraw-0.3.0-gcc-11.1.0.patch new file mode 100644 index 0000000..6119774 --- /dev/null +++ b/libopenraw-0.3.0-gcc-11.1.0.patch @@ -0,0 +1,36 @@ +From 43fac545b135bce981b6837aa6cb111ee853f090 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= +Date: Thu, 18 Mar 2021 20:51:56 -0400 +Subject: [PATCH] Issue #6 - Fix build on gcc 11 + +- include where needed + +https://gitlab.freedesktop.org/libopenraw/libopenraw/-/issues/6 +--- + lib/cr2file.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/cr2file.cpp b/lib/cr2file.cpp +index e0a2d7e..993a750 100644 +--- a/lib/cr2file.cpp ++++ b/lib/cr2file.cpp +@@ -2,7 +2,7 @@ + /* + * libopenraw - cr2file.cpp + * +- * Copyright (C) 2006-2020 Hubert Figuière ++ * Copyright (C) 2006-2021 Hubert Figuière + * Copyright (C) 2008 Novell, Inc. + * + * This library is free software: you can redistribute it and/or +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + + #include +-- +GitLab + diff --git a/libopenraw.spec b/libopenraw.spec index 84b097c..775a223 100644 --- a/libopenraw.spec +++ b/libopenraw.spec @@ -1,24 +1,24 @@ Name: libopenraw -Version: 0.1.3 -Release: 1mamba +Version: 0.3.0 +Release: 2mamba Summary: Decode camera RAW files Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System -URL: http://libopenraw.freedesktop.org/wiki -Source: http://libopenraw.freedesktop.org/download/libopenraw-%{version}.tar.bz2 +Packager: Silvan Calarco +URL: https://libopenraw.freedesktop.org/ +Source: https://libopenraw.freedesktop.org/download/libopenraw-%{version}.tar.bz2 +Patch0: libopenraw-0.3.0-gcc-11.1.0.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel -BuildRequires: libgtk-devel BuildRequires: libjpeg-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: libboost-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding. One of the main reason is that dcraw is not suited for easy integration into applications, and there is a need for an easy to use API to build free software digital image processing application. @@ -30,10 +30,15 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding. One of the main reason is that dcraw is not suited for easy integration into applications, and there is a need for an easy to use API to build free software digital image processing application. -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. + +%debug_package %prep %setup -q +%patch0 -p1 +# Fix libopenraw dependency in -gnome pc file +sed -e 's|libopenraw-0.1|libopenraw-0.3|' -i gnome/libopenraw-gnome-0.3.pc.in %build %configure @@ -50,7 +55,7 @@ This package contains static libraries and header files need for development. /sbin/ldconfig %{_bindir}/gdk-pixbuf-query-loaders \ > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders -exit 0 +: %postun -p /sbin/ldconfig @@ -76,6 +81,15 @@ exit 0 %doc ChangeLog NEWS README TODO %changelog +* Tue Jun 29 2021 Silvan Calarco 0.3.0-2mamba +- fixed pkgconfig file; added debug package; added gcc 11.1.0 patch + +* Sat Dec 19 2020 Automatic Build System 0.3.0-1mamba +- automatic version update by autodist + +* Sat Aug 29 2020 Automatic Build System 0.2.3-1mamba +- automatic version update by autodist + * Wed May 30 2018 Automatic Build System 0.1.3-1mamba - automatic version update by autodist