From 6ed7ff94d4a180007dc0635486396698bddf63dd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 8 Jun 2024 12:36:40 +0200 Subject: [PATCH] package created using the webbuild interface [release 0.25.20231124git.fab69886-1mamba;Thu Jun 06 2024] --- README.md | 2 + signon-plugin-oauth2.spec | 81 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 signon-plugin-oauth2.spec diff --git a/README.md b/README.md index ef4a95c..97a1025 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # signon-plugin-oauth2 +This plugin for the Accounts-SSO SignOn daemon handles the OAuth 1.0 and 2.0 authentication protocols. + diff --git a/signon-plugin-oauth2.spec b/signon-plugin-oauth2.spec new file mode 100644 index 0000000..dad9c7f --- /dev/null +++ b/signon-plugin-oauth2.spec @@ -0,0 +1,81 @@ +%define gitver %(echo %version | cut -d. -f4) +Name: signon-plugin-oauth2 +Version: 0.25.20231124git.fab69886 +Release: 1mamba +Summary: OAuth 2 plugin for signon +Group: Applications/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.com/accounts-sso/signon-plugin-oauth2 +Source: https://gitlab.com/nicolasfella/signon-plugin-oauth2.git/qt6@%{gitver}/signon-plugin-oauth2-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libsignon-devel +BuildRequires: libsignon-qt6-devel +BuildRequires: libstdc++6-devel +BuildRequires: qt6-qtbase-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +This plugin for the Accounts-SSO SignOn daemon handles the OAuth 1.0 and 2.0 authentication protocols. + +%package -n lib%{name} +Group: System/Libraries +Summary: OAuth 2 plugin for signon + +%description -n lib%{name} +This plugin for the Accounts-SSO SignOn daemon handles the OAuth 1.0 and 2.0 authentication protocols. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%{_qt6_qmake} \ + LIBDIR=%{_libdir} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/signon/liboauth2plugin.so +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/signon-oauth2plugin-tests +%{_datadir}/signon-oauth2plugin-tests/tests.xml +%dir %{_includedir}/signon-plugins +%{_includedir}/signon-plugins/*.h +%{_libdir}/pkgconfig/signon-oauth2plugin.pc +%doc README.md + + +%changelog +* Thu Jun 06 2024 Silvan Calarco 0.25.20231124git.fab69886-1mamba +- package created using the webbuild interface