File mingw64-liboil.spec of Package mingw64-liboil
#
# spec file for package mingw64-liboil
#
# 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-liboil
Version: 0.3.17
Release: 0
Summary: Library of Optimized Inner Loops
License: BSD and Motorola License (please mark changes)
Group: Development/Libraries/C and C++
Url: http://liboil.freedesktop.org/wiki/
Source0: http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz
Source1000: %{name}-rpmlintrc
Patch0: liboil-win64.patch
#!BuildIgnore: post-build-checks
BuildRequires: glib2-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-glib2-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to floating-point
numbers or multiplying and summing an array of N numbers. Such
functions are candidates for significant optimization using various
techniques, especially by using extended instructions provided by
modern CPUs (Altivec, MMX, SSE, etc.).
%package -n mingw64-liboil-0_3-0
Summary: Library of Optimized Inner Loops
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-liboil-0_3-0
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to floating-point
numbers or multiplying and summing an array of N numbers. Such
functions are candidates for significant optimization using various
techniques, especially by using extended instructions provided by
modern CPUs (Altivec, MMX, SSE, etc.).
Many multimedia applications and libraries already do similar things
internally. The goal of this project is to consolidate some of the code
used by various multimedia projects and also make optimizations easier
to use by a broader range of applications.
%package devel
Summary: Library of Optimized Inner Loops (development files)
Group: Development/Libraries/C and C++
%description devel
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to floating-point
numbers or multiplying and summing an array of N numbers. Such
functions are candidates for significant optimization using various
techniques, especially by using extended instructions provided by
modern CPUs (Altivec, MMX, SSE, etc.).
Many multimedia applications and libraries already do similar things
internally. The goal of this project is to consolidate some of the code
used by various multimedia projects and also make optimizations easier
to use by a broader range of applications.
%_mingw64_debug_package
%prep
%setup -q -n liboil-%{version}
%patch -P 0 -p1 -b .win64
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
echo "as_cv_unaligned_access=yes" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-liboil-0_3-0
%defattr(-,root,root)
%{_mingw64_bindir}/liboil-0.3-0.dll
%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/oil-bugreport.exe
%{_mingw64_includedir}/liboil-0.3/liboil
%{_mingw64_libdir}/liboil-0.3.dll.a
%{_mingw64_libdir}/pkgconfig/liboil-0.3.pc
%{_mingw64_datadir}/gtk-doc/html/liboil
%changelog