]>
Commit | Line | Data |
---|---|---|
c8148c55 | 1 | Summary: Realtek RTL2832U Software Defined Radio driver library |
bf41f972 | 2 | Summary(pl.UTF-8): Biblioteka sterownika Realtek RTL2832U Software Defined Radio |
c8148c55 | 3 | Name: librtlsdr |
489e8a20 | 4 | Version: 0.5.3 |
aee1bb1a | 5 | Release: 2 |
c8148c55 TP |
6 | License: GPL v2+ |
7 | Group: Libraries | |
8 | Source0: https://github.com/steve-m/librtlsdr/archive/v%{version}.tar.gz | |
489e8a20 | 9 | # Source0-md5: 9f6d8c4b5e1998305d0346689b43db98 |
c8148c55 | 10 | URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr |
cd95402b JB |
11 | BuildRequires: cmake >= 2.6 |
12 | BuildRequires: libusb-devel >= 1.0 | |
13 | BuildRequires: pkgconfig | |
bf41f972 | 14 | Obsoletes: rtl-sdr < 0.5 |
c8148c55 TP |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | DVB-T dongles based on the Realtek RTL2832U can be used as a cheap | |
19 | SDR, since the chip allows transferring the raw I/Q samples to the | |
20 | host, which is officially used for DAB/DAB+/FM demodulation. | |
21 | ||
bf41f972 JB |
22 | %description -l pl.UTF-8 |
23 | Moduły (dongle) DVB-T oparte na układzie Realtek RTL2832U mogą służyć | |
24 | jako tanie radio programowalne (SDR), ponieważ układ pozwala na | |
25 | przesyłanie surowych próbek I/Q do hosta, który odpowiada za | |
26 | demodulację DAB/DAB+/FM. | |
27 | ||
c8148c55 | 28 | %package devel |
bf41f972 JB |
29 | Summary: Header files for rtlsdr library |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rtlsdr | |
c8148c55 | 31 | Group: Development/Libraries |
bf41f972 JB |
32 | Requires: %{name} = %{version}-%{release} |
33 | Obsoletes: rtl-sdr-devel < 0.5 | |
cd95402b | 34 | Requires: libusb-devel >= 1.0 |
c8148c55 TP |
35 | |
36 | %description devel | |
cd95402b JB |
37 | Header files for rtlsdr library. |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki rtlsdr. | |
c8148c55 TP |
41 | |
42 | %package static | |
bf41f972 JB |
43 | Summary: Static rtlsdr library |
44 | Summary(pl.UTF-8): Statyczna biblioteka rtlsdr | |
c8148c55 | 45 | Group: Development/Libraries |
bf41f972 | 46 | Requires: %{name}-devel = %{version}-%{release} |
c8148c55 TP |
47 | |
48 | %description static | |
bf41f972 JB |
49 | Static rtlsdr library. |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka rtlsdr. | |
c8148c55 TP |
53 | |
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
58 | %cmake . \ | |
59 | -DINSTALL_UDEV_RULES=ON \ | |
489e8a20 AM |
60 | -DDETACH_KERNEL_DRIVER=OFF \ |
61 | -DLIB_INSTALL_DIR:PATH=%{_libdir} | |
c8148c55 TP |
62 | |
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS README | |
cd95402b JB |
80 | %attr(755,root,root) %{_bindir}/rtl_adsb |
81 | %attr(755,root,root) %{_bindir}/rtl_eeprom | |
82 | %attr(755,root,root) %{_bindir}/rtl_fm | |
83 | %attr(755,root,root) %{_bindir}/rtl_power | |
84 | %attr(755,root,root) %{_bindir}/rtl_sdr | |
85 | %attr(755,root,root) %{_bindir}/rtl_tcp | |
86 | %attr(755,root,root) %{_bindir}/rtl_test | |
87 | %attr(755,root,root) %{_libdir}/librtlsdr.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/librtlsdr.so.0 | |
c8148c55 TP |
89 | /etc/udev/rules.d/rtl-sdr.rules |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
cd95402b | 93 | %attr(755,root,root) %{_libdir}/librtlsdr.so |
c8148c55 | 94 | %{_includedir}/rtl-sdr*.h |
cd95402b | 95 | %{_pkgconfigdir}/librtlsdr.pc |
c8148c55 TP |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
cd95402b | 99 | %{_libdir}/librtlsdr.a |