eb577d
# Only python2 is supported
eb577d
Name:		rtlsdr-scanner
602626
Version:	1.3.2
d0929a
Release:	4%{?dist}
eb577d
Summary:	Frequency scanning GUI for RTL2832 based DVB-T dongles
eb577d
License:	GPLv3
eb577d
URL:		http://eartoearoak.com/software/rtlsdr-scanner
eb577d
Source0:	https://github.com/EarToEarOak/RTLSDR-Scanner/archive/v%{version}.tar.gz#/RTLSDR-Scanner-%{version}.tar.gz
eb577d
Source1:	rtlsdr-scanner.desktop
602626
# Icon taken from older release of rtlsdr-scanner
602626
Source2:	rtlsdr_scan.png
602626
BuildRequires:	python2-setuptools, python2-visvis
602626
BuildRequires:	python2-devel, desktop-file-utils
d45950
Requires:	python2-wxpython, python2-matplotlib, python2-matplotlib-wx, python2-numpy
d45950
Requires:	python2-pillow, python2-pyserial, python2-pyrtlsdr, hicolor-icon-theme
602626
Requires:	python2-visvis
eb577d
BuildArch:	noarch
602626
# distribution specific patch changing path to resources
602626
Patch0:		rtlsdr-scanner-1.3.2-fedora.patch
eb577d
eb577d
%description
eb577d
Frequency scanning GUI for RTL2832 based DVB-T dongles. In other
eb577d
words a cheap, simple Spectrum Analyser.
eb577d
eb577d
%package doc
eb577d
Summary:	Documentation files for rtlsdr-scanner
eb577d
Requires:	%{name} = %{version}-%{release}
eb577d
BuildArch:	noarch
eb577d
eb577d
%description doc
eb577d
%{summary}.
eb577d
eb577d
%prep
eb577d
%setup -qn RTLSDR-Scanner-%{version}
eb577d
%patch0 -p1
eb577d
602626
find rtlsdr_scanner -name '*.py' | xargs sed -i '1s|^#!.*|#!%{__python2}|'
eb577d
eb577d
# rtlsdr_scan_diag.py is not needed in distribution
602626
rm -f rtlsdr_scanner/rtlsdr_scan_diag.py
eb577d
602626
# fix name of the application
602626
mv rtlsdr_scanner/__main__.py rtlsdr_scan
eb577d
602626
# drop python artefact from resources
602626
rm -f rtlsdr_scanner/res/__init__.py
eb577d
eb577d
%build
602626
%py2_build
eb577d
eb577d
%install
602626
%py2_install
842cc1
602626
install -Dpm 0755 ./rtlsdr_scan %{buildroot}%{_bindir}/rtlsdr_scan
eb577d
602626
# Install resources to correct location
602626
install -Dpm 0644 -t %{buildroot}%{_datadir}/%{name}/res rtlsdr_scanner/res/*
eb577d
602626
# Icon
602626
install -Dpm 0644 %{S:2} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/rtlsdr_scan.png
602626
602626
# Desktop file
eb577d
mkdir -p  %{buildroot}%{_datadir}/applications
eb577d
desktop-file-install --add-category="Utility" \
eb577d
  --dir=%{buildroot}%{_datadir}/applications \
eb577d
  %{SOURCE1}
eb577d
eb577d
%files
eb577d
%license COPYING
eb577d
%doc readme.md
eb577d
%{_bindir}/rtlsdr_scan
eb577d
%{_datadir}/icons/hicolor/256x256/apps/rtlsdr_scan.png
eb577d
%{_datadir}/applications/rtlsdr-scanner.desktop
eb577d
%{_datadir}/%{name}
602626
%{python2_sitelib}/rtlsdr_scanner
602626
%{python2_sitelib}/rtlsdr_scanner-*.egg-info
eb577d
eb577d
%files doc
eb577d
%doc doc/Manual.pdf
eb577d
eb577d
%changelog
d0929a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-4
d0929a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d0929a
7f4b2f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
7f4b2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7f4b2f
65fa50
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
65fa50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
65fa50
602626
* Tue Jul  3 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.3.2-1
602626
- New version
602626
  Resolves: rhbz#1585444
602626
- Dropped relative-imports patch
602626
- Updated fedora patch
602626
d45950
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.22497.10311-6
d45950
- Update Python 2 dependency declarations to new packaging standards
d45950
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d45950
fdb663
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22497.10311-5
fdb663
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fdb663
6c4de2
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.22497.10311-4
6c4de2
- Remove obsolete scriptlets
6c4de2
f8a01d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22497.10311-3
f8a01d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f8a01d
9c0e98
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22497.10311-2
9c0e98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9c0e98
842cc1
* Thu Oct 13 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22497.10311-1
842cc1
- New version
842cc1
- Fixed imports to be relative
842cc1
  Resolves: rhbz#1383513
842cc1
adfbc2
* Tue Sep 20 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-3
adfbc2
- Rebuilt for python2-matplotlib
adfbc2
eb577d
* Fri Jul 15 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-2
eb577d
- Fixed icon packaging according to review
eb577d
eb577d
* Tue Apr 12 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-1
eb577d
- Initial release