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/linsmith] rawhide: spec cleanup and modernization
Date: Tue, 09 Jun 2026 03:22:45 GMT	[thread overview]
Message-ID: <178097536512.1.16185820132918545218.rpms-linsmith-8d3e08627030@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/linsmith
Branch : rawhide
Commit : 8d3e0862703036dbadf123ecb21505bc9b92e5e3
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-06-09T00:22:37-03:00
Stats  : +22/-31 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/linsmith/c/8d3e0862703036dbadf123ecb21505bc9b92e5e3?branch=rawhide

Log:
spec cleanup and modernization

---
diff --git a/.gitignore b/.gitignore
index 09aa07b..fe03eda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1 @@
-linsmith-0.99.12.tar.gz
-/linsmith-0.99.24.tar.gz
-/linsmith-0.99.26.tar.gz
-/linsmith-0.99.28.tar.gz
-/linsmith-0.99.30.tar.gz
-/linsmith-0.99.31.tar.gz
-/linsmith-0.99.32.tar.gz
-/linsmith-0.99.33.tar.gz
+/linsmith-*.tar.gz

diff --git a/linsmith.spec b/linsmith.spec
index e00277f..a1fe953 100644
--- a/linsmith.spec
+++ b/linsmith.spec
@@ -1,18 +1,21 @@
+# Build in C89 mode due to many implicit function declarations.
+%global build_type_safety_c 0
+
 Name:           linsmith
 Version:        0.99.33
 Release:        %autorelease
 Summary:        A Smith charting program
-# Automatically converted from old format: GPLv2 - review is highly recommended.
-License:        GPL-2.0-only
+
+License:        GPL-2.0-or-later
 URL:            http://jcoppens.com/soft/linsmith/index.en.php
-Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source:         http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+
 BuildRequires:  desktop-file-utils
 BuildRequires:  gcc
 BuildRequires:  gettext
 BuildRequires:  libgnomeui-devel
 BuildRequires:  make
 Requires:       electronics-menu
-Requires:       tcl
 
 %description
 linSmith is a Smith Charting program.
@@ -29,47 +32,42 @@ It's main features are:
 %autosetup
 
 %build
-# Build in C89 mode due to many implicit function declarations.
-%global build_type_safety_c 0
 %set_build_flags
 CC="$CC -std=gnu89"
 export CPPFLAGS="$CPPFLAGS -fcommon"
 %configure
 %make_build
 
-
 %install
 %make_install
 
 desktop-file-install \
-    --dir=%{buildroot}/%{_datadir}/applications \
-    --delete-original                           \
-    --remove-category GTK                       \
-    --remove-category GNOME                     \
-    --add-category "Electronics"                \
-    %{_builddir}/%{name}-%{version}/%{name}.desktop
+    --dir=%{buildroot}%{_datadir}/applications \
+    --delete-original \
+    --remove-category GTK \
+    --remove-category GNOME \
+    --add-category "Electronics" \
+    %{name}.desktop
 
 # icon
-cp -p linsmith_icon.xpm %{buildroot}/%{_datadir}/pixmaps/%{name}/
+install -d %{buildroot}%{_datadir}/pixmaps/%{name}
+install -p -m 0644 linsmith_icon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}/
 
 # man file
-%{__mkdir} -p %{buildroot}/%{_datadir}/man/man1
-cp -p doc/linsmith.1 %{buildroot}/%{_datadir}/man/man1
+install -D -p -m 0644 doc/linsmith.1 %{buildroot}%{_mandir}/man1/linsmith.1
 
-#examples
-mv %{buildroot}/%{_datadir}/%{name} examples/
+# examples
+mv %{buildroot}%{_datadir}/%{name} examples
 
 %find_lang %{name}
 
-
 %files -f %{name}.lang
 %doc AUTHORS ChangeLog NEWS README THANKS doc/manual.pdf examples/*
 %license COPYING
 %{_bindir}/%{name}
-%{_datadir}/applications/*%{name}.desktop
-%{_datadir}/pixmaps/%{name}
-%{_datadir}/man/man1/%{name}.1.gz
-
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}/
+%{_mandir}/man1/%{name}.1*
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-06-09  3:22 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=178097536512.1.16185820132918545218.rpms-linsmith-8d3e08627030@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