signon-plugin-oauth2/signon-plugin-oauth2.spec

82 lines
2.3 KiB
RPMSpec

%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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.25.20231124git.fab69886-1mamba
- package created using the webbuild interface