public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nils Philippsen <nils@tiptoe.de>
To: git-commits@fedoraproject.org
Subject: [rpms/hydrogen] f44: Consolidate with Audinux package and cleanups
Date: Fri, 30 Oct 2026 17:14:49 GMT	[thread overview]
Message-ID: <179338048974.1.3650154288304518845.rpms-hydrogen-97ec6a679724@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/hydrogen
            Branch : f44
            Commit : 97ec6a679724e308096b08108a79273773d53227
            Author : Nils Philippsen <nils@tiptoe.de>
            Date   : 2026-10-29T23:54:06+01:00
            Stats  : +44/-21 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/hydrogen/c/97ec6a679724e308096b08108a79273773d53227?branch=f44

            Log:
            Consolidate with Audinux package and cleanups

- List pkgconfig deps rather than -devel packages where possible
- Document patch
- Remove long obsolete obsoletion
- Clean up desktop file categories
- Validate desktop file
- List individual binaries instead of using wildcards

[skip changelog]

Signed-off-by: Nils Philippsen <nils@tiptoe.de>

---
diff --git a/hydrogen.spec b/hydrogen.spec
index d01fc4d..ab7eb0a 100644
--- a/hydrogen.spec
+++ b/hydrogen.spec
@@ -11,19 +11,9 @@ Source1:      https://github.com/hydrogen-music/documentation/archive/refs/tags/
 SourceLicense:	GPL-2.0-or-later AND GPL-2.0-only AND MIT
 License:      GPL-2.0-or-later
 
+# Fedora-specific, build release with debugging information and don’t use -O3
 Patch0:       %{name}-cxxflags.patch
 
-BuildRequires: alsa-lib-devel
-BuildRequires: desktop-file-utils
-BuildRequires: flac-devel
-BuildRequires: gcc
-BuildRequires: gcc-c++
-BuildRequires: jack-audio-connection-kit-devel
-BuildRequires: pulseaudio-libs-devel
-BuildRequires: ladspa-devel
-BuildRequires: libsndfile-devel
-BuildRequires: libarchive-devel
-BuildRequires: liblo-devel
 BuildRequires: cmake(Qt6Core)
 BuildRequires: cmake(Qt6Widgets)
 BuildRequires: cmake(Qt6Test)
@@ -32,10 +22,23 @@ BuildRequires: cmake(Qt6Xml)
 BuildRequires: cmake(Qt6Network)
 BuildRequires: cmake(Qt6LinguistTools)
 BuildRequires: cmake
-BuildRequires: cppunit-devel
-BuildRequires: make
+BuildRequires: desktop-file-utils
 BuildRequires: doxygen
+BuildRequires: gcc
+BuildRequires: gcc-c++
+# Doesn’t use pkgconfig
+BuildRequires: ladspa-devel
 BuildRequires: libappstream-glib
+BuildRequires: make
+BuildRequires: pkgconfig(alsa)
+BuildRequires: pkgconfig(cppunit)
+BuildRequires: pkgconfig(flac)
+# Build with traditional JACK headers
+BuildRequires: pkgconfig(jack) < 3
+BuildRequires: pkgconfig(libarchive)
+BuildRequires: pkgconfig(liblo)
+BuildRequires: pkgconfig(libpulse)
+BuildRequires: pkgconfig(sndfile)
 
 Requires:      hicolor-icon-theme
 
@@ -46,7 +49,6 @@ professional yet simple and intuitive pattern-based drum programming.
 %package devel
 Summary:    Hydrogen header files
 Requires:   %{name}%{_isa} = %{version}-%{release}
-Obsoletes:  devel <= 0.9.7-9
 
 %description devel
 Header files for the hydrogen drum machine.
@@ -68,10 +70,25 @@ mv documentation-%{docversion} data/doc
 %build
 %cmake \
   -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-  -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-  -DCMAKE_SKIP_INSTALL_RPATH=ON \
-  -DWANT_DEBUG=OFF \
-  -DWANT_QT6=ON
+  -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
+  -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
+  -DWANT_ALSA:BOOL=ON \
+  -DWANT_CPPUNIT:BOOL=ON \
+  -DWANT_DEBUG:BOOL=OFF \
+  -DWANT_JACK:BOOL=ON \
+  -DWANT_JACKSESSION:BOOL=ON \
+  -DWANT_LADSPA:BOOL=ON \
+  -DWANT_LASH:BOOL=ON \
+  -DWANT_LIBARCHIVE:BOOL=ON \
+  -DWANT_LRDF:BOOL=OFF \
+  -DWANT_NSMSESSION:BOOL=ON \
+  -DWANT_OSS:BOOL=OFF \
+  -DWANT_PORTAUDIO:BOOL=OFF \
+  -DWANT_PORTMIDI:BOOL=OFF \
+  -DWANT_PULSEAUDIO:BOOL=ON \
+  -DWANT_SHARED:BOOL=ON \
+  -DWANT_QT6:BOOL=ON \
+  -DWANT_OSC:BOOL=ON
 %cmake_build
 
 %install
@@ -80,14 +97,19 @@ mv documentation-%{docversion} data/doc
 # install hydrogen.desktop properly.
 desktop-file-install \
   --dir %{buildroot}%{_datadir}/applications   \
-  --add-category X-Drumming                    \
+  --add-category AudioVideoEditing             \
   --add-category Midi                          \
+  --add-category Sequencer                     \
+  --add-category X-Drumming                    \
   --add-category X-Jack                        \
-  --add-category AudioVideoEditing             \
+  --add-category X-Sound                       \
   --remove-mime-type text/xml                  \
   --delete-original                            \
   %{buildroot}%{_datadir}/applications/org.hydrogenmusic.Hydrogen.desktop
 
+# Validate desktop hydrogen.desktop
+desktop-file-validate %{buildroot}%{_datadir}/applications/org.hydrogenmusic.Hydrogen.desktop
+
 # Move the icon to the proper place
 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
 cp %{buildroot}%{_datadir}/%{name}/data/img/gray/*.svg \
@@ -104,7 +126,8 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.hydrogenmu
 %doc AUTHORS CHANGELOG.md README.md
 %license COPYING
 %{_bindir}/hydrogen
-%{_bindir}/h2*
+%{_bindir}/h2cli
+%{_bindir}/h2player
 %{_datadir}/hydrogen/
 %exclude %{_datadir}/%{name}/data/doc
 %{_datadir}/applications/org.hydrogenmusic.Hydrogen.desktop

                 reply	other threads:[~2026-10-30 17:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179338048974.1.3650154288304518845.rpms-hydrogen-97ec6a679724@fedoraproject.org \
    --to=nils@tiptoe.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox