libmirisdr/libmirisdr.spec

100 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libmirisdr
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libmirisdr
Version: 0.0.0+git.20130608
Release: 0
Summary: Support programs for MRi2500
License: GPL-2.0
Group: Productivity/Hamradio/Other
Url: http://cgit.osmocom.org/libmirisdr/
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(udev)
%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
Provides: %{name} = %{version}
%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
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
rm %{buildroot}%{_libdir}/libmirisdr.a
%ifarch x86_64 aarch64
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}
%endif
#install udev rules
install -D -p -m 0644 mirisdr.rules %{buildroot}%{_udevrulesdir}/10-mirisdr.rules
%post -n libmirisdr0 -p /sbin/ldconfig
%postun -n libmirisdr0 -p/sbin/ldconfig
%files -n mirisdr
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_bindir}/miri_sdr
%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