Initial commit.

This commit is contained in:
Jonas Kvinge
2018-02-27 18:06:05 +01:00
parent 85d9664df7
commit b2b1ba7abe
1393 changed files with 177311 additions and 1 deletions

25
dist/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,25 @@
execute_process(COMMAND date "+%a %b %d %Y"
OUTPUT_VARIABLE RPM_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/strawberry.spec.in
${CMAKE_CURRENT_SOURCE_DIR}/strawberry.spec @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/maketarball.sh.in
${CMAKE_CURRENT_SOURCE_DIR}/maketarball.sh @ONLY)
if (NOT APPLE)
install(FILES ../data/icons/48x48/strawberry.png
DESTINATION share/icons/hicolor/48x48/apps/
)
install(FILES ../data/icons/64x64/strawberry.png
DESTINATION share/icons/hicolor/64x64/apps/
)
install(FILES ../data/icons/128x128/strawberry.png
DESTINATION share/icons/hicolor/128x128/apps/
)
install(FILES ../data/icons/128x128/strawberry.svg
DESTINATION share/icons/hicolor/scalable/apps/
)
install(FILES strawberry.desktop
DESTINATION share/applications
)
endif (NOT APPLE)

21
dist/maketarball.sh vendored Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
name=strawberry
version="0.1.1"
deb_dist="unstable"
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
echo "Creating $name-$version.tar.xz..."
tar -cJf $name-$version.tar.xz \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/dist/*.tar" \
--exclude "$root/dist/*.tar.*" \
--exclude "$root/CMakeLists.txt.user" \
"$root"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"

21
dist/maketarball.sh.in vendored Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_SPARKLE@"
deb_dist="@DEB_DIST@"
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
echo "Creating $name-$version.tar.xz..."
tar -cJf $name-$version.tar.xz \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/dist/*.tar" \
--exclude "$root/dist/*.tar.*" \
--exclude "$root/CMakeLists.txt.user" \
"$root"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"

39
dist/strawberry.desktop vendored Executable file
View File

@@ -0,0 +1,39 @@
[Desktop Entry]
Version=0.1.1
Type=Application
Name=Strawberry
GenericName=Strawberry Music Player
Comment=Plays music
Exec=strawberry %U
TryExec=strawberry
Icon=strawberry
Terminal=false
Categories=AudioVideo;Player;Qt;Audio;
StartupNotify=false
MimeType=application/ogg;application/x-ogg;application/x-ogm-audio;audio/aac;audio/mp4;audio/mpeg;audio/mpegurl;audio/ogg;audio/vnd.rn-realaudio;audio/vorbis;audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-wma;audio/x-musepack;audio/x-oggflac;audio/x-pn-realaudio;audio/x-scpls;audio/x-speex;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-wav;video/x-ms-asf;x-content/audio-player;x-scheme-handler/zune;x-scheme-handler/itpc;x-scheme-handler/itms;x-scheme-handler/feed;
X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Previous;Next;
[Play Shortcut Group]
Name=Play
Exec=strawberry --play
TargetEnvironment=Unity
[Pause Shortcut Group]
Name=Pause
Exec=strawberry --pause
TargetEnvironment=Unity
[Stop Shortcut Group]
Name=Stop
Exec=strawberry --stop
TargetEnvironment=Unity
[Previous Shortcut Group]
Name=Previous
Exec=strawberry --previous
TargetEnvironment=Unity
[Next Shortcut Group]
Name=Next
Exec=strawberry --next
TargetEnvironment=Unity

87
dist/strawberry.spec vendored Normal file
View File

@@ -0,0 +1,87 @@
Name: strawberry
Version: 0.1.1
Release: 1.fc13
Summary: A audio player and music collection organiser
Group: Applications/Multimedia
License: GPLv3
URL: http://www.strawbs.org/
Source0: %{name}-0.1.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils liblastfm-devel taglib-devel gettext
BuildRequires: qt5-devel boost-devel gcc-c++ glew-devel libgpod-devel
BuildRequires: cmake gstreamer-devel gstreamer-plugins-base-devel
BuildRequires: libimobiledevice-devel libplist-devel usbmuxd-devel
BuildRequires: libmtp-devel protobuf-devel protobuf-compiler libcdio-devel
BuildRequires: qjson-devel qca2-devel fftw-devel sparsehash-devel
BuildRequires: libchromaprint-devel
Requires: libgpod protobuf-lite libcdio qjson qca-ossl sqlite
# GStreamer codec dependencies
Requires: gstreamer-plugins-ugly
%ifarch x86_64
Requires: gstreamer1.0(decoder-audio/x-vorbis)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-flac)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-speex)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-wav)()(64bit)
%else
Requires: gstreamer1.0(decoder-audio/x-vorbis)
Requires: gstreamer1.0(decoder-audio/x-flac)
Requires: gstreamer1.0(decoder-audio/x-speex)
Requires: gstreamer1.0(decoder-audio/x-wav)
%endif
%description
Strawberry is a modern audio player and music collection organiser.
It is a fork of Clementine. The name is inspired by the band Strawbs.
Features include:
* Organize and play your music collection
* Edit tags on your music
* Download album cover art from Last.fm, musicbrainz, Discogs and Amazon
* Native desktop notifications
* Import and export playlists in multiple formats
* Copy music to your iPod, iPhone, MTP or mass-storage USB player
* Support for multiple backends
%prep
%setup -q -n %{name}-0.1.1
%build
cd bin
%{cmake} .. -DUSE_INSTALL_PREFIX=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
make %{?_smp_mflags}
%install
cd bin
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/usr/share/icons/ubuntu-mono-{dark,light}/apps/24/strawberry-panel*.png
%clean
cd bin
make clean
%files
%defattr(-,root,root,-)
%doc
%{_bindir}/strawberry
%{_bindir}/strawberry-tagreader
%{_datadir}/applications/strawberry.desktop
%{_datadir}/strawberry/projectm-presets
%{_datadir}/kde4/services/strawberry-itms.protocol
%{_datadir}/kde4/services/strawberry-itpc.protocol
%{_datadir}/kde4/services/strawberry-feed.protocol
%{_datadir}/kde4/services/strawberry-zune.protocol
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
%changelog
* ma. feb. 26 2018 0.1.1
- Version 0.1.1

87
dist/strawberry.spec.in vendored Normal file
View File

@@ -0,0 +1,87 @@
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_SPARKLE@.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils liblastfm-devel taglib-devel gettext
BuildRequires: qt5-devel boost-devel gcc-c++ glew-devel libgpod-devel
BuildRequires: cmake gstreamer-devel gstreamer-plugins-base-devel
BuildRequires: libimobiledevice-devel libplist-devel usbmuxd-devel
BuildRequires: libmtp-devel protobuf-devel protobuf-compiler libcdio-devel
BuildRequires: qjson-devel qca2-devel fftw-devel sparsehash-devel
BuildRequires: libchromaprint-devel
Requires: libgpod protobuf-lite libcdio qjson qca-ossl sqlite
# GStreamer codec dependencies
Requires: gstreamer-plugins-ugly
%ifarch x86_64
Requires: gstreamer1.0(decoder-audio/x-vorbis)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-flac)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-speex)()(64bit)
Requires: gstreamer1.0(decoder-audio/x-wav)()(64bit)
%else
Requires: gstreamer1.0(decoder-audio/x-vorbis)
Requires: gstreamer1.0(decoder-audio/x-flac)
Requires: gstreamer1.0(decoder-audio/x-speex)
Requires: gstreamer1.0(decoder-audio/x-wav)
%endif
%description
Strawberry is a modern audio player and music collection organiser.
It is a fork of Clementine. The name is inspired by the band Strawbs.
Features include:
* Organize and play your music collection
* Edit tags on your music
* Download album cover art from Last.fm, musicbrainz, Discogs and Amazon
* Native desktop notifications
* Import and export playlists in multiple formats
* Copy music to your iPod, iPhone, MTP or mass-storage USB player
* Support for multiple backends
%prep
%setup -q -n %{name}-@STRAWBERRY_VERSION_SPARKLE@
%build
cd bin
%{cmake} .. -DUSE_INSTALL_PREFIX=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
make %{?_smp_mflags}
%install
cd bin
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/usr/share/icons/ubuntu-mono-{dark,light}/apps/24/strawberry-panel*.png
%clean
cd bin
make clean
%files
%defattr(-,root,root,-)
%doc
%{_bindir}/strawberry
%{_bindir}/strawberry-tagreader
%{_datadir}/applications/strawberry.desktop
%{_datadir}/strawberry/projectm-presets
%{_datadir}/kde4/services/strawberry-itms.protocol
%{_datadir}/kde4/services/strawberry-itpc.protocol
%{_datadir}/kde4/services/strawberry-feed.protocol
%{_datadir}/kde4/services/strawberry-zune.protocol
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
%changelog
* @RPM_DATE@ @STRAWBERRY_VERSION_RPM_V@
- Version @STRAWBERRY_VERSION_DISPLAY@