File libaccounts-glib.spec of Package libaccounts-glib
#
# spec file for package libaccounts-glib
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define typelib typelib-1_0-Accounts-1_0
%define sover 1
Name: libaccounts-glib
Version: 1.24
Release: 0
Summary: Account management library for GLib Applications
License: LGPL-2.1-only
Group: System/Libraries
Url: https://gitlab.com/accounts-sso/libaccounts-glib
Source: %{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkg-config
BuildRequires: python3-gobject
BuildRequires: pkgconfig(check) >= 0.9.4
BuildRequires: pkgconfig(gio-2.0) >= 2.36
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.26
BuildRequires: pkgconfig(gobject-2.0) >= 2.35.1
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.30.0
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(sqlite3) >= 3.7.0
BuildRequires: pkgconfig(vapigen)
%description
This package contains the shared libraries for use by applications.
%package -n %{name}%{sover}
Summary: Account management library for GLib Applications
Group: System/Libraries
%description -n %{name}%{sover}
This package contains the shared libraries for use by applications.
%package -n python3-libaccounts
Summary: Python bindings for the Account management library
Group: Development/Languages/Python
%description -n python3-libaccounts
This package contains the python bindings for the account
management library.
%package -n %{typelib}
Summary: Account management library for GLib Applications -- Introspection Bindings
Group: System/Libraries
%description -n %{typelib}
This package contains the GObject Introspection bindings for the
accounts-glib library.
%package devel
Summary: Development files for libaccounts-glib
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
Requires: %{typelib} = %{version}
Requires: python3-libaccounts = %{version}
%description devel
This package contains the development files for the accounts-glib
library.
%package docs
Summary: Documentation for libaccounts-glib
Group: Documentation/HTML
BuildArch: noarch
%description docs
This package contains the documentation for the accounts-glib
library.
%package tools
Summary: Tools for libaccounts-glib
Group: Development/Tools/Other
Requires: %{name}%{sover} = %{version}
%description tools
This package contains the tools for the accounts-glib library.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%license COPYING
%doc NEWS README.md
%{_libdir}/%{name}.so.%{sover}*
%files -n %{typelib}
%{_libdir}/girepository-1.0/Accounts-1.0.typelib
%files -n python3-libaccounts
%{python3_sitearch}/gi/overrides/
%files devel
%{_includedir}/%{name}/
%{_datadir}/gettext/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/Accounts-1.0.gir
%dir %{_datadir}/vala/
%dir %{_datadir}/vala/vapi/
%{_datadir}/vala/vapi/%{name}.*
%files docs
%doc %{_datadir}/gtk-doc/html/%{name}/
%files tools
%{_bindir}/ag-backup
%{_bindir}/ag-tool
%dir %{_datadir}/dbus-1/
%dir %{_datadir}/dbus-1/interfaces/
%{_datadir}/dbus-1/interfaces/com.google.code.AccountsSSO.Accounts.Manager.xml
%dir %{_datadir}/xml/accounts/
%dir %{_datadir}/xml/accounts/schema/
%dir %{_datadir}/xml/accounts/schema/dtd/
%{_datadir}/xml/accounts/schema/dtd/accounts-*.dtd
%changelog