- updated to 0.2.3 (now includes rust code)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 18 Oct 2020 16:02:28 +0000 (18:02 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 18 Oct 2020 16:02:28 +0000 (18:02 +0200)
- added pc,link patches

libopenraw-link.patch [new file with mode: 0644]
libopenraw-pc.patch [new file with mode: 0644]
libopenraw.spec

diff --git a/libopenraw-link.patch b/libopenraw-link.patch
new file mode 100644 (file)
index 0000000..ac1a278
--- /dev/null
@@ -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 (file)
index 0000000..4625195
--- /dev/null
@@ -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}
index e7104264c72f5900f5b27f15d88139d67403d772..3c61caf1fe71065e9c4f9ef63378dc92440a2827 100644 (file)
@@ -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)
This page took 0.287117 seconds and 4 git commands to generate.