Move some files

This commit is contained in:
Jonas Kvinge
2020-04-25 01:59:21 +02:00
parent 6e061764ee
commit 8e1def225b
9 changed files with 9 additions and 9 deletions

63
dist/unix/PKGBUILD.in vendored Normal file
View File

@@ -0,0 +1,63 @@
# Maintainer: Jonas Kvinge <jonas@jkvinge.net>
pkgname=strawberry
pkgver=@STRAWBERRY_VERSION_PAC_V@
pkgrel=@STRAWBERRY_VERSION_PAC_R@
pkgdesc="A music player aimed at audio enthusiasts and music collectors"
arch=(x86_64)
url="https://www.strawberrymusicplayer.org/"
license=(GPL3)
makedepends=(git cmake make gcc boost gettext qt5-tools)
depends=(
desktop-file-utils
hicolor-icon-theme
gnutls
udisks2
protobuf
qt5-base
qt5-x11extras
sqlite3
alsa-lib
libpulse
dbus
taglib
gstreamer
gst-plugins-base
gst-plugins-good
xine-lib
vlc
chromaprint
libgpod
libcdio
libmtp
libusbmuxd
libplist
libimobiledevice
fftw
)
optdepends=(
gst-plugins-bad
gst-plugins-ugly
gst-libav
)
provides=(strawberry)
conflicts=(strawberry)
source=("strawberry-@STRAWBERRY_VERSION_PACKAGE@.tar.xz")
sha256sums=('SKIP')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-@STRAWBERRY_VERSION_PACKAGE@ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SYSTEM_TAGLIB=ON \
-DENABLE_TRANSLATIONS=ON
make -j$(nproc)
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}

10
dist/unix/strawberry-tagreader.1 vendored Normal file
View File

@@ -0,0 +1,10 @@
.TH STRAWBERRY-TAGREADER "1"
.SH NAME
strawberry-tagreader \- internal tag reader for strawberry
.SH SYNOPSIS
.B strawberry-tagreader
.SH DESCRIPTION
This program is used internally by Strawberry to parse tags in music files without exposing the whole application to crashes caused by malformed files. It is not meant to be run on its own.
.SH "AUTHORS"
.PP
Strawberry main developer is Jonas Kvinge <jonas@jkvinge.net>.

126
dist/unix/strawberry.1 vendored Normal file
View File

@@ -0,0 +1,126 @@
.TH STRAWBERRY "1" "User Commands"
.SH NAME
Strawberry \- music player and music collection organizer
.SH SYNOPSIS
.B strawberry
[\fI\,options\/\fR] [\fI\,URL(s)\/\fR]
.SH DESCRIPTION
Strawberry is a music player especially aimed at audiophiles.
.TP
Features:
.br
- Play and organize music
.br
- Supports WAV, FLAC, WavPack, DSF, DSDIFF, Ogg FLAC, Ogg Vorbis, Ogg Opus, Ogg Speex, MPC, TrueAudio, AIFF, MP4, MP3, ASF and Monkey's Audio.
.br
- Audio CD playback
.br
- Native desktop notifications
.br
- Playlists in multiple formats
.br
- Advanced output and device options with support for bit perfect playback on Linux
.br
- Edit tags on music files
.br
- Fetch tags from MusicBrainz
.br
- Album cover art from Lastfm, Musicbrainz, Discogs and Deezer
.br
- Song lyrics from AudD, lyrics.ovh and lololyrics.com
.br
- Support for multiple backends
.br
- Audio analyzer
.br
- Equalizer
.br
- Transfer music to iPod, iPhone, MTP or mass-storage USB player
.br
- Streaming from Subsonic
.TP
It is a fork of Clementine. The name is inspired by the band Strawbs.
.SH OPTIONS
.SS "Player options:"
.TP
\fB\-p\fR, \fB\-\-play\fR
Start the playlist currently playing
.TP
\fB\-t\fR, \fB\-\-play\-pause\fR
Play if stopped, pause if playing
.TP
\fB\-u\fR, \fB\-\-pause\fR
Pause playback
.TP
\fB\-s\fR, \fB\-\-stop\fR
Stop playback
.TP
\fB\-q\fR, \fB\-\-stop\-after\-current\fR
Stop playback after current track
.TP
\fB\-r\fR, \fB\-\-previous\fR
Skip backwards in playlist
.TP
\fB\-f\fR, \fB\-\-next\fR
Skip forwards in playlist
.TP
\fB\-v\fR, \fB\-\-volume\fR <value>
Set the volume to <value> percent
.TP
\fB\-\-volume\-up\fR
Increase the volume by 4 percent
.TP
\fB\-\-volume\-down\fR
Decrease the volume by 4 percent
.TP
\fB\-\-volume\-increase\-by\fR
Increase the volume by <value> percent
.TP
\fB\-\-volume\-decrease\-by\fR
Decrease the volume by <value> percent
.TP
\fB\-\-seek\-to\fR <seconds>
Seek the currently playing track to an absolute position
.TP
\fB\-\-seek\-by\fR <seconds>
Seek the currently playing track by a relative amount
.TP
\fB\-\-restart\-or\-previous\fR
Restart the track, or play the previous track if within 8 seconds of start.
.SS "Playlist options:"
.TP
\fB\-c\fR, \fB\-\-create\fR <name>
Create a new playlist with files
.TP
\fB\-a\fR, \fB\-\-append\fR
Append files/URLs to the playlist
.TP
\fB\-l\fR, \fB\-\-load\fR
Loads files/URLs, replacing current playlist
.TP
\fB\-k\fR, \fB\-\-play\-track\fR <n>
Play the <n>th track in the playlist
.SS "Other options:"
.TP
\fB\-o\fR, \fB\-\-show\-osd\fR
Display the on\-screen\-display
.TP
\fB\-y\fR, \fB\-\-toggle\-pretty\-osd\fR
Toggle visibility for the pretty on\-screen\-display
.TP
\fB\-g\fR, \fB\-\-language\fR <lang>
Change the language
.TP
\fB\-\-quiet\fR
Equivalent to \fB\-\-log\-levels\fR *:1
.TP
\fB\-\-verbose\fR
Equivalent to \fB\-\-log\-levels\fR *:3
.HP
\fB\-\-log\-levels\fR <levels> Comma separated list of class:level, level is 0\-3
.TP
\fB\-\-version\fR
Print out version information
.SH "AUTHORS"
.PP
Strawberry main developer is Jonas Kvinge <jonas@jkvinge.net>.

