signon/signon.spec

275 lines
8.6 KiB
RPMSpec

Name: signon
Version: 8.61
Release: 2mamba
Summary: Accounts and SSO (Single Sign-On) framework
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://code.google.com/archive/p/accounts-sso
Source: https://gitlab.com/accounts-sso/signond.git/VERSION_%{version}/signond-%{version}.tar.bz2
Patch0: signon-8.61-qt6-1.patch
Patch1: signon-8.61-qt6-2.patch
Patch2: signon-8.61-qt6-3.patch
Patch3: signon-8.61-qt6-4.patch
Patch4: signon-8.61-qt6-5.patch
Patch5: signon-8.61-qt6-6.patch
Patch6: signon-8.61-qt6-7.patch
Patch7: signon-8.61-qt6-8.patch
Patch8: signon-8.61-qt6-9.patch
Patch9: signon-8.61-qt6-10.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
%description
The Accounts & SSO framework consists of a set of components and libraries which implement an account manager for a user's online accounts and a single-sign-on daemon which handles the authentication to the remote services on behalf of the client applications.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
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}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}-qt5
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: lib%{name}-qt
Obsoletes: lib%{name}-qt <= 8.57
%description -n lib%{name}-qt5
This package contains Qt bindings to %{name}.
%package -n lib%{name}-qt5-devel
Group: Development/Libraries
Summary: Development files for lib%{name}-qt5
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
Requires: lib%{name}-qt5 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
Provides: lib%{name}-qt-devel
Obsoletes: lib%{name}-qt-devel <= 8.57
%description -n lib%{name}-qt5-devel
This package contains libraries and header files for developing applications that use lib%{name}-qt5.
%package -n lib%{name}-qt6
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-qt6
This package contains Qt bindings to %{name}.
%package -n lib%{name}-qt6-devel
Group: Development/Libraries
Summary: Development files for lib%{name}-qt5
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
Requires: lib%{name}-qt6 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-qt6-devel
This package contains libraries and header files for developing applications that use lib%{name}-qt6.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%debug_package
%prep
%setup -q -c
cd signond-%{version}
%patch 0 -p1 -b .qt6-1
%patch 1 -p1 -b .qt6-2
%patch 2 -p1 -b .qt6-3
%patch 3 -p1 -b .qt6-4
%patch 4 -p1 -b .qt6-5
%patch 5 -p1 -b .qt6-6
%patch 6 -p1 -b .qt6-7
%patch 7 -p1 -b .qt6-8
%patch 8 -p1 -b .qt6-9
%patch 9 -p1 -b .qt6-10
cd ..
cp -a signond-%{version} signond-%{version}-qt6
sed -i "s|libsignon-qt5|libsignon-qt6|" signond-%{version}-qt6/common-project-config.pri
%build
cd signond-%{version}
%_qt5_qmake \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir}
%make
cd ../signond-%{version}-qt6
%_qt6_qmake \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C signond-%{version} \
INSTALL_ROOT=%{buildroot} \
STRIP=/bin/true
%makeinstall -C signond-%{version}-qt6 \
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
%defattr(-,root,root)
%{_sysconfdir}/signond.conf
%{_bindir}/signond
%{_bindir}/signonpluginprocess
%{_datadir}/dbus-1/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml
%{_datadir}/dbus-1/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml
%{_datadir}/dbus-1/interfaces/com.google.code.AccountsSSO.SingleSignOn.Identity.xml
%{_datadir}/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service
%{_datadir}/dbus-1/services/com.nokia.SingleSignOn.Backup.service
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libsignon-extension.so.*
%{_libdir}/libsignon-plugins.so.*
%{_libdir}/libsignon-plugins-common.so.*
%dir %{_libdir}/signon
%{_libdir}/signon/libexampleplugin.so
%{_libdir}/signon/libpasswordplugin.so
%{_libdir}/signon/libssotest2plugin.so
%{_libdir}/signon/libssotestplugin.so
%doc signond-%{version}/COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/signon-extension
%dir %{_includedir}/signon-extension/SignOn/
%{_includedir}/signon-extension/SignOn/*
%dir %{_includedir}/signon-plugins
%{_includedir}/signon-plugins/*.h
%dir %{_includedir}/signon-plugins/SignOn
%{_includedir}/signon-plugins/SignOn/*
%dir %{_includedir}/signond
%{_includedir}/signond/*
%{_libdir}/libsignon-extension.so
%{_libdir}/libsignon-plugins-common.so
%{_libdir}/libsignon-plugins.so
%{_libdir}/pkgconfig/SignOnExtension.pc
%{_libdir}/pkgconfig/signon-plugins-common.pc
%{_libdir}/pkgconfig/signon-plugins.pc
%{_libdir}/pkgconfig/signond.pc
%files -n lib%{name}-qt5
%defattr(-,root,root)
%{_libdir}/libsignon-qt5.so.*
%doc signond-%{version}/COPYING
%files -n lib%{name}-qt5-devel
%defattr(-,root,root)
%dir %{_includedir}/signon-qt5
%dir %{_includedir}/signon-qt5/SignOn
%{_includedir}/signon-qt5/SignOn/*
%{_libdir}/libsignon-qt5.a
%{_libdir}/libsignon-qt5.so
%dir %{_libdir}/cmake/SignOnQt5
%{_libdir}/cmake/SignOnQt5/SignOnQt5Config.cmake
%{_libdir}/cmake/SignOnQt5/SignOnQt5ConfigVersion.cmake
%{_libdir}/pkgconfig/libsignon-qt5.pc
%files -n lib%{name}-qt6
%defattr(-,root,root)
%{_libdir}/libsignon-qt6.so.*
%doc signond-%{version}/COPYING
%files -n lib%{name}-qt6-devel
%defattr(-,root,root)
%dir %{_includedir}/signon-qt6
%dir %{_includedir}/signon-qt6/SignOn
%{_includedir}/signon-qt6/SignOn/*
%{_libdir}/libsignon-qt6.a
%{_libdir}/libsignon-qt6.so
%dir %{_libdir}/cmake/SignOnQt6
%{_libdir}/cmake/SignOnQt6/SignOnQt6Config.cmake
%{_libdir}/cmake/SignOnQt6/SignOnQt6ConfigVersion.cmake
%{_libdir}/pkgconfig/libsignon-qt6.pc
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/doc/signon
%{_datadir}/doc/signon/*
%dir %{_datadir}/doc/signon-plugins
%{_datadir}/doc/signon-plugins/*
%dir %{_datadir}/doc/signon-plugins-dev
%{_datadir}/doc/signon-plugins-dev/*
%dir %{_datadir}/doc/libsignon-qt
%{_datadir}/doc/libsignon-qt/*
%changelog
* Sun Mar 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 8.61-2mamba
- rebuilt with -qt6 subpackage
* Thu Nov 10 2022 Automatic Build System <autodist@mambasoft.it> 8.61-1mamba
- automatic version update by autodist
* Sat Jan 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.60-1mamba
- update to 8.60
* Sun Aug 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 8.57-2mamba
- added libsignon-qt5
* Thu Sep 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 8.57-1mamba
- update to 8.57
* Thu Feb 27 2014 Automatic Build System <autodist@mambasoft.it> 8.56-1mamba
- automatic version update by autodist
* Tue Dec 24 2013 Automatic Build System <autodist@mambasoft.it> 8.55-1mamba
- automatic version update by autodist
* Sun Sep 08 2013 Automatic Build System <autodist@mambasoft.it> 8.54-1mamba
- automatic version update by autodist
* Mon Sep 02 2013 Automatic Build System <autodist@mambasoft.it> 8.53-1mamba
- automatic version update by autodist
* Wed Jun 12 2013 Automatic Build System <autodist@mambasoft.it> 8.52-1mamba
- automatic version update by autodist
* Wed May 15 2013 Automatic Build System <autodist@mambasoft.it> 8.51-1mamba
- automatic version update by autodist
* Thu Apr 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 8.50-1mamba
- package created by silvan using the webbuild interface