]> git.pld-linux.org Git - packages/librtlsdr.git/blob - librtlsdr.spec
- completed dependencies, more verbose files in system dirs
[packages/librtlsdr.git] / librtlsdr.spec
1 Summary:        Realtek RTL2832U Software Defined Radio driver library
2 Summary(pl.UTF-8):      Biblioteka sterownika Realtek RTL2832U Software Defined Radio
3 Name:           librtlsdr
4 Version:        0.5.3
5 Release:        2
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        https://github.com/steve-m/librtlsdr/archive/v%{version}.tar.gz
9 # Source0-md5:  9f6d8c4b5e1998305d0346689b43db98
10 URL:            http://sdr.osmocom.org/trac/wiki/rtl-sdr
11 BuildRequires:  cmake >= 2.6
12 BuildRequires:  libusb-devel >= 1.0
13 BuildRequires:  pkgconfig
14 Obsoletes:      rtl-sdr < 0.5
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
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
28 %package devel
29 Summary:        Header files for rtlsdr library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki rtlsdr
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33 Obsoletes:      rtl-sdr-devel < 0.5
34 Requires:       libusb-devel >= 1.0
35
36 %description devel
37 Header files for rtlsdr library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki rtlsdr.
41
42 %package static
43 Summary:        Static rtlsdr library
44 Summary(pl.UTF-8):      Statyczna biblioteka rtlsdr
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static rtlsdr library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka rtlsdr.
53
54 %prep
55 %setup -q
56
57 %build
58 %cmake . \
59         -DINSTALL_UDEV_RULES=ON \
60         -DDETACH_KERNEL_DRIVER=OFF \
61         -DLIB_INSTALL_DIR:PATH=%{_libdir}
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
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
89 /etc/udev/rules.d/rtl-sdr.rules
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/librtlsdr.so
94 %{_includedir}/rtl-sdr*.h
95 %{_pkgconfigdir}/librtlsdr.pc
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/librtlsdr.a
This page took 0.055286 seconds and 3 git commands to generate.