2019-04-05 23:07:16 +02:00
|
|
|
Name: strawberry
|
|
|
|
Version: @STRAWBERRY_VERSION_RPM_V@
|
2022-03-06 14:05:07 +01:00
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos} || "%{?_vendor}" == "openmandriva"
|
2020-12-17 22:25:15 +01:00
|
|
|
Release: @STRAWBERRY_VERSION_RPM_R@%{?dist}
|
|
|
|
%else
|
2019-04-05 23:07:16 +02:00
|
|
|
Release: @STRAWBERRY_VERSION_RPM_R@.@RPM_DISTRO@
|
2020-12-17 22:25:15 +01:00
|
|
|
%endif
|
2020-08-04 21:18:14 +02:00
|
|
|
Summary: A music player and music collection organizer
|
2020-12-17 22:25:15 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2019-04-05 23:07:16 +02:00
|
|
|
License: GPL-3.0+
|
2019-09-24 00:06:37 +02:00
|
|
|
URL: https://www.strawberrymusicplayer.org/
|
2019-04-05 23:07:16 +02:00
|
|
|
Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: appstream-glib
|
|
|
|
%else
|
2020-12-09 00:27:37 +01:00
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos}
|
2019-04-05 23:07:16 +02:00
|
|
|
BuildRequires: libappstream-glib
|
2020-12-09 00:27:37 +01:00
|
|
|
%else
|
2019-04-06 19:56:14 +02:00
|
|
|
BuildRequires: appstream-util
|
2020-12-09 00:27:37 +01:00
|
|
|
%endif
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2019-04-16 17:48:11 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2019-04-05 23:07:16 +02:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2019-07-30 22:45:22 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.9
|
2019-05-01 12:43:10 +02:00
|
|
|
%if ! 0%{?centos} && ! 0%{?mageia}
|
2019-04-05 23:07:16 +02:00
|
|
|
BuildRequires: pkgconfig(taglib)
|
2019-05-01 12:43:10 +02:00
|
|
|
%endif
|
2019-04-18 18:28:37 +02:00
|
|
|
BuildRequires: pkgconfig(fftw3)
|
2021-05-16 21:12:41 +02:00
|
|
|
%if "@QT_VERSION_MAJOR@" == "5" && ( 0%{?fedora} || 0%{?rhel_version} || 0%{?centos} )
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Core)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Network)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@Test)
|
2021-08-14 16:40:37 +02:00
|
|
|
BuildRequires: pkgconfig(Qt@QT_VERSION_MAJOR@X11Extras)
|
2020-12-09 00:27:37 +01:00
|
|
|
%else
|
2021-05-16 21:12:41 +02:00
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Core)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Gui)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Widgets)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Concurrent)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Network)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Sql)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@DBus)
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@Test)
|
2021-08-14 16:40:37 +02:00
|
|
|
%if "@QT_VERSION_MAJOR@" == "5"
|
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@X11Extras)
|
|
|
|
%endif
|
2020-12-09 00:27:37 +01:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?mageia}
|
2021-05-16 21:12:41 +02:00
|
|
|
BuildRequires: cmake(Qt@QT_VERSION_MAJOR@LinguistTools)
|
2020-12-09 00:27:37 +01:00
|
|
|
%endif
|
2019-04-05 23:07:16 +02:00
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-app-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-audio-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-base-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-tag-1.0)
|
2019-04-06 19:56:14 +02:00
|
|
|
%if ! 0%{?centos}
|
2019-04-05 23:07:16 +02:00
|
|
|
BuildRequires: pkgconfig(libchromaprint)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
|
|
|
BuildRequires: pkgconfig(libgpod-1.0)
|
|
|
|
BuildRequires: pkgconfig(libmtp)
|
|
|
|
%if 0%{?suse_version} || 0%{?fedora_version}
|
|
|
|
BuildRequires: pkgconfig(libvlc)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2021-05-16 21:12:41 +02:00
|
|
|
%if "@QT_VERSION_MAJOR@" == "6"
|
2020-12-09 00:27:37 +01:00
|
|
|
Requires: qt6-sql-sqlite
|
2021-05-19 22:28:38 +02:00
|
|
|
Requires: qt6-network-tls
|
2020-12-09 00:27:37 +01:00
|
|
|
%endif
|
2021-05-16 21:12:41 +02:00
|
|
|
%if "@QT_VERSION_MAJOR@" == "5"
|
2020-12-09 00:27:37 +01:00
|
|
|
Requires: libQt5Sql5-sqlite
|
|
|
|
%endif
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Strawberry is a music player and music collection organizer.
|
|
|
|
It is a fork of Clementine. The name is inspired by the band Strawbs.
|
|
|
|
|
|
|
|
Features:
|
|
|
|
- Play and organize music
|
2020-06-27 00:58:37 +02:00
|
|
|
- Supports WAV, FLAC, WavPack, Ogg FLAC, Ogg Vorbis, Ogg Opus, Ogg Speex,
|
2019-09-23 21:52:48 +02:00
|
|
|
MPC, TrueAudio, AIFF, MP4, MP3, ASF and Monkey's Audio.
|
2019-04-05 23:07:16 +02:00
|
|
|
- Audio CD playback
|
|
|
|
- Native desktop notifications
|
2021-05-29 00:57:25 +02:00
|
|
|
- Playlist management
|
2019-04-05 23:07:16 +02:00
|
|
|
- Playlists in multiple formats
|
|
|
|
- Advanced audio output and device configuration for bit-perfect playback on Linux
|
2021-05-29 00:57:25 +02:00
|
|
|
- Edit tags on audio files
|
|
|
|
- Automatically retrieve tags from MusicBrainz
|
2020-05-09 01:48:08 +02:00
|
|
|
- Album cover art from Last.fm, Musicbrainz, Discogs, Musixmatch, Deezer, Tidal, Qobuz and Spotify
|
2020-05-08 18:35:36 +02:00
|
|
|
- Song lyrics from AudD, Genius, Musixmatch, ChartLyrics, lyrics.ovh and lololyrics.com
|
2019-04-05 23:07:16 +02:00
|
|
|
- Support for multiple backends
|
|
|
|
- Audio analyzer
|
|
|
|
- Audio equalizer
|
|
|
|
- Scrobbler with support for Last.fm, Libre.fm and ListenBrainz
|
2021-05-29 00:57:25 +02:00
|
|
|
- Transfer music to mass-storage USB players, MTP compatible devices and iPod Nano/Classic
|
|
|
|
- Streaming support for Subsonic-compatible servers
|
|
|
|
- Unofficial streaming support for Tidal and Qobuz
|
2019-04-05 23:07:16 +02:00
|
|
|
|
2020-12-22 16:30:47 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%debug_package
|
|
|
|
%endif
|
|
|
|
|
2019-04-05 23:07:16 +02:00
|
|
|
%prep
|
|
|
|
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
|
|
|
|
|
|
|
%build
|
2020-10-30 18:12:42 +01:00
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos}
|
|
|
|
export CXXFLAGS="-fPIC $RPM_OPT_FLAGS"
|
|
|
|
%endif
|
2021-12-14 22:16:20 +01:00
|
|
|
%{cmake} -DQT_VERSION_MAJOR=@QT_VERSION_MAJOR@
|
2022-01-15 02:53:46 +01:00
|
|
|
%if 0%{?centos} || (0%{?mageia} && 0%{?mageia} <= 7) || "%{?_vendor}" == "openmandriva"
|
2020-09-16 18:03:34 +02:00
|
|
|
%make_build
|
2019-04-05 23:07:16 +02:00
|
|
|
%else
|
2020-09-16 18:03:34 +02:00
|
|
|
%cmake_build
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2020-09-17 16:28:16 +02:00
|
|
|
%if 0%{?centos}
|
2020-09-16 19:21:37 +02:00
|
|
|
%make_install
|
2020-09-17 16:28:16 +02:00
|
|
|
%else
|
2022-01-15 02:53:46 +01:00
|
|
|
%if 0%{?mageia} || "%{?_vendor}" == "openmandriva"
|
2020-09-17 16:28:16 +02:00
|
|
|
%make_install -C build
|
2020-09-16 19:21:37 +02:00
|
|
|
%else
|
|
|
|
%cmake_install
|
|
|
|
%endif
|
2020-09-17 16:28:16 +02:00
|
|
|
%endif
|
2019-04-05 23:07:16 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2019-09-24 00:06:37 +02:00
|
|
|
%suse_update_desktop_file org.strawberrymusicplayer.strawberry Qt AudioVideo Audio Player
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
2019-09-24 00:06:37 +02:00
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/org.strawberrymusicplayer.strawberry.desktop
|
2019-04-05 23:07:16 +02:00
|
|
|
%if 0%{?fedora_version}
|
2019-09-24 00:06:37 +02:00
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.strawberrymusicplayer.strawberry.appdata.xml
|
2019-04-05 23:07:16 +02:00
|
|
|
%else
|
2020-09-16 18:03:34 +02:00
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.strawberrymusicplayer.strawberry.appdata.xml
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.md Changelog
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/strawberry
|
|
|
|
%{_bindir}/strawberry-tagreader
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/strawberry.*
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%{_metainfodir}/*.appdata.xml
|
|
|
|
%else
|
2020-09-16 18:03:34 +02:00
|
|
|
%{_datadir}/metainfo/*.appdata.xml
|
2019-04-05 23:07:16 +02:00
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/%{name}.1.*
|
|
|
|
%{_mandir}/man1/%{name}-tagreader.1.*
|
|
|
|
|
|
|
|
%changelog
|
2020-01-21 23:53:28 +01:00
|
|
|
* @RPM_DATE@ Jonas Kvinge <jonas@jkvinge.net> - @STRAWBERRY_VERSION_RPM_V@
|
2019-04-05 23:07:16 +02:00
|
|
|
- Version @STRAWBERRY_VERSION_PACKAGE@
|