|
|
eb577d2 |
# Only python2 is supported
|
|
|
eb577d2 |
Name: rtlsdr-scanner
|
|
|
842cc1b |
Version: 1.0.22497.10311
|
|
|
842cc1b |
Release: 1%{?dist}
|
|
|
eb577d2 |
Summary: Frequency scanning GUI for RTL2832 based DVB-T dongles
|
|
|
eb577d2 |
License: GPLv3
|
|
|
eb577d2 |
Group: Applications/Engineering
|
|
|
eb577d2 |
URL: http://eartoearoak.com/software/rtlsdr-scanner
|
|
|
eb577d2 |
Source0: https://github.com/EarToEarOak/RTLSDR-Scanner/archive/v%{version}.tar.gz#/RTLSDR-Scanner-%{version}.tar.gz
|
|
|
eb577d2 |
Source1: rtlsdr-scanner.desktop
|
|
|
842cc1b |
#BuildRequires: python2-setuptools
|
|
|
eb577d2 |
BuildRequires: python2-devel, ImageMagick, desktop-file-utils
|
|
|
eb577d2 |
Requires: wxPython, python2-matplotlib, python2-matplotlib-wx, numpy
|
|
|
eb577d2 |
Requires: python-pillow, pyserial, python2-pyrtlsdr, hicolor-icon-theme
|
|
|
eb577d2 |
BuildArch: noarch
|
|
|
eb577d2 |
# distribution specific patch changing paths and modularizing the code
|
|
|
842cc1b |
Patch0: rtlsdr-scanner-1.0.22497.10311-fedora.patch
|
|
|
842cc1b |
Patch1: rtlsdr-scanner-1.0.22497.10311-relative-imports.patch
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%description
|
|
|
eb577d2 |
Frequency scanning GUI for RTL2832 based DVB-T dongles. In other
|
|
|
eb577d2 |
words a cheap, simple Spectrum Analyser.
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%package doc
|
|
|
eb577d2 |
Summary: Documentation files for rtlsdr-scanner
|
|
|
eb577d2 |
Requires: %{name} = %{version}-%{release}
|
|
|
eb577d2 |
BuildArch: noarch
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%description doc
|
|
|
eb577d2 |
%{summary}.
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%prep
|
|
|
eb577d2 |
%setup -qn RTLSDR-Scanner-%{version}
|
|
|
eb577d2 |
%patch0 -p1
|
|
|
842cc1b |
%patch1 -p1
|
|
|
eb577d2 |
|
|
|
eb577d2 |
find src -name '*.py' | xargs sed -i '1s|^#!.*|#!%{__python2}|'
|
|
|
eb577d2 |
|
|
|
eb577d2 |
# rtlsdr_scan_diag.py is not needed in distribution
|
|
|
eb577d2 |
rm -f src/rtlsdr_scan_diag.py
|
|
|
eb577d2 |
|
|
|
eb577d2 |
mv src/rtlsdr_scan.py ./rtlsdr_scan
|
|
|
eb577d2 |
|
|
|
eb577d2 |
# icon
|
|
|
eb577d2 |
convert rtlsdr_scan.ico rtlsdr_scan.png
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%build
|
|
|
842cc1b |
#%%py2_build
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%install
|
|
|
842cc1b |
#%%py2_install
|
|
|
842cc1b |
|
|
|
eb577d2 |
install -Dpm 0755 rtlsdr_scan %{buildroot}%{_bindir}/rtlsdr_scan
|
|
|
842cc1b |
install -Dpm 0644 -t %{buildroot}%{python2_sitelib}/rtlsdr_scanner src/*
|
|
|
eb577d2 |
install -Dpm 0644 -t %{buildroot}%{_datadir}/%{name}/res res/*
|
|
|
eb577d2 |
|
|
|
eb577d2 |
# icon
|
|
|
eb577d2 |
install -Dpm 0644 rtlsdr_scan-8.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/rtlsdr_scan.png
|
|
|
eb577d2 |
|
|
|
eb577d2 |
# desktop file
|
|
|
eb577d2 |
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
eb577d2 |
desktop-file-install --add-category="Utility" \
|
|
|
eb577d2 |
--dir=%{buildroot}%{_datadir}/applications \
|
|
|
eb577d2 |
%{SOURCE1}
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%post
|
|
|
eb577d2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%postun
|
|
|
eb577d2 |
if [ $1 -eq 0 ] ; then
|
|
|
eb577d2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
eb577d2 |
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
eb577d2 |
fi
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%posttrans
|
|
|
eb577d2 |
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%files
|
|
|
eb577d2 |
%license COPYING
|
|
|
eb577d2 |
%doc readme.md
|
|
|
eb577d2 |
%{_bindir}/rtlsdr_scan
|
|
|
eb577d2 |
%{_datadir}/icons/hicolor/256x256/apps/rtlsdr_scan.png
|
|
|
eb577d2 |
%{_datadir}/applications/rtlsdr-scanner.desktop
|
|
|
eb577d2 |
%{_datadir}/%{name}
|
|
|
842cc1b |
%{python2_sitelib}/rtlsdr_scanner/
|
|
|
842cc1b |
#%{python2_sitelib}/rtlsdr_scanner-%{version}-*.egg-info
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%files doc
|
|
|
eb577d2 |
%doc doc/Manual.pdf
|
|
|
eb577d2 |
|
|
|
eb577d2 |
%changelog
|
|
|
842cc1b |
* Thu Oct 13 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22497.10311-1
|
|
|
842cc1b |
- New version
|
|
|
842cc1b |
- Fixed imports to be relative
|
|
|
842cc1b |
Resolves: rhbz#1383513
|
|
|
842cc1b |
|
|
|
adfbc22 |
* Tue Sep 20 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-3
|
|
|
adfbc22 |
- Rebuilt for python2-matplotlib
|
|
|
adfbc22 |
|
|
|
eb577d2 |
* Fri Jul 15 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-2
|
|
|
eb577d2 |
- Fixed icon packaging according to review
|
|
|
eb577d2 |
|
|
|
eb577d2 |
* Tue Apr 12 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.22298.18049-1
|
|
|
eb577d2 |
- Initial release
|