[mingw-LibRaw] Initial import

Sandro Mani smani at fedoraproject.org
Tue Jan 14 13:29:00 UTC 2014


commit a5d49ed2b070d07f2a1c2142f6d605557ce73c9a
Author: Sandro Mani <manisandro at gmail.com>
Date:   Tue Jan 14 14:28:28 2014 +0100

    Initial import

 .gitignore                   |    3 +
 LibRaw_obsolete-macros.patch |   12 +++
 LibRaw_wsock32.patch         |   14 ++++
 mingw-LibRaw.spec            |  173 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    3 +
 5 files changed, 205 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f943efe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/LibRaw-0.15.4.tar.gz
+/LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz
+/LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz
diff --git a/LibRaw_obsolete-macros.patch b/LibRaw_obsolete-macros.patch
new file mode 100644
index 0000000..bdaac60
--- /dev/null
+++ b/LibRaw_obsolete-macros.patch
@@ -0,0 +1,12 @@
+diff -rupN LibRaw-0.15.4/configure.ac LibRaw-0.15.4-new/configure.ac
+--- LibRaw-0.15.4/configure.ac	2013-08-23 04:55:48.000000000 +0200
++++ LibRaw-0.15.4-new/configure.ac	2014-01-13 17:32:09.891037432 +0100
+@@ -7,7 +7,7 @@ AC_CONFIG_MACRO_DIR([m4])
+ # Tools to use
+ AC_PROG_CXX
+ AC_PROG_CC
+-AC_PROG_LIBTOOL
++LT_INIT
+ AC_ENABLE_SHARED
+ AC_ENABLE_STATIC
+ AC_LIBTOOL_WIN32_DLL
diff --git a/LibRaw_wsock32.patch b/LibRaw_wsock32.patch
new file mode 100644
index 0000000..1cb2a0c
--- /dev/null
+++ b/LibRaw_wsock32.patch
@@ -0,0 +1,14 @@
+diff -rupN LibRaw-0.15.4/Makefile.am LibRaw-0.15.4-new/Makefile.am
+--- LibRaw-0.15.4/Makefile.am	2013-08-23 04:55:48.000000000 +0200
++++ LibRaw-0.15.4-new/Makefile.am	2013-12-28 00:56:56.418284134 +0100
+@@ -41,8 +41,8 @@ lib_libraw_r_a_CFLAGS = -pthread -w
+ lib_libraw_la_SOURCES = $(lib_libraw_a_SOURCES)
+ lib_libraw_r_la_SOURCES = $(lib_libraw_a_SOURCES)
+ 
+-lib_libraw_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER)
+-lib_libraw_r_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER)
++lib_libraw_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER) -lwsock32
++lib_libraw_r_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER) -lwsock32
+ 
+ 
+ # Sample binaries
diff --git a/mingw-LibRaw.spec b/mingw-LibRaw.spec
new file mode 100644
index 0000000..1d0edab
--- /dev/null
+++ b/mingw-LibRaw.spec
@@ -0,0 +1,173 @@
+%{?mingw_package_header}
+
+%global pkgname LibRaw
+
+Name:          mingw-%{pkgname}
+Version:       0.15.4
+Release:       4%{?dist}
+Summary:       Library for reading RAW files obtained from digital photo cameras
+
+# LibRaw base package is dual licensed (actually triple licensed LGPLv2+, CDDL, LibRaw Software License)
+# LibRaw-%%{version}/internal/dcb_demosaicing.c is BSD (3 clause)
+# LibRaw-demosaic-pack-GPL2 is GPLv2+
+# LibRaw-demosaic-pack-GLP3 is GPLv3+
+License:       (LGPLv2+ or CDDL) and GPLv2+ and GPLv3+ and BSD
+BuildArch:     noarch
+URL:           http://www.libraw.org
+Source0:       http://www.libraw.org/data/%{pkgname}-%{version}.tar.gz
+Source1:       http://www.libraw.org/data/%{pkgname}-demosaic-pack-GPL2-%{version}.tar.gz
+Source2:       http://www.libraw.org/data/%{pkgname}-demosaic-pack-GPL3-%{version}.tar.gz
+# Add missing -lwsock32
+Patch0:        LibRaw_wsock32.patch
+# Replace obsolete configure.ac macros
+Patch1:        LibRaw_obsolete-macros.patch
+
+BuildRequires: autoconf automake libtool
+
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw32-gcc-c++
+BuildRequires: mingw32-lcms2
+BuildRequires: mingw32-jasper
+
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-gcc-c++
+BuildRequires: mingw64-lcms2
+BuildRequires: mingw64-jasper
+
+
+%description
+MinGW Windows %{pkgname} library.
+
+
+%package -n mingw32-%{pkgname}
+Summary:       MinGW Windows %{pkgname} library
+
+%description -n mingw32-%{pkgname}
+%{summary}.
+
+
+%package -n mingw32-%{pkgname}-static
+Summary:       Static version of the MinGW Windows %{pkgname} library
+Requires:      mingw32-%{pkgname} = %{version}-%{release}
+
+%description -n mingw32-%{pkgname}-static
+%{summary}.
+
+
+%package -n mingw32-%{pkgname}-tools
+Summary:       Tools for the MinGW Windows %{pkgname} library
+Requires:      mingw32-%{pkgname} = %{version}-%{release}
+
+%description -n mingw32-%{pkgname}-tools
+%{summary}.
+
+
+%package -n mingw64-%{pkgname}
+Summary:       MinGW Windows %{pkgname} library
+
+%description -n mingw64-%{pkgname}
+%{summary}.
+
+
+%package -n mingw64-%{pkgname}-static
+Summary:       Static version of the MinGW Windows %{pkgname} library
+Requires:      mingw64-%{pkgname} = %{version}-%{release}
+
+%description -n mingw64-%{pkgname}-static
+%{summary}.
+
+
+%package -n mingw64-%{pkgname}-tools
+Summary:       Tools for the MinGW Windows %{pkgname} library
+Requires:      mingw64-%{pkgname} = %{version}-%{release}
+
+%description -n mingw64-%{pkgname}-tools
+%{summary}.
+
+
+%{?mingw_debug_package}
+
+
+%prep
+%setup -q -a1 -a2 -n %{pkgname}-%{version}
+%patch0 -p1
+%patch1 -p1
+
+# Rename licenses to avoid name conflicts in %%doc
+mv LibRaw-demosaic-pack-GPL2-%{version}/LICENSE.txt LibRaw-demosaic-pack-GPL2-%{version}/LICENSE.GPL2
+mv LibRaw-demosaic-pack-GPL3-%{version}/LICENSE.txt LibRaw-demosaic-pack-GPL3-%{version}/LICENSE.GPL3
+
+# Remove executable bit on license files
+chmod -x LICENSE.CDDL
+chmod -x LICENSE.LGPL
+
+
+%build
+autoreconf -ifv
+%mingw_configure --enable-jasper --enable-lcms --enable-demosaic-pack-gpl2 --enable-demosaic-pack-gpl3 CPPFLAGS=-DLIBRAW_NODLL
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make install DESTDIR=%{buildroot}
+
+# Delete *.la files
+find %{buildroot} -name '*.la' -delete
+
+# Install doc through %%doc
+rm -rf %{buildroot}%{mingw32_datadir}
+rm -rf %{buildroot}%{mingw64_datadir}
+
+
+%files -n mingw32-%{pkgname}
+%doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
+%doc LibRaw-demosaic-pack-GPL2-%{version}/LICENSE.GPL2
+%doc LibRaw-demosaic-pack-GPL3-%{version}/LICENSE.GPL3
+%{mingw32_bindir}/libraw-9.dll
+%{mingw32_bindir}/libraw_r-9.dll
+%{mingw32_includedir}/libraw/
+%{mingw32_libdir}/libraw.dll.a
+%{mingw32_libdir}/libraw_r.dll.a
+%{mingw32_libdir}/pkgconfig/libraw.pc
+%{mingw32_libdir}/pkgconfig/libraw_r.pc
+
+%files -n mingw32-%{pkgname}-static
+%{mingw32_libdir}/libraw_r.a
+%{mingw32_libdir}/libraw.a
+
+%files -n mingw32-%{pkgname}-tools
+%{mingw32_bindir}/*.exe
+
+%files -n mingw64-%{pkgname}
+%doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
+%doc LibRaw-demosaic-pack-GPL2-%{version}/LICENSE.GPL2
+%doc LibRaw-demosaic-pack-GPL3-%{version}/LICENSE.GPL3
+%{mingw64_bindir}/libraw-9.dll
+%{mingw64_bindir}/libraw_r-9.dll
+%{mingw64_includedir}/libraw/
+%{mingw64_libdir}/libraw.dll.a
+%{mingw64_libdir}/libraw_r.dll.a
+%{mingw64_libdir}/pkgconfig/libraw.pc
+%{mingw64_libdir}/pkgconfig/libraw_r.pc
+
+%files -n mingw64-%{pkgname}-static
+%{mingw64_libdir}/libraw_r.a
+%{mingw64_libdir}/libraw.a
+
+%files -n mingw64-%{pkgname}-tools
+%{mingw64_bindir}/*.exe
+
+
+%changelog
+* Tue Jan 14 2014 Sandro Mani <manisandro at gmail.com> - 0.15.4-4
+- Actually remove executable permissions from the problematic LICENSE files
+
+* Mon Jan 13 2014 Sandro Mani <manisandro at gmail.com> - 0.15.4-3
+- Add patch to replace obsolete configure.ac macros
+- Remove executable permissions from LICENSE files
+
+* Wed Jan 08 2014 Sandro Mani <manisandro at gmail.com> - 0.15.4-2
+- Fix license
+
+* Sat Dec 28 2013 Sandro Mani <manisandro at gmail.com> - 0.15.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..638954b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,3 @@
+358fb3795ab53e1d30d5a61555f1eb17  LibRaw-0.15.4.tar.gz
+29fbddf1bf7e92f86d1d6f4927c3feb7  LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz
+a7d4e9fb4688d956768c21fcafbcef00  LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz


More information about the scm-commits mailing list