Projects
home:wkazubski:hamradio
sdrplay
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
sdrplay.spec
Added
@@ -0,0 +1,114 @@ +# +# spec file for package libsdrplay +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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: sdrplay +Summary: Support for SDRplay software defined radio devices +Version: 2.13.1 +Release: 0 +# license from https://github.com/openSUSE/spec-cleaner#spdx-licenses +License: SUSE-EULA +Url: http://www.sdrplay.com +Source0: SDRplay_RSP_API-Linux-%{version}.run +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: wget + +%description +SDRplay builds software defined radio devices. This package makes the .run-file +provided by SDRplay compatible with the RPM package manager. + +%package -n sdrplay-udev + +Summary: Library for accessing SDRplay software defined radio devices +Group: Hardware/Radio +BuildArch: noarch + +%description -n sdrplay-udev +SDRplay builds software defined radio devices. This package makes the .run-file +provided by SDRplay compatible with the RPM package manager. + +This sub-package contains the UDEV support files. + +%package -n libsdrplay2 + +Summary: Library for accessing SDRplay software defined radio devices +Group: Hardware/Radio + +%description -n libsdrplay2 +SDRplay builds software defined radio devices. This package makes the .run-file +provided by SDRplay compatible with the RPM package manager. + +This sub-package contains the shared library. + +%package devel + +Summary: Library for accessing SDRplay software defined radio devices +Group: Development/Languages/C and C++ +Requires: libsdrplay2 = %{version} + +%description devel +SDRplay builds software defined radio devices. This package makes the .run-file +provided by SDRplay compatible with the RPM package manager. + +This sub-package contains the development files. + +%prep + +sh %{SOURCE0} --tar xf + +%build + +%install +LIBNAME_SRC=libmirsdrapi-rsp.so.2.13 +LIBNAME_BASE=libmirsdrapi-rsp.so +SONAME=libmirsdrapi-rsp2_13 + +# create directories +mkdir -p %{buildroot}%{_libexecdir}/udev/rules.d +mkdir -p %{buildroot}/usr/include + +# copy files (except license, see %%files below) +install -m 644 66-mirics.rules %{buildroot}%{_libexecdir}/udev/rules.d +install -m 644 mirsdrapi-rsp.h %{buildroot}/usr/include + +%ifarch x86_64 + install -m 644 x86_64/$LIBNAME_SRC %{buildroot}%{_libexecdir}/$SONAME +%else + install -m 644 i686/$LIBNAME_SRC %{buildroot}%{_libexecdir}/$SONAME +%endif + +ln -s /usr/lib/$SONAME %{buildroot}%{_libexecdir}/$LIBNAME_BASE.2 +ln -s /usr/lib/$SONAME %{buildroot}%{_libexecdir}/$LIBNAME_BASE + +%post -n libsdrplay2 -p /sbin/ldconfig + +%postun -n libsdrplay2 -p /sbin/ldconfig + +%files -n libsdrplay2 +%defattr(-,root,root) +%doc sdrplay_license.txt +%{_libexecdir}/libmirsdrapi-rsp.so.2 +%{_libexecdir}/libmirsdrapi-rsp2_13 + +%files devel +%{_libexecdir}/libmirsdrapi-rsp.so +/usr/include/mirsdrapi-rsp.h + +%files -n sdrplay-udev +%{_libexecdir}/udev/rules.d/66-mirics.rules + +%changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.