]> git.pld-linux.org Git - packages/rtl-sdr.git/blame - rtl-sdr.spec
- initial
[packages/rtl-sdr.git] / rtl-sdr.spec
CommitLineData
95897afb
AM
1# TODO:
2# - some sane perm/group in udev rules
3%define snap 20140111
4Summary: SDR utilities for Realtek RTL2832 based DVB-T dongles
5Name: rtl-sdr
6Version: 0
7Release: 0.%{snap}.1
8License: GPL v2+
9Group: Applications/Communications
10URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr
11Source0: %{name}-%{snap}.tar.bz2
12# Source0-md5: 137b28d8f48a3db8fa0ae7c1fc2a0522
13BuildRequires: cmake
14BuildRequires: libusb-devel
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18This package can turn your RTL2832 based DVB-T dongle into a SDR
19receiver.
20
21%package devel
22Summary: Development files for rtl-sdr
23Group: Applications/Communications
24Requires: %{name} = %{version}-%{release}
25
26%description devel
27Development files for rtl-sdr.
28
29%prep
30%setup -q -n %{name}
31rm -rf src/getopt
32
33%build
34install -d build
35cd build
36%cmake \
37 -DINSTALL_UDEV_RULES=ON \
38 ..
39%{__make}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%{__make} -C build install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47# remove static libs
48rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%post -p /sbin/ldconfig
54%postun -p /sbin/ldconfig
55
56%files
57%defattr(644,root,root,755)
58%doc AUTHORS COPYING
59%attr(755,root,root) %{_bindir}/rtl_*
60%attr(755,root,root) %{_libdir}/librtlsdr.so.*.*
61%attr(755,root,root) %ghost %{_libdir}/librtlsdr.so.0
62%{_sysconfdir}/udev/rules.d/rtl-sdr.rules
63
64%files devel
65%defattr(644,root,root,755)
66%{_includedir}/rtl*.h
67%attr(755,root,root) %{_libdir}/librtlsdr.so
68%{_pkgconfigdir}/librtlsdr.pc
This page took 0.05416 seconds and 4 git commands to generate.