File liblastfm.spec of Package liblastfm
#
# spec file for package liblastfm (Version 0.3.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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/
#
# norootforbuild
BuildRequires: fdupes fftw3-devel libsamplerate-devel ruby
BuildRequires: libqt4-devel >= 4.4.0
Name: liblastfm
Summary: A Qt C++ Library for the Last.fm Webservices
Version: 0.3.0
Release: 2
License: GPLv3
Group: System/Libraries
Source0: liblastfm-%{version}.tar.bz2
Patch0: liblastfm-%{version}-qmake.patch
Patch1: liblastfm-sort.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: yes
Requires: ruby
Url: http://github.com/mxcl/liblastfm
%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.
Authors:
-------
Max Howell
Jono Cole
Doug Mansell
%package -n liblastfm0
License: GPLv3
Group: System/Libraries
Summary: A Qt C++ Library for the Last.fm Webservices
%description -n liblastfm0
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.
Authors:
-------
Max Howell
Jono Cole
Doug Mansell
%package -n liblastfm-devel
License: GPLv3
Group: Development/Libraries/C and C++
Summary: Development Files for the Last.fm Webservices Qt C++ Library
Requires: liblastfm0 = %{version}
%description -n liblastfm-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.
Development files.
Authors:
-------
Max Howell
Jono Cole
Doug Mansell
%prep
%setup -qn liblastfm-%{version}
%patch0
%patch1
%build
LIB=%{_lib} ; export LIB
./configure --prefix %{_prefix} --release
%{__make} %{?jobs:-j %{jobs}} VERBOSE=1
%install
%{__make} DESTDIR=%buildroot install
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n liblastfm0 -p /sbin/ldconfig
%postun -n liblastfm0 -p /sbin/ldconfig
%files -n liblastfm0
%defattr(644,root,root,755)
%doc COPYING README
%{_libdir}/liblastfm.so.*
%{_libdir}/liblastfm_fingerprint.so.*
%files -n liblastfm-devel
%defattr(644,root,root,755)
%{_libdir}/liblastfm_fingerprint.so
%{_libdir}/liblastfm.so
%{_includedir}/lastfm.h
%{_includedir}/lastfm
%changelog