File signon-ui.spec of Package signon-ui

#
# spec file for package signon-ui
#
# 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/
#


%define _version 0.17+15.10.20150810-0ubuntu1-c08dd916857c4cde270da7ea63477eee865c1668

Name:           signon-ui
Version:        0.17+15.10.20150810
Release:        0
Summary:        Single Sign On UI
License:        GPL-3.0-only
Group:          System/GUI/Other
Url:            https://gitlab.com/accounts-sso/signon-ui
Source:         https://gitlab.com/accounts-sso/%{name}/repository%{version}-0ubuntu1/archive.tar.bz2#/%{name}-%{_version}.tar.bz2
BuildRequires:  libaccounts-qt5-devel
BuildRequires:  libsignon-qt5-devel
BuildRequires:  signon-plugins-devel
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libproxy-1.0)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)

%description
This package contains the user interface for the signond Single Sign On service.

%prep
%setup -q -n %{name}-%{_version}

# Fix libdir
sed -i 's/\/lib/\/%{_lib}/g' common-installs-config.pri

%build
%qmake5 \
  PREFIX=%{_prefix} \
  LIBDIR=%{_libdir}

%make_jobs

%install
%qmake5_install

%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/signon-ui
%{_datadir}/dbus-1/services/com.canonical.indicators.webcredentials.service
%{_datadir}/dbus-1/services/com.nokia.singlesignonui.service

%changelog
openSUSE Build Service is sponsored by