Compare commits

..

1 commit

Author SHA1 Message Date
Jaroslav Škarvada
d08e4f4484 Fixed cython build requirement
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-10-31 17:44:54 +01:00
3 changed files with 16 additions and 159 deletions

View file

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.jopohl.urh</id>
<launchable type="desktop-id">urh.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<name>Universal Radio Hacker</name>
<developer_name>Dr. Johannes Pohl</developer_name>
<summary>Investigate Wireless Protocols Like A Boss</summary>
<description>
<p>
The Universal Radio Hacker (URH) is a complete suite for wireless protocol investigation with native support for many
common Software Defined Radios. URH allows easy demodulation of signals combined with an automatic detection of
modulation parameters making it a breeze to identify the bits and bytes that fly over the air.
</p>
<p>
As data often gets encoded before transmission, URH offers customizable decodings to crack even sophisticated encodings
like CC1101 data whitening. When it comes to protocol reverse-engineering, URH is helpful in two ways. You can either
manually assign protocol fields and message types or let URH automatically infer protocol fields with a rule-based
intelligence. Finally, URH entails a fuzzing component aimed at stateless protocols and a simulation environment
for stateful attacks.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://asciiwolf.fedorapeople.org/appstream/screenshots/urh/1.png</image>
<caption>Get the data out of raw signals</caption>
</screenshot>
<screenshot>
<image>https://asciiwolf.fedorapeople.org/appstream/screenshots/urh/2.png</image>
<caption>Keep an overview even on complex protocols</caption>
</screenshot>
<screenshot>
<image>https://asciiwolf.fedorapeople.org/appstream/screenshots/urh/3.png</image>
<caption>Record and send signals</caption>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/jopohl/urh</url>
<url type="bugtracker">https://github.com/jopohl/urh/issues</url>
<content_rating type="oars-1.1"/>
</component>

View file

@ -1 +1 @@
SHA512 (urh-2.10.0.tar.gz) = 0e46c7f74b1108ed32128cb1b3034b62ec03595057e5822c7e27e9340d2b81cc6240376bef3d3ba5b03e47396ccdfd737cb911788a1f36be2be30928e101fc57
SHA512 (urh-2.9.5.tar.gz) = 7f04f041963103aab4a67fd5fd8f874339cad04da846236b0ec4584553ae6b4a6469c2505cec7c67f72d848d0eb90a4996753802c65535914e70a943d40e6970

132
urh.spec
View file

@ -1,12 +1,14 @@
%{?python_enable_dependency_generator}
# python 2 not supported
Name: urh
Version: 2.10.0
Release: 7%{?dist}
Version: 2.9.5
Release: 1%{?dist}
Summary: Universal Radio Hacker: investigate wireless protocols like a boss
# Automatically converted from old format: ASL 2.0 and GPLv2 - review is highly recommended.
License: Apache-2.0 AND GPL-2.0-only
License: ASL 2.0 and GPLv2
URL: https://github.com/jopohl/urh
Source0: https://github.com/jopohl/urh/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: io.github.jopohl.urh.metainfo.xml
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: gcc-c++
BuildRequires: python3-numpy
@ -15,12 +17,11 @@ BuildRequires: airspyone_host-devel
BuildRequires: hackrf-devel
BuildRequires: rtl-sdr-devel
BuildRequires: uhd-devel
BuildRequires: python3-pyqt6
BuildRequires: xorg-x11-server-Xvfb
# Unpinning Cython raised upstream: https://github.com/jopohl/urh/issues/1087
BuildRequires: python3-qt5
# temporal workaround until upstream adds support for cython-3.0.0
BuildRequires: python3-cython
Requires: python3-numpy
Requires: python3-pyqt6
Requires: python3-qt5
%description
The Universal Radio Hacker is a software for investigating unknown wireless
@ -45,17 +46,12 @@ pushd src/urh/dev/native/lib
rm -rf win
popd
sed -i 's/"cython<3.0.0"/"cython"/' setup.py
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%py3_build
%install
%pyproject_install
%pyproject_save_files urh
%py3_install
# remove cpp files generated by cython
pushd %{buildroot}%{python3_sitearch}/urh/dev/native/lib
@ -75,115 +71,17 @@ desktop-file-install --add-category="Utility" \
--dir=%{buildroot}%{_datadir}/applications \
data/urh.desktop
# metainfo file
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_metainfodir}/io.github.jopohl.urh.metainfo.xml
%check
# https://github.com/jopohl/urh/issues/1149
#xvfb-run pytest -s -v tests
%files -f %{pyproject_files}
%files
%license LICENSE
%doc README.md
%{_bindir}/urh
%{_bindir}/urh_cli
%{_datadir}/icons/hicolor/128x128/apps/urh.png
%{_datadir}/applications/urh.desktop
%{_metainfodir}/io.github.jopohl.urh.metainfo.xml
%{python3_sitearch}/urh
%{python3_sitearch}/urh-%{version}-*.egg-info
%changelog
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 2.10.0-7
- Rebuilt for Python 3.15.0b4 ABI change
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 2.10.0-5
- Rebuilt for Python 3.15
* Tue Apr 28 2026 Jaroslav Škarvada <jskarvad@redhat.com> - 2.10.0-4
- Rebuilt for new uhd
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Thu Jan 15 2026 Jaroslav Škarvada <jskarvad@redhat.com> - 2.10.0-2
- Converted to new python packaging
Resolves: rhbz#2378489
* Sat Jan 03 2026 Jaroslav Škarvada <jskarvad@redhat.com> - 2.10.0-1
- New version
Resolves: rhbz#2423176
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.9.8-10
- Rebuilt for Python 3.14.0rc3 bytecode
* Thu Sep 11 2025 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.8-9
- Rebuilt for new uhd
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.9.8-8
- Rebuilt for Python 3.14.0rc2 bytecode
* Thu Jul 31 2025 Charalampos Stratakis <cstratak@redhat.com> - 2.9.8-7
- Fix build failures with Cython >= 3.1
Resolves: rhbz#2377057
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 2.9.8-5
- Rebuilt for Python 3.14
* Mon Mar 17 2025 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.8-4
- Rebuilt for new uhd
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Jan 6 2025 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.8-2
- Relaxed numpy dependency, this may cause problems with the GUI
Resolves: rhbz#2332202
* Sat Nov 16 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.8-1
- New version
Resolves: rhbz#2325899
* Wed Aug 07 2024 Miroslav Suchý <msuchy@redhat.com> - 2.9.6-9
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jul 15 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.6-7
- Rebuilt for new uhd
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 2.9.6-6
- Rebuilt for Python 3.13
* Tue Apr 9 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.6-5
- Rebuilt for new rtl-sdr
* Thu Apr 4 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.6-4
- Fixed FTBFS with python-3.13
Resolves: rhbz#2272955
* Mon Jan 29 2024 Daniel Rusek <mail@asciiwolf.com> - 2.9.6-3
- Added AppStream metadata
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 16 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.6-1
- New version
Resolves: rhbz#2258401
* Wed Nov 22 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.5-3
- Rebuilt for new uhd
* Mon Nov 13 2023 Karolina Surma <ksurma@redhat.com> - 2.9.5-2
- Stop pinning Cython to 0.29, package builds with Cython 3 too
* Tue Oct 31 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.9.5-1
- New version
Resolves: rhbz#2246830