File mingw32-airspy.spec of Package mingw32-airspy
#
# spec file for package mingw32-airspy
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define soname 0
%define realname airspy
%define libname lib%{realname}
Name: mingw32-%{realname}
Version: 1.5.0.git1442605964.51a830c
Release: 0
Summary: Support programs for Airspy
License: GPL-2.0+
Group: Productivity/Hamradio/Other
Url: http://www.airspy.com
Source: %{realname}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-libusb-1_0-devel
# for git-version-gen
BuildRequires: git-core
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{_mingw32_package_header_debug}
%{_mingw32_debug_package}
%description
A tiny and efficient software defined radio.
%package -n mingw32-%{libname}%{soname}
Summary: Driver for Airspy
Group: Hardware/Other
%description -n mingw32-%{libname}%{soname}
Library to run Airspy SDR receiver.
%package -n mingw32-%{libname}-devel
Summary: Development files for airspy
Group: Development/Libraries/Other
Requires: mingw32-%{libname}%{soname} = %{version}
%description -n mingw32-%{libname}-devel
Library headers for airspy driver.
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw32_cmake}
%{_mingw32_make} VERBOSE=1 %{?_smp_mflags}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
# remove unneeded static version of the lib
rm %{buildroot}/%{_mingw32_bindir}/libairspy.a
%files
%defattr(-,root,root)
%{_mingw32_bindir}/airspy_*.exe
%files -n mingw32-%{libname}%{soname}
%defattr(-,root,root)
%{_mingw32_bindir}/libairspy.dll
%files -n mingw32-%{libname}-devel
%defattr(-,root,root)
%{_mingw32_bindir}/libairspy.dll.a
%dir %{_mingw32_includedir}/libairspy/
%{_mingw32_includedir}/libairspy/*.h
%{_mingw32_libdir}/pkgconfig/libairspy.pc
%changelog