mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-23 23:11:19 +01:00
117 lines
3.7 KiB
RPMSpec
117 lines
3.7 KiB
RPMSpec
Name: strawberry
|
|
Version: @STRAWBERRY_VERSION_RPM_V@
|
|
Release: @STRAWBERRY_VERSION_RPM_R@.@RPM_DISTRO@
|
|
Summary: A audio player and music collection organiser
|
|
Group: Applications/Multimedia
|
|
License: GPLv3+
|
|
URL: http://www.strawbs.org/
|
|
Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz
|
|
|
|
BuildRequires: boost-devel
|
|
BuildRequires: cmake
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libappstream-glib
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: make
|
|
BuildRequires: git
|
|
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)
|
|
BuildRequires: pkgconfig(alsa)
|
|
BuildRequires: pkgconfig(protobuf)
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.7
|
|
BuildRequires: pkgconfig(taglib) >= 1.11
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
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)
|
|
BuildRequires: pkgconfig(libpulse)
|
|
BuildRequires: pkgconfig(libcdio)
|
|
BuildRequires: pkgconfig(libchromaprint)
|
|
BuildRequires: pkgconfig(libgpod-1.0)
|
|
BuildRequires: pkgconfig(libmtp)
|
|
BuildRequires: pkgconfig(libnotify)
|
|
BuildRequires: pkgconfig(libudf)
|
|
|
|
%description
|
|
Strawberry is a audio player and music collection organizer.
|
|
It is a fork of Clementine. The name is inspired by the band Strawbs.
|
|
|
|
Features:
|
|
* Play and organize music
|
|
* Supports WAV, FLAC, WavPack, DSF, DSDIFF, Ogg Vorbis, Speex, MPC, TrueAudio, AIFF, MP4, MP3 and ASF
|
|
* Audio CD playback
|
|
* Native desktop notifications
|
|
* Playlists in multiple formats
|
|
* Advanced audio output and device configuration for bit-perfect playback on Linux
|
|
* Edit tags on music files
|
|
* Fetch tags from MusicBrainz
|
|
* Album cover art from Last.fm, Musicbrainz and Discogs
|
|
* Song lyrics from AudD and API Seeds
|
|
* Support for multiple backends
|
|
* Audio analyzer
|
|
* Audio equalizer
|
|
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
|
|
* Streaming support for Tidal
|
|
* Scrobbler with support for Last.fm, Libre.fm and ListenBrainz
|
|
|
|
%prep
|
|
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
|
|
|
%build
|
|
|
|
%if 0%{?fedora} > 27
|
|
# workaround FTBFS
|
|
export CXXFLAGS="%{optflags} -fpermissive"
|
|
%endif
|
|
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake} \
|
|
-DBUILD_WERROR:BOOL=OFF \
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
..
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
|
mv %{buildroot}%{_datadir}/metainfo %{buildroot}%{_datadir}/appdata
|
|
|
|
%check
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/strawberry.appdata.xml
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.md Changelog
|
|
%license COPYING
|
|
%{_bindir}/strawberry
|
|
%{_bindir}/strawberry-tagreader
|
|
%{_datadir}/applications/strawberry.desktop
|
|
%{_datadir}/icons/hicolor/48x48/apps/strawberry.png
|
|
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
|
|
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
|
|
%{_datadir}/appdata/strawberry.appdata.xml
|
|
%{_mandir}/man1/strawberry.1.*
|
|
%{_mandir}/man1/strawberry-tagreader.1.*
|
|
|
|
%changelog
|
|
* @RPM_DATE@ Jonas Kvinge <jonas@strawbs.net> - @STRAWBERRY_VERSION_RPM_V@
|
|
- Version @STRAWBERRY_VERSION_PACKAGE@
|