public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gtorrentviewer] rawhide: Drop legacy scriptlets; use %{make_build} and %{make_install}
Date: Tue, 13 Oct 2026 16:05:41 GMT	[thread overview]
Message-ID: <179190754153.1.14590859790119058768.rpms-gtorrentviewer-2f8a63e9bc70@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gtorrentviewer
Branch : rawhide
Commit : 2f8a63e9bc70e22dbe88d2398dd3cb0b9bbbdeca
Author : Paul Howarth <paul@city-fan.org>
Date   : 2026-10-13T17:03:39+01:00
Stats  : +7/-18 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gtorrentviewer/c/2f8a63e9bc70e22dbe88d2398dd3cb0b9bbbdeca?branch=rawhide

Log:
Drop legacy scriptlets; use %{make_build} and %{make_install}

---
diff --git a/gtorrentviewer.spec b/gtorrentviewer.spec
index ecee050..d2dfdad 100644
--- a/gtorrentviewer.spec
+++ b/gtorrentviewer.spec
@@ -1,6 +1,6 @@
 Name:		gtorrentviewer
 Version:	0.2b
-Release:	59%{?dist}
+Release:	60%{?dist}
 Summary:	A GTK2-based viewer and editor for BitTorrent meta files
 License:	GPL-1.0-or-later
 URL:		http://gtorrentviewer.sourceforge.net/
@@ -22,12 +22,6 @@ BuildRequires:	gettext
 BuildRequires:	intltool
 BuildRequires:	libcurl-devel
 
-# Scriptlets replaced by File Triggers from Fedora 26 onwards
-%if 0%{?fedora} < 26 && 0%{?rhel} < 8
-Requires(post):	  desktop-file-utils
-Requires(postun): desktop-file-utils
-%endif
-
 %description
 GTorrentViewer gives you the ability to see and modify all the possible
 information from .torrent files without having to start downloading, and
@@ -70,10 +64,10 @@ download.
 %define _lto_cflags %{nil}
 
 %configure
-make %{?_smp_mflags}
+%{make_build}
 
 %install
-make install DESTDIR=%{buildroot} INSTALL="install -p"
+%{make_install}
 rm -f %{buildroot}%{_datadir}/GTorrentViewer/README
 desktop-file-install \
 	--vendor "" \
@@ -82,15 +76,6 @@ desktop-file-install \
 	--dir %{buildroot}%{_datadir}/applications \
 	%{buildroot}%{_datadir}/applications/gtorrentviewer.desktop
 
-# Scriptlets replaced by File Triggers from Fedora 26 onwards
-%if 0%{?fedora} < 26 && 0%{?rhel} < 8
-%post
-/usr/bin/update-desktop-database &> /dev/null || :
-
-%postun
-/usr/bin/update-desktop-database &> /dev/null || :
-%endif
-
 %files
 %license COPYING
 %doc AUTHORS ChangeLog README
@@ -102,6 +87,10 @@ desktop-file-install \
 %{_mandir}/man1/gtorrentviewer.1*
 
 %changelog
+* Tue Oct 13 2026 Paul Howarth <paul@city-fan.org> - 0.2b-60
+- Drop legacy scriptlets
+- Use %%{make_build} and %%{make_install}
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.2b-59
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-10-13 16:05 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=179190754153.1.14590859790119058768.rpms-gtorrentviewer-2f8a63e9bc70@fedoraproject.org \
    --to=paul@city-fan.org \
    --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