File mingw32-libechonest.spec of Package mingw32-libechonest

#
# spec file for package mingw32-libechonest
#
# 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/
#


%define _basename libechonest
Name:           mingw32-%{_basename}
Version:        2.3.0
Release:        0
#!BuildIgnore: post-build-checks
Summary:        Qt library for communicating with The Echo Nest
License:        LGPL-2.0-only 
Group:          Development/Libraries/C and C++
Url:            https://projects.kde.org/libechonest
Source0:        http://files.lfranchi.com/%{_basename}-%{version}.tar.bz2
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-libqjson-devel
BuildRequires:  mingw32-libqt4-devel
BuildRequires:  mingw32-libqt4-filesystem

# HACK: upstream bug, will be removed in next release
BuildRequires:  mingw32-boost-devel

%_mingw32_package_header_debug
BuildArch:      noarch

%description
It currently supports almost all of the features of the Echo Nest API, including all the API functions.

%package devel
Summary:        Qt library for communicating with The Echo Nest
Group:          Development/Libraries/C and C++

%description devel
It currently supports almost all of the features of the Echo Nest API, including all the API functions.

%_mingw32_debug_package

%prep
%setup -q -n %{_basename}-%{version}

%build
rm -rf CMakeCache.txt
MINGW32_CXXFLAGS="%_mingw32_cxxflags -std=c++11"
%{_mingw32_cmake_qt4}
%{_mingw32_cmake_build}

%install
%{_mingw32_cmake_install}

%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/libechonest.dll

%files devel
%defattr(-,root,root,-)
%{_mingw32_libdir}/libechonest.dll.a
%{_mingw32_includedir}/echonest/

%changelog
openSUSE Build Service is sponsored by