Name: clementine Version: 1.4.6 Release: 31.gab9da2db4%{?dist} Summary: A music player and library organiser License: GPLv3 URL: http://www.clementine-player.org/ Source0: %{name}-1.4.6-031.dev-gab9da2db4.tar.xz # Crash reporting. Clementine's own packages, built by its CI and COPR, are # configured with the DSN of Clementine's Sentry project (SENTRY_DSN and # SENTRY_NATIVE_VERSION in .github/workflows/all.yml), and offer to send a # report after a crash. Anyone else's build has no DSN and leaves crash # reporting out, so it never sends reports to a project that has none of its # symbols. Fedora doesn't package sentry-native, so the spec builds the # release it's given, static, from its source archive: COPR builds offline. %global sentry_dsn %{nil}https://655f8ef3c58fb344dd15e72df0d50f95@o4512210144526336.ingest.de.sentry.io/4512210147606608 %global sentry_native_version %{nil}0.17.6 %if "%{sentry_dsn}" != "" %if "%{sentry_native_version}" == "" %{error:A Sentry DSN needs SENTRY_NATIVE_VERSION, the sentry-native release to build} %endif # The release's archive, unlike GitHub's own, has its submodules: Crashpad. Source1: https://github.com/getsentry/sentry-native/releases/download/%{sentry_native_version}/sentry-native.zip Provides: bundled(sentry-native) = %{sentry_native_version} BuildRequires: unzip BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(zlib) # Sentry is sent the debug files of every build, so they keep to function # names and line tables, which is what crash reports need, as the debs do. %global optflags %{optflags} -g1 %endif # Sentry reads the debuginfo package's files to name functions and lines in # crash reports, but can't follow DWARF that dwz moves out into a file # shared between executables, as it may now that there are three. %global _find_debuginfo_dwz_opts %{nil} BuildRequires: cmake BuildRequires: make BuildRequires: git BuildRequires: gettext BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: sparsehash-devel BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme BuildRequires: libappstream-glib BuildRequires: mesa-libGL-devel BuildRequires: qtsingleapplication-qt6-devel BuildRequires: qtsinglecoreapplication-qt6-devel 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(fftw3) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(protobuf) BuildRequires: pkgconfig(sqlite3) >= 3.7 BuildRequires: pkgconfig(taglib) >= 1.11 BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Gui) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(Qt6Concurrent) BuildRequires: pkgconfig(Qt6Sql) BuildRequires: pkgconfig(Qt6Network) BuildRequires: pkgconfig(Qt6Xml) BuildRequires: pkgconfig(Qt6OpenGL) BuildRequires: pkgconfig(Qt6OpenGLWidgets) BuildRequires: pkgconfig(Qt6DBus) BuildRequires: pkgconfig(Qt6Test) BuildRequires: pkgconfig(Qt6Core5Compat) BuildRequires: cmake(Qt6LinguistTools) # liblastfm isn't a dependency any more - Last.fm scrobbling talks directly # to the web service API now (src/internet/lastfm/lastfmws.*). 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(libcdio) BuildRequires: pkgconfig(libchromaprint) BuildRequires: pkgconfig(libcryptopp) BuildRequires: pkgconfig(libgpod-1.0) BuildRequires: pkgconfig(libmtp) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libudf) # GStreamer codec dependencies Requires: gstreamer1-plugins-ugly-free %if 0%{?__isa_bits} == 64 Requires: gstreamer1(decoder-audio/x-vorbis)()(64bit) Requires: gstreamer1(decoder-audio/x-flac)()(64bit) Requires: gstreamer1(decoder-audio/x-speex)()(64bit) Requires: gstreamer1(decoder-audio/x-wav)()(64bit) %else Requires: gstreamer1(decoder-audio/x-vorbis) Requires: gstreamer1(decoder-audio/x-flac) Requires: gstreamer1(decoder-audio/x-speex) Requires: gstreamer1(decoder-audio/x-wav) %endif %description Clementine is a modern music player and library organiser. It is inspired by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and playing your music. Features include: * Search and play your local music library * Listen to internet radio from Last.fm, SomaFM, IntergalacticFM, Magnatune, Jamendo and Icecast * Create smart playlists and dynamic playlists * Tabbed playlists, import and export M3U, XSPF, PLS and ASX * Visualisations from projectM * Lyrics and artist biographies and photos * Transcode music into MP3, Ogg Vorbis, Ogg Speex, FLAC or AAC * Edit tags on MP3 and OGG files, organise your music * Download missing album cover art from Last.fm * Cross-platform - works on Windows, Mac OS X and Linux * Native desktop notifications on Linux (libnotify) and Mac OS X (Growl) * Remote control using a Wii Remote, MPRIS or the command-line * Copy music to your iPod, iPhone, MTP or mass-storage USB player * Queue manager %prep # Unpack into a directory whose name stays the same from one commit to the # next. The tarball's own top-level directory is named after git describe, # and a build directory that's renamed on every commit ends up in the debug # info, which ccache folds into its hash - so CI's cache never hit. -C strips # that top-level directory; debugedit still maps whatever the build directory # is called to /usr/src/debug/--., so the # debuginfo and debugsource packages come out the same. %setup -q -n %{name} -C %if "%{sentry_dsn}" != "" mkdir sentry-native unzip -q %{SOURCE1} -d sentry-native %endif %build %if "%{sentry_dsn}" != "" # sentry-native with its Crashpad backend, static, built with Fedora's flags # and installed in the build directory: only crashpad_handler is packaged, # by Clementine's own install. %set_build_flags cmake -S sentry-native -B sentry-build \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX="$PWD/sentry-install" \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DSENTRY_BACKEND=crashpad \ -DSENTRY_BUILD_SHARED_LIBS=OFF \ -DSENTRY_BUILD_TESTS=OFF \ -DSENTRY_BUILD_EXAMPLES=OFF cmake --build sentry-build --parallel %{_smp_build_ncpus} cmake --install sentry-build sentry_prefix="$PWD/sentry-install" %endif cd bin %{cmake} .. -DUSE_INSTALL_PREFIX=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DFORCE_GIT_REVISION=1.4.6-31-gab9da2db4 \ %if "%{sentry_dsn}" != "" -DENABLE_SENTRY=ON -DCMAKE_PREFIX_PATH="$sentry_prefix" "-DSENTRY_DSN=%{sentry_dsn}" \ %endif %{nil} %{cmake_build} %install cd bin %{cmake_install} rm -f $RPM_BUILD_ROOT/usr/share/icons/ubuntu-mono-{dark,light}/apps/24/clementine-panel*.png %files %defattr(-,root,root,-) %doc %{_bindir}/clementine %{_bindir}/clementine-tagreader %if "%{sentry_dsn}" != "" %dir %{_libexecdir}/clementine %{_libexecdir}/clementine/crashpad_handler %endif %dir %{_datadir}/metainfo/ %{_datadir}/metainfo/org.clementine_player.Clementine.appdata.xml %{_datadir}/applications/org.clementine_player.Clementine.desktop %{_datadir}/kservices5/clementine-itms.protocol %{_datadir}/kservices5/clementine-itpc.protocol %{_datadir}/kservices5/clementine-feed.protocol %{_datadir}/kservices5/clementine-zune.protocol %{_datadir}/icons/hicolor/64x64/apps/org.clementine_player.Clementine.png %{_datadir}/icons/hicolor/128x128/apps/org.clementine_player.Clementine.png %{_datadir}/icons/hicolor/scalable/apps/org.clementine_player.Clementine.svg %changelog * Sat Nov 21 2026 David Sansome - 1.4.6 - Version 1.4.6-031.dev-gab9da2db4