File mingw64-liblastfm.spec of Package mingw64-liblastfm
#
# spec file for package mingw64-liblastfm
#
# Copyright (c) 2013 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 __strip %{_mingw64_strip}
%define __objdump %{_mingw64_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw64_findrequires}
%define __find_provides %{_mingw64_findprovides}
%define __os_install_post %{_mingw64_debug_install_post} %{_mingw64_install_post}
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: cmake
BuildRequires: mingw64-libqt4-devel
BuildRequires: mingw64-libqt4-filesystem
# fingerprinting
BuildRequires: mingw64-fftw3-devel
BuildRequires: mingw64-libsamplerate-devel
Name: mingw64-liblastfm
Version: 1.0.2
Release: 0
Source0: liblastfm-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://github.com/davidsansome/liblastfm
BuildArch: noarch
#!BuildIgnore: post-build-checks
Summary: A Qt C++ library for the Last.fm webservices
License: GPL-2.0
Group: Development/Libraries/C and C++
%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
%clean
rm -rf %{buildroot}
%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