public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qbittorrent] rawhide: spec cleanup and modernization
Date: Tue, 28 Jul 2026 17:52:41 GMT	[thread overview]
Message-ID: <178526116180.1.12021310229878792534.rpms-qbittorrent-9107d68ea926@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/qbittorrent
Branch : rawhide
Commit : 9107d68ea926ba6030620f79ac14c7a705b2a370
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-07-25T19:30:34-03:00
Stats  : +22/-22 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/qbittorrent/c/9107d68ea926ba6030620f79ac14c7a705b2a370?branch=rawhide

Log:
spec cleanup and modernization

---
diff --git a/qbittorrent.spec b/qbittorrent.spec
index ab210a5..a55b7e0 100644
--- a/qbittorrent.spec
+++ b/qbittorrent.spec
@@ -19,6 +19,7 @@ BuildRequires: gcc-c++
 BuildRequires: gnupg2
 BuildRequires: ninja-build
 BuildRequires: systemd
+BuildRequires: systemd-rpm-macros
 BuildRequires: cmake(Qt6Core)
 BuildRequires: cmake(Qt6Gui)
 BuildRequires: cmake(Qt6Svg)
@@ -29,12 +30,10 @@ BuildRequires: qt6-linguist
 BuildRequires: rb_libtorrent-devel >= 1.2.12
 BuildRequires: desktop-file-utils
 BuildRequires: boost-devel >= 1.60
-BuildRequires: libappstream-glib
+BuildRequires: appstream
 BuildRequires: zlib-ng-compat-static
 
 Requires: python3
-Recommends: (qgnomeplatform-qt6%{?_isa} if gnome-shell)
-Recommends: (qgnomeplatform-qt6%{?_isa} if cinnamon)
 Requires:   qt6-qtsvg%{?_isa}
 
 %description
@@ -54,46 +53,47 @@ It aims to be as fast as possible and to provide multi-OS, unicode support.
 cp %{SOURCE3} .
 
 %build
-mkdir build-nox
-pushd build-nox
+%define _vpath_builddir build-nox
 %cmake \
  -DSYSTEMD=ON \
  -Wno-dev \
  -GNinja \
  -DQT6=ON \
- -DGUI=OFF \
- ..
+ -DGUI=OFF
+
 %cmake_build
-popd
 
 # Build gui version
-mkdir build
-pushd build
+%define _vpath_builddir build-gui
 %cmake \
  -Wno-dev \
  -DQT6=ON \
- -GNinja \
- ..
+ -GNinja
+
 %cmake_build
-popd
 
 %install
 # install headless version
-pushd build-nox
+%define _vpath_builddir build-nox
 %cmake_install
-popd
 
 # install gui version
-pushd build
+%define _vpath_builddir build-gui
 %cmake_install
-popd
 
-desktop-file-install \
-  --dir=%{buildroot}%{_datadir}/applications/ \
-  %{buildroot}%{_datadir}/applications/org.qbittorrent.qBittorrent.desktop
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/org.qbittorrent.qBittorrent.desktop
+appstreamcli validate --no-net %{buildroot}%{_metainfodir}/org.qbittorrent.qBittorrent.metainfo.xml
+appstreamcli validate --no-net %{buildroot}%{_metainfodir}/org.qbittorrent.qBittorrent-nox.metainfo.xml
+
+%post nox
+%systemd_post qbittorrent-nox@.service
+
+%preun nox
+%systemd_preun qbittorrent-nox@.service
 
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.qbittorrent.qBittorrent.metainfo.xml
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.qbittorrent.qBittorrent-nox.metainfo.xml
+%postun nox
+%systemd_postun_with_restart qbittorrent-nox@.service
 
 %files
 %license COPYING

                 reply	other threads:[~2026-07-28 17:52 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=178526116180.1.12021310229878792534.rpms-qbittorrent-9107d68ea926@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --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