strawberry-audio-player-win.../dist/fedora/strawberry.spec.in

116 lines
3.6 KiB
Plaintext
Raw Normal View History

2018-02-27 18:06:05 +01:00
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
2018-10-22 23:23:25 +02:00
License: GPLv3+
2018-02-27 18:06:05 +01:00
URL: http://www.strawbs.org/
Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz
2018-02-27 18:06:05 +01:00
2018-07-12 00:07:29 +02:00
BuildRequires: boost-devel
2018-03-31 22:54:16 +02:00
BuildRequires: cmake
2018-05-01 19:22:53 +02:00
BuildRequires: desktop-file-utils
2018-03-31 22:54:16 +02:00
BuildRequires: gcc-c++
2018-05-01 19:22:53 +02:00
BuildRequires: hicolor-icon-theme
BuildRequires: liblastfm-qt5-devel
BuildRequires: make
2018-07-03 18:55:25 +02:00
BuildRequires: git
2018-05-01 19:22:53 +02:00
BuildRequires: pkgconfig
2018-07-03 18:55:25 +02:00
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)
2018-07-06 21:56:13 +02:00
BuildRequires: pkgconfig(sqlite3) >= 3.7
BuildRequires: pkgconfig(taglib) >= 1.11
2018-05-01 19:22:53 +02:00
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
2018-07-06 21:56:13 +02:00
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Xml)
2018-05-01 19:22:53 +02:00
BuildRequires: pkgconfig(Qt5X11Extras)
2018-07-06 21:56:13 +02:00
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5OpenGL)
2018-05-01 19:22:53 +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)
2018-07-06 21:56:13 +02:00
BuildRequires: pkgconfig(libpulse)
2018-05-01 19:22:53 +02:00
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libchromaprint)
BuildRequires: pkgconfig(libgpod-1.0)
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libudf)
2018-02-27 18:06:05 +01:00
%description
2018-05-01 22:36:28 +02:00
Strawberry is a audio player and music collection organizer.
2018-02-27 18:06:05 +01:00
It is a fork of Clementine. The name is inspired by the band Strawbs.
Features:
* Play and organize music
2018-09-15 00:22:10 +02:00
* Supports WAV, FLAC, WavPack, DSF, DSDIFF, Ogg Vorbis, Speex, MPC, TrueAudio, AIFF, MP4, MP3 and ASF
* Audio CD playback
2018-02-27 18:06:05 +01:00
* Native desktop notifications
* Playlists in multiple formats
2018-09-15 00:22:10 +02:00
* Advanced output and device options with support for bit perfect playback on Linux
2018-07-03 18:55:25 +02:00
* Edit tags on music files
2018-05-01 22:36:28 +02:00
* Fetch tags from MusicBrainz
2018-09-15 00:22:10 +02:00
* Album cover art from Last.fm, Musicbrainz and Discogs
* Song lyrics from AudD and API Seeds
2018-02-27 18:06:05 +01:00
* Support for multiple backends
2018-09-15 00:22:10 +02:00
* Audio analyzer
* Equalizer
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
* Integrated Tidal support
2018-02-27 18:06:05 +01:00
%prep
2018-07-12 00:07:29 +02:00
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
2018-02-27 18:06:05 +01:00
%build
2018-07-12 00:07:29 +02:00
%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}
2018-02-27 18:06:05 +01:00
%install
2018-07-12 00:07:29 +02:00
make install DESTDIR=%{buildroot} -C %{_target_platform}
2018-10-22 23:23:25 +02:00
rm -rf %{buildroot}%{_datadir}/metainfo
2018-07-12 00:07:29 +02:00
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
2018-02-27 18:06:05 +01:00
%files
%defattr(-,root,root,-)
2018-10-22 23:23:25 +02:00
%doc README.md Changelog
%license COPYING
2018-02-27 18:06:05 +01:00
%{_bindir}/strawberry
%{_bindir}/strawberry-tagreader
%{_datadir}/applications/strawberry.desktop
2018-03-31 22:54:16 +02:00
%{_datadir}/icons/hicolor/48x48/apps/strawberry.png
2018-02-27 18:06:05 +01:00
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
2018-10-22 23:23:25 +02:00
%{_mandir}/man1/strawberry.1.*
%{_mandir}/man1/strawberry-tagreader.1.*
2018-02-27 18:06:05 +01:00
%changelog
2018-04-01 21:56:33 +02:00
* @RPM_DATE@ Jonas Kvinge <jonas@strawbs.net> - @STRAWBERRY_VERSION_RPM_V@
- Version @STRAWBERRY_VERSION_PACKAGE@