File mingw64-liblastfm.spec of Package mingw64-liblastfm
#
# spec file for package mingw64-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: mingw64-liblastfm
Version: 1.0.2
Release: 0
#!BuildIgnore: post-build-checks
Summary: A Qt C++ library for the Last.fm webservices
License: GPL-2.0
Group: Development/Libraries/C and C++
Url: http://github.com/davidsansome/liblastfm
Source0: liblastfm-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
# fingerprinting
BuildRequires: mingw64-fftw3-devel
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libqt4-devel
BuildRequires: mingw64-libqt4-filesystem
BuildRequires: mingw64-libsamplerate-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{_mingw64_package_header_debug}
%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.
%_mingw64_debug_package
%prep
%setup -q -n liblastfm-%{version}
%build
rm -rf CMakeCache.txt
%{_mingw64_cmake_qt4}
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/liblastfm.dll
%{_mingw64_bindir}/liblastfm_fingerprint.dll
%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/liblastfm.dll.a
%{_mingw64_libdir}/liblastfm_fingerprint.dll.a
%{_mingw64_includedir}/lastfm/
%changelog