File poolview.spec of Package poolsync

#
# spec file for package 
#
# Copyright (c) 2010 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/
#

# norootforbuild

Name:       poolview
Version:	0.5.2
Release:	0
License:	GPLv2
Summary:	A utility to download and view data from a PoolMate Pro swimming watch.
Url:		https://github.com/ihewitt/poolviewer
Group:		Productivity/Other
Source:		%{name}-%{version}.tar.gz
#Requires:	
#PreReq:
#Provides:
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
BuildRequires:	libqt5-qtbase-devel libqt5-qtserialport-devel libusb-1_0-devel
%endif

%if 0%{?fedora} >= 5
BuildRequires:  qt5-qtbase-devel qt5-qtserialport-devel libusb1-devel libstdc++-devel gcc-c++ lcms-devel >= 1.12 qt
%endif


%description
A utility to download and view data from a PoolMate Pro swimming watch.
%prep
%setup -q

%build
%if 0%{?fedora} >= 5
qmake-qt5
%else
qmake-qt5
%endif
make %{?_smp_mflags}

%install
%make_install INSTALL_ROOT=%{buildroot}

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%post

%postun

%files
%defattr(-,root,root)
%{_bindir}/*
#%doc ChangeLog README COPYING

%changelog