File mingw64-babl.spec of Package mingw64-babl
#
# spec file for package mingw64-babl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw64-babl
Version: 0.1.10
Release: 0
Summary: Dynamic Pixel Format Translation Library
License: GPL-3.0+ and LGPL-3.0+
Group: Development/Libraries
Url: http://gegl.org/babl/
Source0: ftp://ftp.gtk.org/pub/babl/0.1/babl-%{version}.tar.bz2
Patch0: babl-0.1.10-values.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cairo-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%description
babl is a dynamic, any to any, pixel format translation library.
It allows converting between different methods of storing pixels known
as pixel formats that have with different bitdepths and other data
representations, color models and component permutations.
A vocabulary to formulate new pixel formats from existing primitives is
provided as well as the framework to add new color models and data
types.
%package -n mingw64-libbabl
Summary: Dynamic Pixel Format Translation Library
Group: Development/Libraries
%description -n mingw64-libbabl
babl is a dynamic, any to any, pixel format translation library.
It allows converting between different methods of storing pixels known
as pixel formats that have with different bitdepths and other data
representations, color models and component permutations.
A vocabulary to formulate new pixel formats from existing primitives is
provided as well as the framework to add new color models and data
types.
%package devel
Summary: Dynamic Pixel Format Translation Library
Group: Development/Libraries
%description devel
babl is a dynamic, any to any, pixel format translation library.
It allows converting between different methods of storing pixels known
as pixel formats that have with different bitdepths and other data
representations, color models and component permutations.
A vocabulary to formulate new pixel formats from existing primitives is
provided as well as the framework to add new color models and data
types.
%_mingw64_debug_package
%prep
%setup -q -n babl-%{version}
%patch -P 0 -p1 -b .values
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_mingw64_libdir}/babl-*/*.dll.a
%files
%defattr(-,root,root)
%{_mingw64_libdir}/babl-0.1/gggl-lies.dll
%{_mingw64_libdir}/babl-0.1/CIE.dll
%{_mingw64_libdir}/babl-0.1/sse-fixups.dll
%{_mingw64_libdir}/babl-0.1/gggl.dll
%{_mingw64_libdir}/babl-0.1/naive-CMYK.dll
%{_mingw64_libdir}/babl-0.1/gegl-fixups.dll
%{_mingw64_libdir}/babl-0.1/gimp-8bit.dll
%{_mingw64_libdir}/babl-0.1/cairo.dll
%{_mingw64_libdir}/babl-0.1/fast-float.dll
%{_mingw64_libdir}/babl-0.1/float.dll
%files -n mingw64-libbabl
%defattr(-,root,root)
%{_mingw64_bindir}/libbabl-0.1-0.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/babl-0.1/babl/babl*.h
%{_mingw64_libdir}/libbabl-0.1.dll.a
%{_mingw64_libdir}/pkgconfig/babl.pc
%changelog