File libaccounts-qt6.spec of Package libaccounts-qt6
#
# spec file for package libaccounts-qt
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global _default_patch_fuzz 2
%define soversion 1
%define rname libaccounts-qt
Name: libaccounts-qt6
Version: 1.16
Release: 0
Summary: Qt library for Single Sign On
License: LGPL-2.1-only
URL: https://gitlab.com/accounts-sso/libaccounts-qt
Source: https://gitlab.com/accounts-sso/libaccounts-qt/-/archive/VERSION_%{version}/libaccounts-qt-VERSION_%{version}.tar.gz
Source99: baselibs.conf
Patch0: 96ec99572d93f95279ff54c504576fb6741824d4.diff
Patch1: c86db79be389601bf6798f815ca5b8f78a524156.diff
Patch2: 0001-allow_build_with_qt6.patch
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(libaccounts-glib) >= 1.23
%description
This package contains the Qt library for Single Sign On.
%package -n libaccounts-qt6-%{soversion}
Summary: Qt library for Single Sign On
%description -n libaccounts-qt6-%{soversion}
This package contains the Qt library for Single Sign On.
%package devel
Summary: Development files for libaccounts-qt6
Requires: libaccounts-qt6-%{soversion} = %{version}-%{release}
%description devel
This package contains the development files for the accounts-qt6 library.
# Only install the doc once
%package doc
Summary: Documentation for libaccounts-qt
BuildArch: noarch
%description doc
This package contains the documentation for the accounts-qt library.
%prep
%autosetup -p1 -n %{rname}-VERSION_%{version}
# Fix documentation directory
sed -i '/^documentation.path/ s/doc\//doc\/packages\//' doc/doc.pri
sed -i 's|SUBDIRS += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro
%build
%qmake6 \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
%make_jobs
%install
%qmake6_install
%fdupes %{buildroot}%{_docdir}
%ldconfig_scriptlets -n libaccounts-qt6-%{soversion}
%files -n libaccounts-qt6-%{soversion}
%license COPYING
%doc README.md
%{_libdir}/libaccounts-qt6.so.*
%files devel
%{_includedir}/accounts-qt6/
%{_libdir}/libaccounts-qt6.so
%{_libdir}/pkgconfig/accounts-qt6.pc
%{_libdir}/cmake/AccountsQt6/
%files doc
%doc %{_docdir}/accounts-qt/
%changelog