77 lines
1.7 KiB
RPMSpec
77 lines
1.7 KiB
RPMSpec
%global git_commit 2dd9ba521a0dd4277c4bf6970a7f4e3894fd85ae
|
|
|
|
Name: signon-plugin-oauth2
|
|
Version: 0.24
|
|
Release: 1
|
|
Summary: OAuth2 plugin for the Accounts framework
|
|
|
|
License: LGPLv2
|
|
URL: https://gitlab.com/accounts-sso/signon-plugin-oauth2
|
|
|
|
Source0: https://gitlab.com/accounts-sso/signon-plugin-oauth2/repository/archive.tar.gz?ref=VERSION_%{version}#/%{name}-%{version}.tar.gz
|
|
|
|
# drop -Werror -fno-rtti
|
|
Patch100: signon-plugin-oauth2-cxxflags.patch
|
|
|
|
BuildRequires: make
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: qt5-qtxmlpatterns-devel
|
|
BuildRequires: signon-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: graphviz
|
|
BuildRequires: libproxy-devel
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{name}-VERSION_%{version}-%{git_commit} -p1
|
|
|
|
|
|
%build
|
|
export PATH=%{_qt5_bindir}:$PATH
|
|
%qmake_qt5 \
|
|
QMF_INSTALL_ROOT=%{_prefix} \
|
|
CONFIG+=release \
|
|
LIBDIR=%{?_libdir} \
|
|
signon-oauth2.pro
|
|
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
|
rm -fv %{buildroot}/%{_bindir}/signon-oauth2plugin-tests
|
|
rm -rfv %{buildroot}/%{_datadir}/signon-oauth2plugin-tests
|
|
|
|
rm -fv %{buildroot}/%{_bindir}/oauthclient
|
|
rm -rvf %{buildroot}/%{_sysconfdir}
|
|
|
|
|
|
%check
|
|
%make_build check
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%{_libdir}/signon/liboauth2plugin.so
|
|
|
|
%files devel
|
|
%{_includedir}/signon-plugins/*.h
|
|
%{_libdir}/pkgconfig/signon-oauth2plugin.pc
|
|
|
|
|
|
%changelog
|
|
* Tue Nov 08 2022 misaka00251 <liuxin@iscas.ac.cn> - 0.24-1
|
|
- Init package (Derived from federa project, thanks to fedora team)
|