A new user interface for you! Read more...

File toggldesktop.spec of Package toggldesktop

#
# spec file for package toggldesktop
#
# Copyright (c) 2018 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:           toggldesktop
Version:        7.4.130
Release:        0
Group:          Productivity/Other
Url:            https://github.com/toggl/toggldesktop
Summary:        Toggl Desktop
License:        BSD-3-Clause
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  unzip
BuildRequires:  openssl-devel
BuildRequires:  sqlite3-devel
BuildRequires:  readline-devel
BuildRequires:  libXScrnSaver-devel
BuildRequires:  poco-devel
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libQt5DBus-devel
BuildRequires:  libQt5Core-private-headers-devel
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libQt5WebKit5-devel
BuildRequires:  libQt5WebKitWidgets-devel
BuildRequires:  libqt5-qtwebengine-devel
BuildRequires:  libqt5-qtx11extras-devel
BuildRequires:  libqt5-qtsvg-devel
BuildRequires:  libQt5Network-devel
BuildRequires:  lua53-devel
BuildRequires:  qoauth-qt5-devel
BuildRequires:  libqxt-devel
BuildRequires:  cmake(jsoncpp)
#BuildRequires:  cmake(QxtCore-qt5)
#BuildRequires:  cmake(QxtWidgets-qt5)
BuildRequires:  update-desktop-files
BuildRequires:	desktop-file-utils
BuildRequires:	hicolor-icon-theme

%description
Toggl Desktop client.

%prep
%setup

%build
%cmake -DCMAKE_SHARED_LINKER_FLAGS="" -DTOGGL_PRODUCTION_BUILD=ON -DTOGGL_ALLOW_UPDATE_CHECK=OFF -DUSE_BUNDLED_LIBRARIES=OFF

%make_jobs

%install
%cmake_install

%ifarch x86_64
mv %{buildroot}/usr/lib %{buildroot}/usr/lib64
%endif

%suse_update_desktop_file -G "Time Tracking Software" %{name} Office ProjectManagement

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_bindir}/TogglDesktop
%{_bindir}/TogglDesktop.sh
%{_bindir}/cacert.pem
%{_libdir}/libOAuth2.so
%{_libdir}/libBugsnag.so
%{_libdir}/libQxt.so
%{_libdir}/libTogglDesktopLibrary.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*
%{_datadir}/appdata/toggldesktop.appdata.xml

%changelog