38cd3fe
Name:           clementine
30587e9
Version:        0.7
30587e9
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
30587e9
# Use system gmock. Patch accepted by upstream
30587e9
# http://code.google.com/p/clementine-player/issues/detail?id=1653
30587e9
Patch0:         clementine-gmock-system.patch
30587e9
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
30587e9
BuildRequires:  gmock-devel
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
30587e9
BuildRequires(check): xorg-x11-server-Xvfb
30587e9
BuildRequires(check): xorg-x11-xauth
30587e9
38cd3fe
Requires:       hicolor-icon-theme
38cd3fe
Requires:       libprojectM >= 2.0.1-7
38cd3fe
Requires:       qtsingleapplication >= 2.6.1-2
38cd3fe
38cd3fe
%description
30587e9
Clementine is a multiplatform music player. It is inspired by Amarok 1.4,
30587e9
focusing on a fast and easy-to-use interface for searching and playing your
30587e9
music.
38cd3fe
38cd3fe
%prep
38cd3fe
%setup -q
30587e9
%patch0 -p1 -b .gmock
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
30587e9
# Can't run all the unit tests
30587e9
#   songloader requires internet connection
30587e9
#   mpris1 requires a dbus session
30587e9
for test in mpris1 songloader; do
30587e9
    sed -i -e "/${test}_test/d" tests/CMakeLists.txt
30587e9
done
38cd3fe
38cd3fe
%build
38cd3fe
mkdir -p %{_target_platform}
38cd3fe
pushd %{_target_platform}
30587e9
    %{cmake} \
30587e9
        -DUSE_SYSTEM_QTSINGLEAPPLICATION=1 \
30587e9
        -DUSE_SYSTEM_PROJECTM=1 \
30587e9
        -DUSE_SYSTEM_QXT=1 \
30587e9
        -DSTATIC_SQLITE=0 \
30587e9
        .. 
30587e9
30587e9
    # Parallel build fails sometimes
30587e9
    make VERBOSE=1
38cd3fe
popd
38cd3fe
38cd3fe
%install
38cd3fe
rm -rf %{buildroot}
38cd3fe
make install DESTDIR=%{buildroot} -C %{_target_platform}
38cd3fe
38cd3fe
38cd3fe
%check
30587e9
pushd %{_target_platform}
30587e9
    # Run a fake X session since some tests check for X
30587e9
    xvfb-run -a -n 10 make test
30587e9
popd
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
30587e9
* Wed Mar 30 2011 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.7-1
30587e9
- New upstream version
30587e9
- Drop all upstreamed patches
30587e9
dc78d8b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
dc78d8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dc78d8b
c0ab174
* Mon Dec 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6-2
c0ab174
- Rebuilt against new libimobiledevice on F-15
c0ab174
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