198
dist/unix/strawberry.spec.in vendored Normal file
View File

@@ -0,0 +1,198 @@
Name: strawberry
Version: @STRAWBERRY_VERSION_RPM_V@
Release: @STRAWBERRY_VERSION_RPM_R@.@RPM_DISTRO@
Summary: A music player and music collection organiser
Group: Applications/Multimedia
License: GPL-3.0+
URL: https://www.strawberrymusicplayer.org/
Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%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
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos}
BuildRequires: libappstream-glib
%else
BuildRequires: appstream-util
%endif
%endif
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?mageia}
BuildRequires: cmake(Qt5LinguistTools)
%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)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(protobuf)
%if ! 0%{?centos}
BuildRequires: pkgconfig(sqlite3) >= 3.9
%endif
%if ! 0%{?centos} && ! 0%{?mageia}
BuildRequires: pkgconfig(taglib)
%endif
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Test)
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)
%if ! 0%{?centos}
BuildRequires: pkgconfig(libchromaprint)
%endif
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libgpod-1.0)
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libudf)
%if 0%{?suse_version} || 0%{?fedora_version}
BuildRequires: pkgconfig(libxine)
BuildRequires: pkgconfig(libvlc)
%endif
%if 0%{?suse_version}
Requires: libQt5Sql5-sqlite
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1500
Requires(post): update-desktop-files
Requires(post): gtk3-tools
Requires(postun): update-desktop-files
Requires(postun): gtk3-tools
%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
- Supports WAV, FLAC, WavPack, DSF, DSDIFF, Ogg FLAC, Ogg Vorbis, Ogg Opus, Ogg Speex,
MPC, TrueAudio, AIFF, MP4, MP3, ASF and Monkey's Audio.
- 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, Discogs and Deezer
- Song lyrics from AudD, lyrics.ovh and lololyrics.com
- Support for multiple backends
- Audio analyzer
- Audio equalizer
- Transfer music to iPod, iPhone, MTP or mass-storage USB player
- Scrobbler with support for Last.fm, Libre.fm and ListenBrainz
- Streaming support for Subsonic
%prep
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
%build
%if 0%{?suse_version} || 0%{?mageia}
%{cmake} ..
%else
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} ..
popd
%endif
%if 0%{?suse_version} || 0%{?mageia}
%if 0%{?suse_version} && 0%{?suse_version} < 1500
make %{?_smp_mflags}
%else
%make_build
%endif
%else
%make_build -C %{_target_platform}
%endif
%install
%if 0%{?suse_version}
%cmake_install
%else
%if 0%{?mageia}
%make_install -C build
%else
%make_install -C %{_target_platform}
%endif
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1500
rm -f %{buildroot}%{_datadir}/metainfo/org.strawberrymusicplayer.strawberry.appdata.xml
%endif
%if 0%{?suse_version}
%suse_update_desktop_file org.strawberrymusicplayer.strawberry Qt AudioVideo Audio Player
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/org.strawberrymusicplayer.strawberry.desktop
%if 0%{?fedora_version}
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.strawberrymusicplayer.strawberry.appdata.xml
%else
%if ! 0%{?suse_version} || ( 0%{?suse_version} && 0%{?suse_version} >= 1500 )
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.strawberrymusicplayer.strawberry.appdata.xml
%endif
%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
%if ! 0%{?suse_version} || ( 0%{?suse_version} && 0%{?suse_version} >= 1500 )
%{_datadir}/metainfo/*.appdata.xml
%endif
%endif
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-tagreader.1.*
%changelog
* @RPM_DATE@ Jonas Kvinge <jonas@jkvinge.net> - @STRAWBERRY_VERSION_RPM_V@
- Version @STRAWBERRY_VERSION_PACKAGE@