]> git.pld-linux.org Git - packages/librtlsdr.git/blame - librtlsdr.spec
- completed dependencies, more verbose files in system dirs
[packages/librtlsdr.git] / librtlsdr.spec
CommitLineData
c8148c55 1Summary: Realtek RTL2832U Software Defined Radio driver library
bf41f972 2Summary(pl.UTF-8): Biblioteka sterownika Realtek RTL2832U Software Defined Radio
c8148c55 3Name: librtlsdr
489e8a20 4Version: 0.5.3
aee1bb1a 5Release: 2
c8148c55
TP
6License: GPL v2+
7Group: Libraries
8Source0: https://github.com/steve-m/librtlsdr/archive/v%{version}.tar.gz
489e8a20 9# Source0-md5: 9f6d8c4b5e1998305d0346689b43db98
c8148c55 10URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr
cd95402b
JB
11BuildRequires: cmake >= 2.6
12BuildRequires: libusb-devel >= 1.0
13BuildRequires: pkgconfig
bf41f972 14Obsoletes: rtl-sdr < 0.5
c8148c55
TP
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18DVB-T dongles based on the Realtek RTL2832U can be used as a cheap
19SDR, since the chip allows transferring the raw I/Q samples to the
20host, which is officially used for DAB/DAB+/FM demodulation.
21
bf41f972
JB
22%description -l pl.UTF-8
23Moduły (dongle) DVB-T oparte na układzie Realtek RTL2832U mogą służyć
24jako tanie radio programowalne (SDR), ponieważ układ pozwala na
25przesyłanie surowych próbek I/Q do hosta, który odpowiada za
26demodulację DAB/DAB+/FM.
27
c8148c55 28%package devel
bf41f972
JB
29Summary: Header files for rtlsdr library
30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rtlsdr
c8148c55 31Group: Development/Libraries
bf41f972
JB
32Requires: %{name} = %{version}-%{release}
33Obsoletes: rtl-sdr-devel < 0.5
cd95402b 34Requires: libusb-devel >= 1.0
c8148c55
TP
35
36%description devel
cd95402b
JB
37Header files for rtlsdr library.
38
39%description devel -l pl.UTF-8
40Pliki nagłówkowe biblioteki rtlsdr.
c8148c55
TP
41
42%package static
bf41f972
JB
43Summary: Static rtlsdr library
44Summary(pl.UTF-8): Statyczna biblioteka rtlsdr
c8148c55 45Group: Development/Libraries
bf41f972 46Requires: %{name}-devel = %{version}-%{release}
c8148c55
TP
47
48%description static
bf41f972
JB
49Static rtlsdr library.
50
51%description static -l pl.UTF-8
52Statyczna 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
66rm -rf $RPM_BUILD_ROOT
67
68%{__make} install \
69 DESTDIR=$RPM_BUILD_ROOT
70
71%clean
72rm -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
This page took 0.093683 seconds and 4 git commands to generate.