38cd3fe
Name:           clementine
3f75974
Version:        0.6
3f75974
Release:        1%{?dist}
38cd3fe
Summary:        A music player and library organizer
38cd3fe
38cd3fe
Group:          Applications/Multimedia
38cd3fe
License:        GPLv3+ and GPLv2+
38cd3fe
URL:            http://code.google.com/p/clementine-player
38cd3fe
Source0:        http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
3f75974
# Use system echonest instead of the bundled copy
3f75974
# From upstream trunk:
3f75974
# http://code.google.com/p/clementine-player/source/detail?r=2440
3f75974
Patch0:         clementine-system-libechonest.patch
3f75974
# Don't install Ubuntu icons on Fedora
3f75974
# From upstream trunk:
3f75974
# http://code.google.com/p/clementine-player/source/detail?r=2445
3f75974
Patch1:         clementine-no-ubuntu-icons.patch
38cd3fe
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
38cd3fe
38cd3fe
BuildRequires:  boost-devel
38cd3fe
BuildRequires:  cmake
38cd3fe
BuildRequires:  desktop-file-utils
38cd3fe
BuildRequires:  gettext
38cd3fe
BuildRequires:  gstreamer-devel
38cd3fe
BuildRequires:  gtest-devel
3f75974
BuildRequires:  libechonest-devel
a5bb413
%ifnarch s390 s390x
fcd2ff4
BuildRequires:  libgpod-devel
fcd2ff4
BuildRequires:  libimobiledevice-devel
a5bb413
%endif
38cd3fe
BuildRequires:  liblastfm-devel
fcd2ff4
BuildRequires:  libmtp-devel 
38cd3fe
BuildRequires:  libnotify-devel
fcd2ff4
BuildRequires:  libplist-devel 
38cd3fe
BuildRequires:  libprojectM-devel >= 2.0.1-7
38cd3fe
BuildRequires:  libqxt-devel
38cd3fe
BuildRequires:  notification-daemon
38cd3fe
BuildRequires:  qt4-devel
38cd3fe
BuildRequires:  qtiocompressor-devel
fcd2ff4
BuildRequires:  qtsinglecoreapplication-devel
38cd3fe
BuildRequires:  qtsingleapplication-devel >= 2.6.1-2
38cd3fe
BuildRequires:  sqlite-devel
38cd3fe
BuildRequires:  taglib-devel
38cd3fe
38cd3fe
Requires:       hicolor-icon-theme
38cd3fe
Requires:       libprojectM >= 2.0.1-7
38cd3fe
Requires:       qtsingleapplication >= 2.6.1-2
38cd3fe
38cd3fe
%description
38cd3fe
Clementine is a modern music player and library organizer.
38cd3fe
It is largely a port of Amarok 1.4, with some features rewritten to take
38cd3fe
advantage of Qt4.
38cd3fe
38cd3fe
%prep
38cd3fe
%setup -q
3f75974
%patch0 -p1 -b .echonest
3f75974
%patch1 -p1 -b .no_ubuntu_icons
fcd2ff4
fcd2ff4
# Remove all 3rdparty libraries exceph universalchardet
fcd2ff4
# as it is not available as a separate library.
fcd2ff4
mv 3rdparty/universalchardet/ .
fcd2ff4
rm -fr 3rdparty/*
fcd2ff4
mv universalchardet/ 3rdparty/
38cd3fe
38cd3fe
38cd3fe
# Don't build tests. They require gmock which is not yet available on Fedora
38cd3fe
# RHBZ #527402
38cd3fe
sed -i '/tests/d' CMakeLists.txt
38cd3fe
38cd3fe
38cd3fe
%build
38cd3fe
mkdir -p %{_target_platform}
38cd3fe
pushd %{_target_platform}
38cd3fe
%{cmake} \
38cd3fe
   -DUSE_SYSTEM_QTSINGLEAPPLICATION=1 \
38cd3fe
   -DUSE_SYSTEM_PROJECTM=1 \
38cd3fe
   -DUSE_SYSTEM_QXT=1 \
fcd2ff4
   -DSTATIC_SQLITE=0 \
38cd3fe
   .. 
38cd3fe
38cd3fe
38cd3fe
# Parallel build fails sometimes
38cd3fe
make VERBOSE=1
38cd3fe
popd
38cd3fe
38cd3fe
%install
38cd3fe
rm -rf %{buildroot}
38cd3fe
make install DESTDIR=%{buildroot} -C %{_target_platform}
38cd3fe
38cd3fe
38cd3fe
%check
38cd3fe
desktop-file-validate \
38cd3fe
    %{buildroot}%{_datadir}/applications/%{name}.desktop
38cd3fe
38cd3fe
%clean
38cd3fe
rm -rf %{buildroot}
38cd3fe
38cd3fe
%post
38cd3fe
update-desktop-database &> /dev/null || :
38cd3fe
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
38cd3fe
38cd3fe
%postun
38cd3fe
update-desktop-database &> /dev/null || :
38cd3fe
if [ $1 -eq 0 ] ; then
38cd3fe
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
38cd3fe
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
38cd3fe
fi
38cd3fe
38cd3fe
%posttrans
38cd3fe
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
38cd3fe
38cd3fe
38cd3fe
%files
38cd3fe
%defattr(-,root,root,-)
38cd3fe
%doc Changelog COPYING TODO
38cd3fe
%{_bindir}/clementine
38cd3fe
%{_datadir}/applications/clementine.desktop
38cd3fe
%{_datadir}/icons/hicolor/64x64/apps/application-x-clementine.png
fcd2ff4
%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
38cd3fe
38cd3fe
38cd3fe
%changelog
3f75974
* Thu Dec 23 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6-1
3f75974
- New upstream version
3f75974
a5bb413
* Thu Oct 14 2010 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.3-2
a5bb413
- Update BRs for s390(x)
a5bb413
9bfeed7
* Wed Sep 29 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.5.3-1
9bfeed7
- New upstream version
9bfeed7
fcd2ff4
* Sun Sep 26 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.5.2-1
fcd2ff4
- New upstream version
fcd2ff4
fcd2ff4
* Wed Sep 22 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.5.1-1
fcd2ff4
- New upstream version
fcd2ff4
- Drop all upstreamed patches
fcd2ff4
14b0c6b
* Sun Aug 08 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-9
14b0c6b
- Only create the OpenGL graphics context when you first open the visualisations
14b0c6b
  window. Fixes RHBZ#621913
14b0c6b
0fee003
* Fri Aug 06 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-8
0fee003
- Enforce Fedora compilation flags
0fee003
f682485
* Thu Aug 05 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-7
f682485
- Fix crash on lastfm tree RHBZ#618474
f682485
86e34ba
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-6
86e34ba
- Rebuild against new boost on F-14
86e34ba
38cd3fe
* Fri Jul 23 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-5
38cd3fe
- Add missing scriptlets
38cd3fe
38cd3fe
* Wed Jul 21 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-4
38cd3fe
- Use: make VERBOSE=1
38cd3fe
- License is GPLv3+ and GPLv2+
38cd3fe
- Put BRs in alphabetical order
38cd3fe
- Remove redundant BRs: glew-devel, xine-lib-devel, and
38cd3fe
  the extra libprojectM-devel
38cd3fe
- Add R: hicolor-icon-theme
38cd3fe
38cd3fe
* Sun Jul 18 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-3
38cd3fe
- Better qxt split patch
38cd3fe
38cd3fe
* Sat Jul 17 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-2
38cd3fe
- Fix font paths issue, which caused a segfault on visualizations
38cd3fe
38cd3fe
* Sat Jul 17 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.4.2-1
38cd3fe
- Version 0.4.2
38cd3fe
38cd3fe
* Fri May 07 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3-1
38cd3fe
- Version 0.3
38cd3fe
38cd3fe
* Sat Apr 17 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.2-2
38cd3fe
- Patch out the external libraries
38cd3fe
- Build the libclementine_lib into the final executable
38cd3fe
38cd3fe
* Sat Mar 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.2-1
38cd3fe
- Fedorized the upstream specfile
38cd3fe
38cd3fe
* Mon Mar 22 2010 David Sansome <me@davidsansome.com> - 0.2
38cd3fe
- Version 0.2
38cd3fe
38cd3fe
* Sun Feb 21 2010 David Sansome <me@davidsansome.com> - 0.1-5
38cd3fe
- Various last-minute bugfixes
38cd3fe
38cd3fe
* Sun Jan 17 2010 David Sansome <me@davidsansome.com> - 0.1-1
38cd3fe
- Initial package