[packages/libraw] - up to 0.20.2

mrozowik mrozowik at pld-linux.org
Tue Feb 1 00:24:14 CET 2022


commit 42b66bebe970373d21ff3f48ad747857067417e7
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date:   Mon Jan 31 23:24:04 2022 +0000

    - up to 0.20.2

 libraw-zlib.patch | 47 -----------------------------------------------
 libraw.spec       | 51 +++++++++------------------------------------------
 2 files changed, 9 insertions(+), 89 deletions(-)
---
diff --git a/libraw.spec b/libraw.spec
index bc7a7d6..661704e 100644
--- a/libraw.spec
+++ b/libraw.spec
@@ -1,37 +1,18 @@
 #
 # Conditional build:
 %bcond_without	openmp	# OpenMP support
-%bcond_without	gpl2	# GPL v2+ demosaic pack
-%bcond_without	gpl3	# GPL v3+ demosaic pack
 %bcond_without	zlib	# ZLIB for deflated DNG format support
 #
-%if %{without gpl2}
-%undefine	gpl3
-%endif
 Summary:	LibRaw - a library for reading RAW files
 Summary(pl.UTF-8):	LibRaw - biblioteka do odczytu plików RAW
 Name:		libraw
-Version:	0.18.13
-%define	demosaic_ver	0.18.8
+Version:	0.20.2
 Release:	1
-%if %{with gpl3}
-License:	GPL v3+
-%else
-%if %{with gpl2}
-License:	GPL v2+
-%else
 License:	LGPL v2.1 or CDDL v1.0
-%endif
-%endif
 Group:		Libraries
 #Source0Download: http://www.libraw.org/download#stable
 Source0:	https://www.libraw.org/data/LibRaw-%{version}.tar.gz
-# Source0-md5:	b7b65b3f05f4b4b570b07799b1a5a467
-Source1:	https://www.libraw.org/data/LibRaw-demosaic-pack-GPL2-%{demosaic_ver}.tar.gz
-# Source1-md5:	68b821b4a72054d0c0908e4d7b16fcfe
-Source2:	https://www.libraw.org/data/LibRaw-demosaic-pack-GPL3-%{demosaic_ver}.tar.gz
-# Source2-md5:	260cd142472027c8f7710a1a4edc9975
-Patch0:		%{name}-zlib.patch
+# Source0-md5:	2e5bedb59ea433e2d2ef6bbbe5253179
 URL:		https://www.libraw.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -81,7 +62,7 @@ Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	jasper-devel
 Requires:	lcms2-devel >= 2
-%{?with_openmp:Requires:	libgomp-devel}
+%{?with_openmp:Requires: libgomp-devel}
 Requires:	libjpeg-devel >= 8
 Requires:	libstdc++-devel
 %{?with_zlib:Requires:	zlib-devel >= 1.2.3.3}
@@ -105,19 +86,7 @@ Static LibRaw library.
 Statyczna biblioteka LibRaw.
 
 %prep
-%setup -q -n LibRaw-%{version} %{?with_gpl2:-a1} %{?with_gpl3:-a2}
-%patch0 -p1
-
-%if %{with gpl2}
-for f in LibRaw-demosaic-pack-GPL2-%{demosaic_ver}/{COPYRIGHT,Changelog,README} ; do
-	cp -p $f $(basename $f).demosaic-pack-GPL2
-done
-%endif
-%if %{with gpl3}
-for f in LibRaw-demosaic-pack-GPL3-%{demosaic_ver}/{COPYRIGHT,Changelog,README} ; do
-	cp -p $f $(basename $f).demosaic-pack-GPL3
-done
-%endif
+%setup -q -n LibRaw-%{version}
 
 %build
 %{__libtoolize}
@@ -125,13 +94,10 @@ done
 %{__autoconf}
 %{__automake}
 %configure \
