From b0736418f7b6a48b720c7bbfbcf378dfe52859e8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 5 Dec 2012 13:51:42 +0000 Subject: [PATCH] Add rtl-sdr spec file. --- .gitignore | 2 ++ rtl-sdr.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 .gitignore create mode 100644 rtl-sdr.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee73460 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.tar.gz diff --git a/rtl-sdr.spec b/rtl-sdr.spec new file mode 100644 index 0000000..841e576 --- /dev/null +++ b/rtl-sdr.spec @@ -0,0 +1,77 @@ +%global gitdate 20121205 + +Name: rtl-sdr +Version: 0 +Release: 0.1.git%{gitdate}%{?dist} +Summary: Software Defined Radio driver for Realtek RTL2832U + +License: GPLv2+ +URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr + +# To construct the source archive, update gitdate above and then do: +# cd /tmp +# rm -r rtl-sdr +# git clone git://git.osmocom.org/rtl-sdr.git +# cd rtl-sdr +# git archive -o ../rtl-sdr-git%{gitdate}.tar.gz --prefix=rtl-sdr/ HEAD +Source0: rtl-sdr-git%{gitdate}.tar.gz + +BuildRequires: /usr/bin/autoreconf +BuildRequires: libusbx-devel + + +%description +DVB-T dongles based on the Realtek RTL2832U can be used as a cheap +Software Defined Radio (SDR), since the chip allows transferring the +raw I/Q samples to the host, which is officially used for DAB/DAB+/FM +demodulation. + + +%package devel +Summary: Software Defined Radio driver for Realtek RTL2832U +License: GPLv2+ +Requires: rtl-sdr = %{version}-%{release} +Requires: pkgconfig + + +%description devel +Development packages for %{name}. + + +%prep +%setup -q -n rtl-sdr +autoreconf -i + + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +%make_install +rm $RPM_BUILD_ROOT%{_libdir}/librtlsdr.la + + +%files +%doc COPYING +%{_bindir}/rtl_eeprom +%{_bindir}/rtl_fm +%{_bindir}/rtl_sdr +%{_bindir}/rtl_tcp +%{_bindir}/rtl_test +%{_libdir}/librtlsdr.so.0 +%{_libdir}/librtlsdr.so.0.0.0 + + +%files devel +%doc COPYING README +%{_libdir}/librtlsdr.so +%{_libdir}/pkgconfig/librtlsdr.pc +%{_includedir}/rtl-sdr.h +%{_includedir}/rtl-sdr_export.h + + +%changelog +* Wed Dec 05 2012 Richard W.M. Jones 0-0.1 +- Initial release. -- 1.8.3.1