File gnuais.spec of Package gnuais

#
# spec file for package gnuais
#
# Copyright (c) 2018 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:           gnuais
Version:        0.3.3
Release:        0
Summary:        Demodulating and decoding AIS messages
License:        GPL-2.0
Group:          Productivity/Hamradio/Other
URL:            https://github.com/rubund/gnuais/
#Git-Clone:     https://github.com/rubund/gnuais.git
Source:         https://github.com/rubund/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1:         fix_x86_build.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  mysql-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libpulse)

%description
Open source software for demodulating and decoding AIS messages.

%prep
%setup -q
%patch1

%build
%cmake
%make_jobs

%install
%cmake_install
mkdir %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/gnuais/ %{buildroot}%{_docdir}

%files
%{_bindir}/gnuais
%dir %{_docdir}/gnuais
%{_docdir}/gnuais/gnuais.conf-example

%changelog
openSUSE Build Service is sponsored by