fixed pkgconfig file; added debug package; added gcc 11.1.0 patch [release 0.3.0-2mamba;Tue Jun 29 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 05:17:51 +01:00
parent 15c67e056d
commit baa0fca967
2 changed files with 59 additions and 9 deletions

View File

@ -0,0 +1,36 @@
From 43fac545b135bce981b6837aa6cb111ee853f090 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
Date: Thu, 18 Mar 2021 20:51:56 -0400
Subject: [PATCH] Issue #6 - Fix build on gcc 11
- include <limits> 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 <stddef.h>
#include <cstdint>
#include <vector>
+#include <limits>
#include <memory>
#include <libopenraw/cameraids.h>
--
GitLab

View File

@ -1,24 +1,24 @@
Name: libopenraw Name: libopenraw
Version: 0.1.3 Version: 0.3.0
Release: 1mamba Release: 2mamba
Summary: Decode camera RAW files Summary: Decode camera RAW files
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libopenraw.freedesktop.org/wiki URL: https://libopenraw.freedesktop.org/
Source: http://libopenraw.freedesktop.org/download/libopenraw-%{version}.tar.bz2 Source: https://libopenraw.freedesktop.org/download/libopenraw-%{version}.tar.bz2
Patch0: libopenraw-0.3.0-gcc-11.1.0.patch
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libboost-devel BuildRequires: libboost-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %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. 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 %prep
%setup -q %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 %build
%configure %configure
@ -50,7 +55,7 @@ This package contains static libraries and header files need for development.
/sbin/ldconfig /sbin/ldconfig
%{_bindir}/gdk-pixbuf-query-loaders \ %{_bindir}/gdk-pixbuf-query-loaders \
> %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
exit 0 :
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -76,6 +81,15 @@ exit 0
%doc ChangeLog NEWS README TODO %doc ChangeLog NEWS README TODO
%changelog %changelog
* Tue Jun 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-2mamba
- fixed pkgconfig file; added debug package; added gcc 11.1.0 patch
* Sat Dec 19 2020 Automatic Build System <autodist@mambasoft.it> 0.3.0-1mamba
- automatic version update by autodist
* Sat Aug 29 2020 Automatic Build System <autodist@mambasoft.it> 0.2.3-1mamba
- automatic version update by autodist
* Wed May 30 2018 Automatic Build System <autodist@mambasoft.it> 0.1.3-1mamba * Wed May 30 2018 Automatic Build System <autodist@mambasoft.it> 0.1.3-1mamba
- automatic version update by autodist - automatic version update by autodist