File mingw32-liblastfm.spec of Package mingw32-liblastfm
#
# spec file for package mingw32-liblastfm
#
# 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: mingw32-liblastfm
Version: 1.0.9
Release: 0
#!BuildIgnore: post-build-checks
Summary: A Qt C++ library for the Last.fm webservices
License: GPL-2.0-only
Group: Development/Libraries/C and C++
Url: http://github.com/lastfm/liblastfm
Source0: %{version}.tar.gz
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
# fingerprinting
BuildRequires: mingw32-fftw3-devel
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-libqt4-devel
BuildRequires: mingw32-libqt4-filesystem
BuildRequires: mingw32-libsamplerate-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.
%package devel
Summary: A Qt C++ library for the Last.fm webservices
Group: Development/Libraries/C and C++
%description devel
liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.
%_mingw32_debug_package
%prep
%setup -q -n liblastfm-%{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}/liblastfm.dll
%{_mingw32_bindir}/liblastfm_fingerprint.dll
%files devel
%defattr(-,root,root,-)
%{_mingw32_libdir}/liblastfm.dll.a
%{_mingw32_libdir}/liblastfm_fingerprint.dll.a
%{_mingw32_includedir}/lastfm/
%changelog