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/ktechlab] rawhide: spec cleanup and modernization
Date: Tue, 09 Jun 2026 02:54:40 GMT	[thread overview]
Message-ID: <178097368010.1.10157787980778848433.rpms-ktechlab-e3c464ec17b3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ktechlab
Branch : rawhide
Commit : e3c464ec17b397174d3da6ea6e54d0e133a68ced
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-06-08T23:52:14-03:00
Stats  : +13/-17 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ktechlab/c/e3c464ec17b397174d3da6ea6e54d0e133a68ced?branch=rawhide

Log:
spec cleanup and modernization

---
diff --git a/.gitignore b/.gitignore
index 205060e..cd5b3da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-ktechlab-0.3.7.tar.gz
-/ktechlab-0.40.1.tar.xz
-/ktechlab-0.50.0.tar.xz
-/ktechlab-0.51.0.tar.xz
+/ktechlab-*.tar.xz

diff --git a/ktechlab.spec b/ktechlab.spec
index 5d28b9a..2e8a503 100644
--- a/ktechlab.spec
+++ b/ktechlab.spec
@@ -2,8 +2,7 @@ Name:           ktechlab
 Version:        0.51.0
 Release:        %autorelease
 Summary:        Development and simulation of micro-controllers and electronic circuits
-# Automatically converted from old format: GPLv2 - review is highly recommended.
-License:        GPL-2.0-only
+License:        GPL-2.0-or-later
 URL:            https://invent.kde.org/sdk/ktechlab
 Source:         https://download.kde.org/unstable/ktechlab/%{name}-%{version}.tar.xz
 BuildRequires:  cmake
@@ -26,7 +25,7 @@ BuildRequires:  kf5-kwidgetsaddons-devel
 BuildRequires:  kf5-kwindowsystem-devel
 BuildRequires:  kf5-kxmlgui-devel
 BuildRequires:  qt5-qtserialport-devel
-BuildRequires:  qt5-qtserialport
+BuildRequires:  libappstream-glib
 
 # Ktechlab requires gputils for PIC simulation.
 Requires:       electronics-menu
@@ -60,33 +59,33 @@ export CMAKE_POLICY_VERSION_MINIMUM=3.5
 %cmake_install
 
 
-#fedora-specific : setting default path for sdcc
-%{__mkdir} -p %{buildroot}%{_sysconfdir}/profile.d
+# fedora-specific: setting default path for sdcc
+mkdir -p %{buildroot}%{_sysconfdir}/profile.d
 cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh << EOF
 # setting default path for sdcc - fedora
 export PATH=\$PATH:%{_libexecdir}/sdcc
 EOF
 
 # Fix absolute symlink
-%{__rm} -f %{buildroot}%{_docdir}/HTML/en/%{name}/common
+rm -f %{buildroot}%{_docdir}/HTML/en/%{name}/common
 
-%find_lang %{name}
+%find_lang %{name} --with-kde --with-html
 
-%post
-source %{_sysconfdir}/profile.d/%{name}.sh
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.ktechlab.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.kde.ktechlab.appdata.xml
 
 %files -f %{name}.lang
 %doc AUTHORS ChangeLog TODO
-%doc %{_datadir}/doc/HTML/*/%{name}
 %license COPYING
 %{_bindir}/%{name}
 %{_bindir}/microbe
 %{_datadir}/config.kcfg/%{name}.kcfg
 %{_datadir}/applications/org.kde.ktechlab.desktop
 %{_datadir}/katepart5/syntax/microbe.xml
-%{_datadir}/%{name}/*
-%{_datadir}/kxmlgui5/%{name}/*
-%{_datadir}/metainfo/org.kde.ktechlab.appdata.xml
+%{_datadir}/%{name}/
+%{_datadir}/kxmlgui5/%{name}/
+%{_metainfodir}/org.kde.ktechlab.appdata.xml
 %{_datadir}/mime/packages/ktechlab_mime.xml
 %{_datadir}/icons/hicolor/*/*/*.png
 %{_sysconfdir}/profile.d/%{name}.sh

                 reply	other threads:[~2026-06-09  2:54 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=178097368010.1.10157787980778848433.rpms-ktechlab-e3c464ec17b3@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