public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/linsmith] rawhide: spec cleanup and modernization
@ 2026-06-09 3:22 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-09 3:22 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 3:22 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:22 [rpms/linsmith] 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