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/ubertooth] rawhide: spec cleanup and modernization
Date: Sat, 08 Aug 2026 00:19:58 GMT [thread overview]
Message-ID: <178614839871.1.11736138527465919641.rpms-ubertooth-b2a0ddbcede3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ubertooth
Branch : rawhide
Commit : b2a0ddbcede30e7bf02b218a6efb1427b93fd855
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-08-07T21:19:49-03:00
Stats : +18/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ubertooth/c/b2a0ddbcede30e7bf02b218a6efb1427b93fd855?branch=rawhide
Log:
spec cleanup and modernization
---
diff --git a/ubertooth.spec b/ubertooth.spec
index d9344dc..3c7dfcf 100644
--- a/ubertooth.spec
+++ b/ubertooth.spec
@@ -27,7 +27,7 @@ BuildRequires: libbtbb-devel
BuildRequires: libpcap-devel
BuildRequires: libusb1-devel
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
+BuildRequires: python3-numpy
BuildRequires: systemd-rpm-macros
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@@ -53,8 +53,10 @@ developing applications that use %{name}.
%package specan-ui
Summary: Graphical spectrum analyzer for %{name}
+Requires: python3-QtPy
+Requires: python3-numpy%{?_isa}
+Requires: python3-pyside6%{?_isa}
Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: python3-QtPy python3-pyside6%{?_isa}
%description specan-ui
The %{name}-specan-ui is a basic spectrum analysis tool for the Ubertooth.
@@ -72,6 +74,11 @@ sed -i "s/version\s*=.*/version = '%{version}',/" \
host/python/specan_ui/setup.py.in \
host/python/specan_ui/setup.py
+%generate_buildrequires
+cd host/python/specan_ui >/dev/null
+%pyproject_buildrequires
+cd - >/dev/null
+
%build
export CMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake \
@@ -84,7 +91,7 @@ export CMAKE_POLICY_VERSION_MINIMUM=3.5
(
cd host/python/specan_ui
- %py3_build
+ %pyproject_wheel
)
@@ -92,10 +99,14 @@ export CMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake_install
(
cd host/python/specan_ui
- %py3_install
+ %pyproject_install
+%pyproject_save_files specan
install -Dp -m755 ubertooth-specan-ui %{buildroot}%{_bindir}
)
+%check
+%pyproject_check_import
+
%files
%license COPYING TRADEMARK
%doc README.md
@@ -111,14 +122,13 @@ export CMAKE_POLICY_VERSION_MINIMUM=3.5
%{_udevrulesdir}/40-ubertooth.rules
%files devel
-%{_includedir}/*
+%{_includedir}/ubertooth.h
+%{_includedir}/ubertooth_*.h
%{_libdir}/lib%{name}.so
-%files specan-ui
+%files specan-ui -f %{pyproject_files}
%doc host/python/specan_ui/README
%{_bindir}/%{name}-specan-ui
-%{python3_sitelib}/specan
-%{python3_sitelib}/specan-%{POSTYEAR}.%{POSTMONTH}.post%{POSTNUM}-py%{python3_version}.egg-info
%changelog
reply other threads:[~2026-08-08 0:19 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=178614839871.1.11736138527465919641.rpms-ubertooth-b2a0ddbcede3@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