public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lterm] rawhide: spec cleanup and modernization
@ 2026-06-09 3:29 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-09 3:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/lterm
Branch : rawhide
Commit : b402a44b7ca8c768c6673e233280106f0485ae18
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-06-09T00:19:51-03:00
Stats : +27/-16 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/lterm/c/b402a44b7ca8c768c6673e233280106f0485ae18?branch=rawhide
Log:
spec cleanup and modernization
---
diff --git a/.gitignore b/.gitignore
index c4a8d8b..7c7cb13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/lterm-1.5.1.tar.gz
+/lterm-*.tar.gz
diff --git a/lterm.spec b/lterm.spec
index f6816e5..35294fb 100644
--- a/lterm.spec
+++ b/lterm.spec
@@ -1,22 +1,23 @@
-%define _legacy_common_support 1
+%global _legacy_common_support 1
Name: lterm
Version: 1.5.1
-Release: 23%{?dist}
+Release: 24%{?dist}
Summary: Terminal and multi protocol client
# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
URL: http://%{name}.sourceforge.net/
-Source0: https://sourceforge.net/projects/%{name}/files/1.5/%{name}-%{version}.tar.gz
-Patch0: lterm-c99.patch
-Patch1: lterm-c99-2.patch
-Patch2: lterm-c99-3.patch
-Patch3: lterm-c99-4.patch
-Patch4: lterm-c99-5.patch
-Patch5: lterm-c99-6.patch
-Patch6: lterm-c99-7.patch
-Patch7: lterm-c99-8.patch
-Patch8: lterm-c99-9.patch
+Source: https://sourceforge.net/projects/%{name}/files/1.5/%{name}-%{version}.tar.gz
+
+Patch: lterm-c99.patch
+Patch: lterm-c99-2.patch
+Patch: lterm-c99-3.patch
+Patch: lterm-c99-4.patch
+Patch: lterm-c99-5.patch
+Patch: lterm-c99-6.patch
+Patch: lterm-c99-7.patch
+Patch: lterm-c99-8.patch
+Patch: lterm-c99-9.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@@ -24,8 +25,8 @@ BuildRequires: gtk2-devel
BuildRequires: vte-devel
BuildRequires: openssl-devel
BuildRequires: libssh-devel
-BuildRequires: desktop-file-utils
-BuildRequires: make
+BuildRequires: desktop-file-utils
+BuildRequires: make
%description
It is mainly used as SSH/Telnet client
@@ -36,6 +37,7 @@ It is mainly used as SSH/Telnet client
%build
export CFLAGS="${CFLAGS} -std=gnu99"
%configure --with-gtk2
+%make_build
%install
%make_install
@@ -46,16 +48,25 @@ desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
+# Remove mime database files generated by update-mime-database during make install.
+# Fedora's shared-mime-info file triggers will regenerate the database on the target system.
+rm -rf %{buildroot}%{_datadir}/mime/{XMLnamespaces,aliases,generic-icons,globs,globs2,icons,magic,mime.cache,subclasses,treemagic,types,version,application}
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%license COPYING
%doc README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/
-%{_datadir}/mime/*
+%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/%{name}.desktop
%changelog
+* Tue Jun 09 2026 Filipe Rosset <rosset.filipe@gmail.com> - 1.5.1-24
+- spec cleanup and modernization
+
* Mon Feb 23 2026 Filipe Rosset <rosset.filipe@gmail.com> - 1.5.1-23
- Fix FTBFS rhbz#2434799
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 3:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 3:29 [rpms/lterm] rawhide: spec cleanup and modernization Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox