File liblastfm-qt5.spec of Package liblastfm-qt5
#
# spec file for package liblastfm-qt5
#
# Copyright (c) 2016 SUSE LINUX 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: liblastfm-qt5
Version: 1.0.9+20150206
Release: 0
Summary: A Qt C++ Library for the Last.fm Webservices
License: GPL-3.0+
Group: System/Libraries
Url: https://github.com/lastfm/liblastfm/
Source: liblastfm-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: cmake
BuildRequires: fftw3-devel
BuildRequires: libsamplerate-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Xml)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n liblastfm5-1
Summary: A Qt C++ Library for the Last.fm Webservices
Group: System/Libraries
%description -n liblastfm5-1
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 -n liblastfm_fingerprint5-1
Summary: A Qt C++ Library for the Last.fm Webservices
Group: System/Libraries
%description -n liblastfm_fingerprint5-1
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: Development Files for the Last.fm Webservices
Group: Development/Libraries/C and C++
Requires: liblastfm5-1 = %{version}
Requires: liblastfm_fingerprint5-1 = %{version}
Requires: pkgconfig
Requires: pkgconfig(Qt5Core)
Requires: pkgconfig(Qt5DBus)
Requires: pkgconfig(Qt5Network)
Requires: pkgconfig(Qt5Xml)
%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.
This package contains development files for liblastfm.
%prep
%setup -q -n liblastfm-%{version}
%build
%cmake \
-DBUILD_WITH_QT4=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
%install
%cmake_install
%post -n liblastfm5-1 -p /sbin/ldconfig
%postun -n liblastfm5-1 -p /sbin/ldconfig
%post -n liblastfm_fingerprint5-1 -p /sbin/ldconfig
%postun -n liblastfm_fingerprint5-1 -p /sbin/ldconfig
%files -n liblastfm5-1
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/liblastfm5.so.*
%files -n liblastfm_fingerprint5-1
%defattr(-,root,root,-)
%{_libdir}/liblastfm_fingerprint5.so.*
%files devel
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/liblastfm5.so
%{_libdir}/liblastfm_fingerprint5.so
%{_includedir}/lastfm5/
%changelog