-	--enable-demosaic-pack-gpl2=%{?with_gpl2:LibRaw-demosaic-pack-GPL2-%{demosaic_ver}}%{!?with_gpl2:no} \
-	--enable-demosaic-pack-gpl3=%{?with_gpl3:LibRaw-demosaic-pack-GPL3-%{demosaic_ver}}%{!?with_gpl3:no} \
 	%{!?with_openmp:--disable-openmp} \
 	%{?with_zlib:--enable-zlib}
 
-%{__make} \
-	%{?with_openmp:lib_libraw_la_LIBADD=-lgomp lib_libraw_r_la_LIBADD=-lgomp}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -153,11 +119,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYRIGHT Changelog.txt README README.demosaic-packs %{?with_gpl2:*.demosaic-pack-GPL2} %{?with_gpl3:*.demosaic-pack-GPL3}
+%doc COPYRIGHT Changelog.txt README.md LICENSE.CDDL LICENSE.LGPL
 %attr(755,root,root) %{_libdir}/libraw.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libraw.so.16
+%attr(755,root,root) %ghost %{_libdir}/libraw.so.20
 %attr(755,root,root) %{_libdir}/libraw_r.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libraw_r.so.16
+%attr(755,root,root) %ghost %{_libdir}/libraw_r.so.20
 
 %files samples
 %defattr(644,root,root,755)
@@ -169,6 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/multirender_test
 %attr(755,root,root) %{_bindir}/postprocessing_benchmark
 %attr(755,root,root) %{_bindir}/raw-identify
+%attr(755,root,root) %{_bindir}/rawtextdump
 %attr(755,root,root) %{_bindir}/simple_dcraw
 %attr(755,root,root) %{_bindir}/unprocessed_raw
 
diff --git a/libraw-zlib.patch b/libraw-zlib.patch
deleted file mode 100644
index e2932e3..0000000
--- a/libraw-zlib.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- LibRaw-0.18.1/configure.ac.orig	2017-02-12 09:07:54.000000000 +0100
-+++ LibRaw-0.18.1/configure.ac	2017-02-25 11:11:23.817486333 +0100
-@@ -84,7 +84,7 @@
- fi
- 
- 
--
-+PACKAGE_REQUIRES=
- # check if we want LCMS support
- AC_ARG_ENABLE([lcms],
- 	[  --enable-lcms    Enable LCMS support],
-@@ -98,18 +98,33 @@
- 	PKG_CHECK_MODULES([LCMS2],[lcms2],[
- 		CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS -DUSE_LCMS2"
- 		LIBS="$LIBS $LCMS2_LIBS"
--	        AC_SUBST([PACKAGE_REQUIRES],[lcms2])
-+	        PACKAGE_REQUIRES="lcms2"
- 	],[
- 	PKG_CHECK_MODULES([LCMS],[lcms],[
- 		CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS -DUSE_LCMS"
- 		LIBS="$LIBS $LCMS_LIBS"
--	        AC_SUBST([PACKAGE_REQUIRES],[lcms])
-+	        PACKAGE_REQUIRES="lcms"
- 	],[
- 		AC_MSG_WARN([LCMS support cannot be enabled])
- 	])
- 	])
- fi
- 
-+AC_ARG_ENABLE([zlib],
-+	[  --enable-zlib    Enable ZLIB for deflated DNG support])
-+
-+if test x$enable_zlib = xyes; then
-+	PKG_CHECK_MODULES([ZLIB],[zlib],[
-+		CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS -DUSE_ZLIB"
-+		LIBS="$LIBS $ZLIB_LIBS"
-+		PACKAGE_REQUIRES="$PACKAGE_REQUIRES zlib"
-+	],[
-+		AC_MSG_ERROR([ZLIB support cannot be enabled])
-+	])
-+fi
-+
-+AC_SUBST([PACKAGE_REQUIRES])
-+
- # check if we want build examples
- AC_ARG_ENABLE([examples],
- 	[  --enable-examples    Enable building of examples],
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libraw.git/commitdiff/42b66bebe970373d21ff3f48ad747857067417e7



More information about the pld-cvs-commit mailing list