public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gtorrentviewer] rawhide: Drop legacy scriptlets; use %{make_build} and %{make_install}
@ 2026-10-13 16:05 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-10-13 16:05 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 16:05 [rpms/gtorrentviewer] rawhide: Drop legacy scriptlets; use %{make_build} and %{make_install} Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox