File QtDMM.spec of Package QtDMM
#
# spec file for package QtDMM
#
# Copyright (c) 2014 SUSE LINUX Products 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: QtDMM
Version: 0.9.0
Release: 0
Summary: DMM Readout Software Including a Configurable Recorder
License: GPL-3.0+
Group: System/GUI/Other
Url: http://mtoussaint.de/qtdmm.html
Source: http://mtoussaint.de/qtdmm-%{version}.tgz
BuildRequires: libqt4-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
QtDMM is a DMM readout software including a configurable recorder. The
recorder features manual start, scheduled start (at a given time), and
triggered automatic start when given thresholds are reached.
Additionally, you can start an external application when given
thresholds are reached.
Although initially written for Metex (and compatible, like VOLTCRAFT)
multimeter, which use a 14-byte protocol, several more protocols have
been added. For more information about the currently supported DMMs,
refer to the preset table.
%prep
%setup -q
%build
qmake
make %{?_smp_mflags}
%install
%make_install
gzip qtdmm.1
install -d %{buildroot}%{_bindir}
install bin/qtdmm %{buildroot}%{_bindir}/qtdmm
install -Dm 644 qtdmm.1.gz %{buildroot}%{_mandir}/man1/qtdmm.1.gz
install -Dm 644 qtdmm.png %{buildroot}%{_datadir}/pixmaps/qtdmm.png
install -Dm 644 QtDMM.desktop %{buildroot}%{_datadir}/applications/QtDMM.desktop
%suse_update_desktop_file -G "DMM Readout Software" -r %{name} "Education;Engineering"
%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE README
%{_bindir}/qtdmm
%{_mandir}/man1/qtdmm.1.gz
%{_datadir}/pixmaps/qtdmm.png
%{_datadir}/applications/QtDMM.desktop
%changelog