File mwptools.spec of Package mwptools

#
# spec file for package mwptools (Version 2016.09.01)
#
# Copyright (c) 2016 vodoo@vakw.ch
#
# 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:           mwptools
Version:        2016.09.01
Release:        1.0
Summary:        Mission planner for MultiWii
Group:          Other
License:        GPL-2.0
Url:            https://github.com/stronnag/mwptools
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  vala
# BuildRequires:  libvala-0_26-devel
BuildRequires:  pango-devel
BuildRequires:  cairo-devel
BuildRequires:  gtk2-devel
BuildRequires:  gtk3-devel
BuildRequires:  gsettings-desktop-schemas-devel
BuildRequires:  json-glib-devel
BuildRequires:  libxml2-devel
BuildRequires:  libgda-5_0-devel
BuildRequires:  libchamplain-devel
BuildRequires:  espeak-devel
BuildRequires:  gdl-devel
BuildRequires:  clutter-devel
BuildRequires:  libgudev-1_0-devel
BuildRequires:  gstreamer-0_10-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  webkit2gtk3-devel
BuildRequires:  update-desktop-files
BuildRequires:  fdupes
AutoReqProv:    on

%description
mwptools is a small suite of tools to manage a MultiWii NAV flight controller and CleanFlight based FCs. The suite consists of tools that the author finds useful to manage and monitor 'in the field' using a low powered Linux based netbook or chromebook.

Tools

 * mwp: "A mission planner for the rest of us". Simple mission planning
   and monitoring.
   Mission Planner is provided for MW-NAV (MW 2.4).
   Monitoring, logging and recording for both MW and CleanFlight;

 * pidedit: PID editor;

 * switchedit: Transmitter switch editor;

 * mspsim: An MSP (MultiWii Serial Protocol) simulator. Used to develop the
   other components of the suite;

 * Tools to transform mwp log files to SQL, GPX and KML.

Author
   Jonathan Hudson

%prep
%setup -q

%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}
%fdupes -s %{buildroot}/usr/share
%suse_update_desktop_file -r -G mwptools mspsim System Emulator
%suse_update_desktop_file -r -G mwptools pidedit System Emulator
%suse_update_desktop_file -r -G mwptools mwp System Emulator
%suse_update_desktop_file -r -G mwptools switchedit System Emulator

%post
%desktop_database_post

%postun
%desktop_database_postun

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%dir /usr/share/doc/mwp
%dir /usr/share/mspsim
%dir /usr/share/mwp
%dir /usr/share/pidedit
%dir /usr/share/switchedit
%{_bindir}/mwp
%{_bindir}/mspsim
%{_bindir}/pidedit
%{_bindir}/switchedit
%{_bindir}/cf-cli
%{_bindir}/mwp_ath
%{_bindir}/qproxy
%{_bindir}/replay_bbox_ltm.rb
%{_bindir}/ublox-cli
%{_bindir}/ublox-geo
/usr/share/applications/mspsim.desktop
/usr/share/applications/mwp.desktop
/usr/share/applications/pidedit.desktop
/usr/share/applications/switchedit.desktop
/usr/share/doc/mwp/mwptools.pdf
/usr/share/glib-2.0/schemas/gschemas.compiled
/usr/share/glib-2.0/schemas/org.mwptools.planner.gschema.xml
/usr/share/icons/hicolor/scalable/mwp_icon.svg
/usr/share/mspsim/*
/usr/share/mwp/*
/usr/share/pidedit/*
/usr/share/switchedit/*

%changelog