File clementine.spec of Package clementine
#
# spec file for package clementine
#
# Copyright (c) 2012 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 kdepack 0
Name: clementine
Version: 1.1.0
Release: 1
Summary: A cross-platform Music Player based on Amarok 1
License: GPL-3.0+
Group: Productivity/Multimedia/Sound/Players
Url: http://code.google.com/p/clementine-player/
Source: %{name}-%{version}.tar.gz
# http://clementine-player.googlecode.com/files/
# PATCH-FIX-OPENSUSE clementine-desktop-fix.patch fisiu@opensuse.org -- remove unity related shortcuts
Patch0: clementine-desktop-fix.patch
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext-tools
BuildRequires: git
BuildRequires: help2man
BuildRequires: hicolor-icon-theme
BuildRequires: libkde4-devel
BuildRequires: liblastfm-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(libgpod-1.0)
# No gnutls means no gloox with license problem (GPL-2.0 only)
#BuildRequires: pkgconfig(gnutls)
%if 0%{?suse_version} > 1120
BuildRequires: pkgconfig(libimobiledevice-1.0)
BuildRequires: pkgconfig(libplist)
BuildRequires: pkgconfig(libusbmuxd)
%if 0%{?suse_version} <= 1210
BuildRequires: libprotobuf-lite6
%endif
%endif
# Enabled protobuf, now required in git version.
BuildRequires: protobuf-devel
BuildRequires: pkgconfig(QJson)
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtSql)
BuildRequires: pkgconfig(QtWebKit)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(qca2)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(taglib)
# gnome indicator - while we don't have it in OSS we don't build it
# BuildRequires: libindicator-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): desktop-file-utils
%description
Clementine is a modern music player and library organiser. Clementine is a
port of Amarok 1.4, with some features rewritten to take advantage of Qt4.
Features:
* Search and play your local music library
* Listen to internet radio from Last.fm and SomaFM
* Edit tags on MP3 and OGG files, organise your music
* Cross-platform - works on Windows, Mac OS X and Linux
* Native desktop notifications on Linux (libnotify) and Mac OS X (Growl)
%if %{kdepack} == 1
%package kde
Summary: Clementine's support for plasma search
Group: System/GUI/KDE
%kde4_runtime_requires
%description kde
Clementine is a modern music player and library organiser. Clementine is a
port of Amarok 1.4, with some features rewritten to take advantage of Qt4.
This package provides clementine's support for plasma global search.
%endif
%prep
%setup -q
%patch0
rm -rf --verbose 3rdparty/gloox
# 3rdparty/qxt
%build
export CXXFLAGS="%{optflags}"
export CFLAGS="$CXXFLAGS"
# Remote control support cannot be enabled without the owner of gloox (http://camaya.net/gloox)
# first giving permission for relicensing to GPLv2 or later. See bnc#695820
mkdir build && cd build && \
cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DENABLE_PLASMARUNNER=ON \
-DENABLE_BREAKPAD=OFF \
-DWITH_FFTW3:BOOL=ON ..
make %{?_smp_mflags}
%install
cd build
%make_install
%suse_update_desktop_file -r clementine AudioVideo Player
%if 0%{?suse_version} >= 1140
# Generate man page with help2man
mkdir -p %{buildroot}%{_mandir}/man1
pushd %{buildroot}%{_mandir}/man1
cp -v %{buildroot}%{_bindir}/%{name} ./
help2man \
--version-string="%{version}" \
-N -o %{name}.1 ./%{name}
rm %{name}
popd
%endif
%fdupes -s %{buildroot}
%post
update-desktop-database > /dev/null
%postun
update-desktop-database > /dev/null
%files
%defattr(-,root,root)
%doc Changelog COPYING
%{_bindir}/clementine
%{_datadir}/applications/clementine.desktop
#%{_datadir}/clementine
%{_datadir}/icons/hicolor/64x64/apps/application-x-clementine.png
%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
%{_bindir}/clementine-tagreader
%{_datadir}/kde4/services/clementine-feed.protocol
%{_datadir}/kde4/services/clementine-itms.protocol
%{_datadir}/kde4/services/clementine-itpc.protocol
%{_datadir}/kde4/services/clementine-zune.protocol
%if 0%{?suse_version} >= 1140
%{_mandir}/man1/%{name}.1.gz
%endif
%if %{kdepack} == 1
%files kde
%defattr(-,root,root)
%dir /usr/lib/kde4
/usr/lib/kde4/plasma_runner_clementine.so
%{_datadir}/kde4/services/plasma-runner-clementine.desktop
%endif
%changelog
* Thu Oct 25 2012 max73@fastwebmail.it
- Update to 1.1
* Thu Oct 18 2012 max73@fastwebmail.it
- Update to rc1
* Thu May 3 2012 davejplater@gmail.com
- Added libprotobuf-lite6 to 12.1 build to fix builds for Tumbleweed.
* Mon Apr 30 2012 davejplater@gmail.com
- Update to 26/04/2012 git head to fix factory build
- Upstream added clementine-tagreader
* Sun Apr 8 2012 davejplater@gmail.com
- Fixed libcdio, changed build dependency to pkgconfig(libcdio)
* Sun Feb 5 2012 seiler@b1-systems.de
- modified source patch to an dynamical download link
- resubmitted package with gzip compressed sources instead of bzip2
* Thu Feb 2 2012 seiler@b1-systems.de
- changed fftw devel dependency to pkgconfig dependency
* Wed Feb 1 2012 seiler@b1-systems.de
- updadet to version 1.0.1
- added another dependency
- modified file section to /usr/lib/ instead of /usr/lib64
* Tue Jan 24 2012 saschpe@suse.de
- Use BuildRequires: libcdio-devel instead of pkgconfig() to avoid
"Have choice..."
* Mon Jan 2 2012 fisiu@opensuse.org
- Build with plasma search support, add -kde subpackage.
* Sun Jan 1 2012 fisiu@opensuse.org
- Use pkgconfig() instead -devel in BuildRequires.
* Fri Dec 30 2011 fisiu@opensuse.org
- Update to 1.0.0:
+ Add audio CD support.
+ Add Amazon as an alternate provider for album cover art.
+ Add a global search feature.
+ Add Spotify support.
+ Add Grooveshark support.
+ Add Digitally Imported (di.fm) and Sky.fm radio stations.
+ Many other changes and a lot of bug fixes, details available
in Changelog file.
* Wed Sep 7 2011 davejplater@gmail.com
- Merged KDE:Extra build with mmaps build and added libnotify and
libQtWebKit to the build for extra functionality.
* Wed Aug 17 2011 saschpe@suse.de
- Added BuildRequires:
* gstreamer-0_10-plugins-base-devel to fix build on openSUSE:12.1
* libcdio-devel to enable Audio CD support
* Wed Aug 17 2011 saschpe@suse.de
- Update to 0.7.3:
* Translation updates
* Drag'n'drop improvements
* Fixed Last.fm authentication
* Several fixed issues
* Thu May 26 2011 davejplater@gmail.com
- Added post and postun to update desktop database
* Wed May 25 2011 davejplater@gmail.com
- Removed gnutls from BuildRequires due to gloox license problems.
see bnc#695820
* Thu May 19 2011 davejplater@gmail.com
- Added man page and BuildRequires: hicolor-icon-theme to own the
icon directories.
* Sat Apr 2 2011 fisiu@opensuse.org
- Update to 0.7.1, bugfix release.
- Added gnutls to BuildRequires.
* Tue Mar 29 2011 fisiu@opensuse.org
- Update to 0.7:
+ brand new edit tag dialog
+ support for MusicBrainz tagging
+ support for CUE sheets
* Sat Dec 11 2010 bitshuffler@opensuse.org
- Update to 0.6.
* Thu Nov 11 2010 bitshuffler@opensuse.org
- Enable MTP and iPod support.
* Sun Oct 3 2010 bitshuffler@opensuse.org
- Update to 0.5.3.
* Sat Sep 25 2010 bitshuffler@opensuse.org
- Update to 0.5.1.
* Mon Sep 20 2010 bitshuffler@opensuse.org
- Update to 0.5.
* Sat Jul 10 2010 bitshuffler@opensuse.org
- Update to 0.4.2.
* Tue May 18 2010 bitshuffler@opensuse.org
- Updated to 0.3.
* Fri Mar 26 2010 bitshuffler@opensuse.org
- Updated to 0.2.
* Mon Mar 1 2010 bitshuffler@opensuse.org
- Initial package.