public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ktechlab] rawhide: spec cleanup and modernization
@ 2026-06-09 2:54 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-09 2:54 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 2:54 [rpms/ktechlab] 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