Update nbdkit:
[fedora-specs.git] / rtl-sdr.spec
1 %global gitdate 20121205
2
3 Name:           rtl-sdr
4 Version:        0
5 Release:        0.1.git%{gitdate}%{?dist}
6 Summary:        Software Defined Radio driver for Realtek RTL2832U
7
8 License:        GPLv2+
9 URL:            http://sdr.osmocom.org/trac/wiki/rtl-sdr
10
11 # To construct the source archive, update gitdate above and then do:
12 #   cd /tmp
13 #   rm -r rtl-sdr
14 #   git clone git://git.osmocom.org/rtl-sdr.git
15 #   cd rtl-sdr
16 #   git archive -o ../rtl-sdr-git%{gitdate}.tar.gz --prefix=rtl-sdr/ HEAD
17 Source0:        rtl-sdr-git%{gitdate}.tar.gz
18
19 BuildRequires:  /usr/bin/autoreconf
20 BuildRequires:  libusbx-devel
21
22
23 %description
24 DVB-T dongles based on the Realtek RTL2832U can be used as a cheap
25 Software Defined Radio (SDR), since the chip allows transferring the
26 raw I/Q samples to the host, which is officially used for DAB/DAB+/FM
27 demodulation.
28
29
30 %package devel
31 Summary:        Software Defined Radio driver for Realtek RTL2832U
32 License:        GPLv2+
33 Requires:       rtl-sdr = %{version}-%{release}
34 Requires:       pkgconfig
35
36
37 %description devel
38 Development packages for %{name}.
39
40
41 %prep
42 %setup -q -n rtl-sdr
43 autoreconf -i
44
45
46 %build
47 %configure --disable-static
48 make %{?_smp_mflags}
49
50
51 %install
52 %make_install
53 rm $RPM_BUILD_ROOT%{_libdir}/librtlsdr.la
54
55
56 %files
57 %doc COPYING
58 %{_bindir}/rtl_eeprom
59 %{_bindir}/rtl_fm
60 %{_bindir}/rtl_sdr
61 %{_bindir}/rtl_tcp
62 %{_bindir}/rtl_test
63 %{_libdir}/librtlsdr.so.0
64 %{_libdir}/librtlsdr.so.0.0.0
65
66
67 %files devel
68 %doc COPYING README
69 %{_libdir}/librtlsdr.so
70 %{_libdir}/pkgconfig/librtlsdr.pc
71 %{_includedir}/rtl-sdr.h
72 %{_includedir}/rtl-sdr_export.h
73
74
75 %changelog
76 * Wed Dec 05 2012 Richard W.M. Jones <rjones@redhat.com> 0-0.1
77 - Initial release.