Blame dump1090.spec

354840b
%global forgeurl https://github.com/antirez/%{name}
354840b
%global commit          de61bd564f1aa929bae414a70e421acd0b81789a
354840b
354840b
%forgemeta
354840b
Name:           dump1090
354840b
Version:        0
a564e6c
Release:        8%{?dist}
354840b
Summary:        Simple Mode S decoder specifically designed for RTLSDR devices
354840b
354840b
License:        BSD
354840b
URL:            %{forgeurl}
354840b
Source0:        %{forgesource}
354840b
# Man page
354840b
Source1:        dump1090.md
b40d2d9
# Compressed "good" test output
b40d2d9
Source2:	testoutput.gz
c60ae1d
# Sometimes, analysis finds an additional 66 signals at the end
c60ae1d
Source3:	testoutput2.gz
354840b
# Move data file gmap.html from current directory to /usr/share/dump1090
354840b
# so it will run out of the box for any user.
354840b
# There are many ways to run the daemon, and no obvious standard system service.
354840b
# https://github.com/antirez/dump1090/issues/163
354840b
Patch0:         dump1090-share.patch
354840b
354840b
BuildRequires:  gcc rtl-sdr-devel
354840b
BuildRequires:  pandoc
354840b
354840b
%description
354840b
Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices.
354840b
354840b
Install this to use your RTL-SDR to track commercial aircraft in your area.
354840b
354840b
The main features are:
354840b
354840b
* Robust decoding of weak messages, with mode1090 many users observed
354840b
  improved range compared to other popular decoders.
354840b
* Network support: TCP30003 stream (MSG5...), Raw packets, HTTP.
354840b
* Embedded HTTP server that displays the currently detected aircraft on
354840b
  Google Map.
354840b
* Single bit errors correction using the 24 bit CRC.
354840b
* Ability to decode DF11, DF17 messages.
354840b
* Ability to decode DF formats like DF0, DF4, DF5, DF16, DF20 and DF21
354840b
  where the checksum is xored with the ICAO address by brute forcing the
354840b
  checksum field using recently seen ICAO addresses.
354840b
* Decode raw IQ samples from file (using --ifile command line switch).
354840b
* Interactive command-line interface mode where aircraft currently detected
354840b
  are shown as a list refreshing as more data arrives.
354840b
* CPR coordinates decoding and track calculation from velocity.
354840b
* TCP server streaming and receiving raw data to/from connected clients
354840b
  (using --net).
354840b
354840b
%prep
354840b
%forgeautosetup
354840b
# Extract LICENSE from source
354840b
# https://github.com/antirez/dump1090/issues/164
354840b
sed -ne 's/^ \*//' -e '/Copyright/,/DAMAGE\./p' anet.h >LICENSE
354840b
pandoc -s -tman -o %{name}.1 %{SOURCE1}
b40d2d9
zcat %{SOURCE2} >testoutput
c60ae1d
zcat %{SOURCE2} %{SOURCE3} >testoutput2
354840b
354840b
%build
354840b
%set_build_flags
354840b
%make_build 
354840b
354840b
%install
354840b
mkdir -p %{buildroot}%{_bindir}
354840b
mkdir -p %{buildroot}%{_datadir}/%{name}
354840b
install -pm 755 dump1090  %{buildroot}%{_bindir}
354840b
install -pm 644 gmap.html  %{buildroot}%{_datadir}/%{name}
354840b
cp -pr tools  %{buildroot}%{_datadir}/%{name}
354840b
mkdir -p %{buildroot}%{_mandir}/man1
354840b
install -pm 644 %{name}.1 %{buildroot}%{_mandir}/man1
354840b
354840b
%check
c60ae1d
./dump1090 --ifile testfiles/modes1.bin >testout
c60ae1d
diff testout testoutput || diff testout testoutput2
354840b
354840b
%files
354840b
%license LICENSE
354840b
%doc README.md TODO
354840b
%{_bindir}/dump1090
354840b
%{_datadir}/%{name}
354840b
%{_mandir}/man1/%{name}.1.gz
354840b
354840b
%changelog
a564e6c
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-8
a564e6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a564e6c
a551f91
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-7
a551f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a551f91
ea3d036
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-6
ea3d036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ea3d036
45149e6
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-5
45149e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
45149e6
354840b
* Wed Aug 11 2021 Stuart D. Gathman <stuart@gathman.org> 0-4.20210727gitde61bd5
354840b
- Add markdown man page
354840b
354840b
* Wed Aug  4 2021 Stuart D. Gathman <stuart@gathman.org> 0-3.20210727gitde61bd5
354840b
- Minor formatting nits
354840b
354840b
* Mon Aug  2 2021 Stuart D. Gathman <stuart@gathman.org> 0-2.20210727gitde61bd5
354840b
- Link to issue for patch
354840b
- use %%set_build_flags macro
354840b
- use %%forge macros
354840b
- extract LICENSE from anet.h
354840b
- fix perms on gmap.html
354840b
354840b
* Tue Jul 27 2021 Stuart D. Gathman <stuart@gathman.org> 0-1.20210727gitde61bd5
354840b
- Initial RPM