!1 Init package
From: @misaka00251 Reviewed-by: @panchenbo Signed-off-by: @panchenbo
This commit is contained in:
commit
cef189306c
BIN
libaccounts-glib-VERSION_1.25.tar.gz
Normal file
BIN
libaccounts-glib-VERSION_1.25.tar.gz
Normal file
Binary file not shown.
118
libaccounts-glib.spec
Normal file
118
libaccounts-glib.spec
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
%global ver_str VERSION_%{version}
|
||||||
|
|
||||||
|
Name: libaccounts-glib
|
||||||
|
Version: 1.25
|
||||||
|
Release: 1
|
||||||
|
Summary: Accounts framework for Linux and POSIX based platforms
|
||||||
|
License: LGPLv2
|
||||||
|
|
||||||
|
URL: https://gitlab.com/accounts-sso/libaccounts-glib
|
||||||
|
Source0: %{url}/-/archive/%{ver_str}/%{name}-%{ver_str}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: meson >= 0.48.0
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-gobject
|
||||||
|
BuildRequires: vala
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
||||||
|
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)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: pkgconfig(sqlite3) >= 3.7.0
|
||||||
|
BuildRequires: gtk-doc
|
||||||
|
BuildRequires: pkgconfig(check)
|
||||||
|
|
||||||
|
Requires: python3-gobject
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%package docs
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description docs
|
||||||
|
The %{name}-docs package contains documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{ver_str} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%meson
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/accounts/{applications,providers,services,service_types}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
# some tests fail without either dbus-test-runner (not packaged) or X11 session
|
||||||
|
%meson_test || :
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README.md NEWS
|
||||||
|
|
||||||
|
%{_bindir}/ag-backup
|
||||||
|
%{_bindir}/ag-tool
|
||||||
|
|
||||||
|
%{_libdir}/libaccounts-glib.so.0
|
||||||
|
%{_libdir}/libaccounts-glib.so.%{version}
|
||||||
|
%{_libdir}/girepository-1.0/Accounts-1.0.typelib
|
||||||
|
|
||||||
|
%dir %{_datadir}/xml/accounts/schema/dtd
|
||||||
|
%{_datadir}/xml/accounts/schema/dtd/accounts-*.dtd
|
||||||
|
|
||||||
|
%dir %{_datadir}/xml/
|
||||||
|
%dir %{_datadir}/xml/accounts/
|
||||||
|
%dir %{_datadir}/xml/accounts/schema/
|
||||||
|
%dir %{_datadir}/accounts/
|
||||||
|
%dir %{_datadir}/accounts/applications/
|
||||||
|
%dir %{_datadir}/accounts/providers/
|
||||||
|
%dir %{_datadir}/accounts/services/
|
||||||
|
%dir %{_datadir}/accounts/service_types/
|
||||||
|
|
||||||
|
%{python3_sitearch}/gi/overrides/Accounts.py
|
||||||
|
%{python3_sitearch}/gi/overrides/__pycache__/*
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/libaccounts-glib/
|
||||||
|
|
||||||
|
%{_libdir}/libaccounts-glib.so
|
||||||
|
%{_libdir}/pkgconfig/libaccounts-glib.pc
|
||||||
|
|
||||||
|
%{_datadir}/dbus-1/interfaces/*.xml
|
||||||
|
%{_datadir}/gettext/its/accounts-*.{its,loc}
|
||||||
|
%{_datadir}/gir-1.0/Accounts-1.0.gir
|
||||||
|
%{_datadir}/vala/vapi/libaccounts-glib.deps
|
||||||
|
%{_datadir}/vala/vapi/libaccounts-glib.vapi
|
||||||
|
|
||||||
|
|
||||||
|
%files docs
|
||||||
|
%doc %{_datadir}/gtk-doc/html/libaccounts-glib/
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.25-1
|
||||||
|
- Init package
|
||||||
4
libaccounts-glib.yaml
Normal file
4
libaccounts-glib.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: https://gitlab.com/accounts-sso/libaccounts-glib.git
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user