2017-03-08 13:52:59 +01:00
|
|
|
#
|
|
|
|
# spec file for package libmirisdr
|
|
|
|
#
|
2017-03-08 19:30:08 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-03-08 13:52:59 +01:00
|
|
|
# Copyright (c) 2012-2014 Wojciech Kazubski, wk@ire.pw.edu.pl
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2017-03-08 19:30:08 +01:00
|
|
|
|
2017-03-08 13:52:59 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libmirisdr
|
2017-03-08 19:30:08 +01:00
|
|
|
Version: 0.0.0+git.20130608
|
|
|
|
Release: 0
|
2017-03-08 13:52:59 +01:00
|
|
|
Summary: Support programs for MRi2500
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Productivity/Hamradio/Other
|
2017-03-08 19:30:08 +01:00
|
|
|
Url: http://cgit.osmocom.org/libmirisdr/
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2017-03-08 13:52:59 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Programs that controls Mirics MRi2500 based DVB dongle in raw mode, so
|
|
|
|
it can be used as a SDR receiver.
|
|
|
|
|
|
|
|
%package -n libmirisdr0
|
|
|
|
Summary: SDR driver for MRi2500
|
|
|
|
Group: Hardware/Other
|
2017-03-08 19:30:08 +01:00
|
|
|
Provides: %{name} = %{version}
|
2017-03-08 13:52:59 +01:00
|
|
|
|
|
|
|
%description -n libmirisdr0
|
|
|
|
Library to run Mirics MRi2500 based DVB dongle as a SDR receiver.
|
|
|
|
|
|
|
|
%package -n mirisdr
|
|
|
|
Summary: Support programs for MRi2500
|
|
|
|
Group: Productivity/Hamradio/Other
|
|
|
|
|
|
|
|
%description -n mirisdr
|
|
|
|
Programs that controls Mirics MRi2500 based DVB dongle in raw mode, so
|
|
|
|
it can be used as a SDR receiver.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libmirisdr
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
AutoReq: on
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Library headers and other development files for mirisdr driver.
|
|
|
|
|
|
|
|
%prep
|
2017-03-08 19:30:08 +01:00
|
|
|
%setup -q
|
2017-03-08 13:52:59 +01:00
|
|
|
|
|
|
|
%build
|
2017-03-08 19:30:08 +01:00
|
|
|
%cmake
|
2017-03-08 13:52:59 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-03-08 19:30:08 +01:00
|
|
|
%cmake_install
|
2017-03-08 13:52:59 +01:00
|
|
|
rm %{buildroot}%{_libdir}/libmirisdr.a
|
2017-03-08 19:30:08 +01:00
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}
|
2017-03-08 13:52:59 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
#install udev rules
|
2017-03-08 19:30:08 +01:00
|
|
|
install -D -p -m 0644 mirisdr.rules %{buildroot}%{_udevrulesdir}/10-mirisdr.rules
|
2017-03-08 13:52:59 +01:00
|
|
|
|
2017-03-08 19:30:08 +01:00
|
|
|
%post -n libmirisdr0 -p /sbin/ldconfig
|
|
|
|
%postun -n libmirisdr0 -p/sbin/ldconfig
|
2017-03-08 13:52:59 +01:00
|
|
|
|
|
|
|
%files -n mirisdr
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README
|
2017-03-08 19:30:08 +01:00
|
|
|
%{_bindir}/miri_sdr
|
2017-03-08 13:52:59 +01:00
|
|
|
|
|
|
|
%files -n libmirisdr0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%{_libdir}/libmirisdr.so.*
|
|
|
|
%{_udevrulesdir}/10-mirisdr.rules
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libmirisdr.so
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/pkgconfig/libmirisdr.pc
|
|
|
|
|
|
|
|
%changelog
|