[packages/libopenraw] - updated to 0.2.3 (now includes rust code) - added pc,link patches

qboosh qboosh at pld-linux.org
Sun Oct 18 18:02:24 CEST 2020


commit 40dddec88041863dfd8b8829481af6bba9e93c5c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 18 18:02:28 2020 +0200

    - updated to 0.2.3 (now includes rust code)
    - added pc,link patches

 libopenraw-link.patch | 14 ++++++++++++++
 libopenraw-pc.patch   | 11 +++++++++++
 libopenraw.spec       | 30 ++++++++++++++++++++----------
 3 files changed, 45 insertions(+), 10 deletions(-)
---
diff --git a/libopenraw.spec b/libopenraw.spec
index e710426..3c61caf 100644
--- a/libopenraw.spec
+++ b/libopenraw.spec
@@ -1,23 +1,29 @@
 Summary:	A library for decoding RAW images
 Summary(pl.UTF-8):	Biblioteka dekodująca obrazy w formacie RAW
 Name:		libopenraw
-Version:	0.1.3
-Release:	2
+Version:	0.2.3
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.xz
-# Source0-md5:	251bbfc76d1d1017d55b86851d7a6707
+# Source0-md5:	6081f678f8c06216dfb10af24bbfc85f
+Patch0:		%{name}-pc.patch
+Patch1:		%{name}-link.patch
 URL:		https://libopenraw.freedesktop.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	boost-devel >= 1.35.0
+BuildRequires:	cargo
 BuildRequires:	gdk-pixbuf2-devel >= 2.0.0
 BuildRequires:	glib2-devel >= 2.0.0
 BuildRequires:	libjpeg-devel
 BuildRequires:	libstdc++-devel >= 6:4.8
+BuildRequires:	libtool >= 1:1.4.2
 # required for testsuite
 BuildRequires:	libxml2-devel >= 1:2.5.0
 BuildRequires:	pkgconfig
+BuildRequires:	rust
+ExclusiveArch:	%{ix86} %{x8664} x32 aarch64
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %if "%{_lib}" != "lib"
@@ -114,14 +120,18 @@ Statyczna biblioteka libopenrawgnome.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
 	--disable-silent-rules
+
 %{__make}
 
 %install
@@ -157,14 +167,14 @@ fi
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_libdir}/libopenraw.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libopenraw.so.7
+%attr(755,root,root) %ghost %{_libdir}/libopenraw.so.8
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libopenraw.so
-%dir %{_includedir}/libopenraw-0.1
-%{_includedir}/libopenraw-0.1/libopenraw
-%{_pkgconfigdir}/libopenraw-0.1.pc
+%dir %{_includedir}/libopenraw-0.2
+%{_includedir}/libopenraw-0.2/libopenraw
+%{_pkgconfigdir}/libopenraw-0.2.pc
 
 %files static
 %defattr(644,root,root,755)
@@ -173,14 +183,14 @@ fi
 %files gnome
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libopenrawgnome.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libopenrawgnome.so.7
+%attr(755,root,root) %ghost %{_libdir}/libopenrawgnome.so.8
 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
 
 %files gnome-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libopenrawgnome.so
-%{_includedir}/libopenraw-0.1/libopenraw-gnome
-%{_pkgconfigdir}/libopenraw-gnome-0.1.pc
+%{_includedir}/libopenraw-0.2/libopenraw-gnome
+%{_pkgconfigdir}/libopenraw-gnome-0.2.pc
 
 %files gnome-static
 %defattr(644,root,root,755)
diff --git a/libopenraw-link.patch b/libopenraw-link.patch
new file mode 100644
index 0000000..ac1a278
--- /dev/null
+++ b/libopenraw-link.patch
@@ -0,0 +1,14 @@
+--- libopenraw-0.2.3/lib/Makefile.am.orig	2020-08-09 16:37:39.000000000 +0200
++++ libopenraw-0.2.3/lib/Makefile.am	2020-10-14 21:11:18.694481397 +0200
+@@ -105,9 +105,8 @@
+ 	rm -f $(CARGO_TARGET_DIR)/.rustc_info.json
+ 
+ libopenraw_la_LDFLAGS = \
+-	-version-info @LIBOPENRAW_VERSION_INFO@ \
+-	-lpthread -ldl
+-libopenraw_la_LIBADD = -ljpeg $(RUST_LIBADD)
++	-version-info @LIBOPENRAW_VERSION_INFO@
++libopenraw_la_LIBADD = -ljpeg $(RUST_LIBADD) -lpthread -ldl
+ libopenraw_la_DEPENDENCIES = $(RUST_LIB)
+ libopenraw_la_SOURCES = \
+ 	io/io.c io/posix_io.h \
diff --git a/libopenraw-pc.patch b/libopenraw-pc.patch
new file mode 100644
index 0000000..4625195
--- /dev/null
+++ b/libopenraw-pc.patch
@@ -0,0 +1,11 @@
+--- libopenraw-0.2.3/gnome/libopenraw-gnome-0.2.pc.in.orig	2020-08-09 16:37:39.000000000 +0200
++++ libopenraw-0.2.3/gnome/libopenraw-gnome-0.2.pc.in	2020-10-14 20:42:19.367237475 +0200
+@@ -6,7 +6,7 @@
+ 
+ Name: libopenraw-gnome
+ Description: Library for easy decoding of camera RAW files. Gnome support.
+-Requires: libopenraw-0.1
++Requires: libopenraw-0.2
+ Version: @VERSION@
+ Libs: -L${libdir} -lopenraw -lopenrawgnome
+ Cflags: -I${includedir}/@LIBOPENRAW_INCLUDE_BASE@ -I${includedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libopenraw.git/commitdiff/40dddec88041863dfd8b8829481af6bba9e93c5c



More information about the pld-cvs-commit mailing list