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