156 lines
4.8 KiB
RPMSpec
156 lines
4.8 KiB
RPMSpec
Name: authselect
|
|
Version: 0.3
|
|
Release: 2%{?dist}
|
|
Summary: Configures authentication and identity sources from supported profiles
|
|
URL: https://github.com/pbrezina/authselect
|
|
|
|
License: GPLv3+
|
|
Source0: https://github.com/pbrezina/authselect/archive/0.3/authselect-0.3.tar.gz
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: m4
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: popt-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: asciidoc
|
|
Requires: authselect-libs = %{version}-%{release}
|
|
Suggests: sssd
|
|
Suggests: samba-winbind
|
|
Suggests: fprintd-pam
|
|
Suggests: oddjob-mkhomedir
|
|
|
|
%description
|
|
Authselect is designed to be a replacement for authconfig but it takes
|
|
a different approach to configure the system. Instead of letting
|
|
the administrator build the pam stack with a tool (which may potentially
|
|
end up with a broken configuration), it would ship several tested stacks
|
|
(profiles) that solve a use-case and are well tested and supported.
|
|
At the same time, some obsolete features of authconfig are not
|
|
supported by authselect.
|
|
|
|
%package libs
|
|
Summary: Utility library used by the authselect tool
|
|
Group: Applications/System
|
|
License: GPLv3+
|
|
|
|
%description libs
|
|
Common library files for authselect. This package is used by the authselect
|
|
command line tool and any other potential front-ends.
|
|
|
|
%package compat
|
|
Summary: Tool to provide minimum backwards compatibility with authconfig
|
|
Group: Applications/System
|
|
License: GPLv3+
|
|
Obsoletes: authconfig
|
|
Provides: %{_sbindir}/authconfig
|
|
BuildRequires: python3-devel
|
|
Requires: python3
|
|
Requires: authselect = %{version}-%{release}
|
|
Recommends: sssd
|
|
Recommends: realmd
|
|
Recommends: samba-winbind
|
|
Recommends: oddjob-mkhomedir
|
|
|
|
%description compat
|
|
This package will replace %{_sbindir}/authconfig with a tool that will
|
|
translate some of the authconfig calls into authselect calls. It provides
|
|
only minimum backward compatibility and users are encouraged to migrate
|
|
to authselect completely.
|
|
|
|
%package devel
|
|
Summary: Development libraries and headers for authselect
|
|
Group: Applications/System
|
|
License: GPLv3+
|
|
Requires: authselect-libs = %{version}-%{release}
|
|
|
|
%description devel
|
|
System header files and development libraries for authselect. Useful if
|
|
you develop a front-end for the authselect library.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
autoreconf -if
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
# Remove .la and .a files created by libtool
|
|
find $RPM_BUILD_ROOT -name "*.la" -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -name "*.a" -exec rm -f {} \;
|
|
|
|
%files libs
|
|
%defattr(-,root,root,-)
|
|
%dir %{_sysconfdir}/authselect
|
|
%dir %{_sysconfdir}/authselect/custom
|
|
%dir %{_datadir}/authselect
|
|
%dir %{_datadir}/authselect/vendor
|
|
%dir %{_datadir}/authselect/default
|
|
%dir %{_datadir}/authselect/default/sssd/
|
|
%dir %{_datadir}/authselect/default/winbind/
|
|
%{_datadir}/authselect/default/sssd/dconf-db
|
|
%{_datadir}/authselect/default/sssd/dconf-locks
|
|
%{_datadir}/authselect/default/sssd/fingerprint-auth
|
|
%{_datadir}/authselect/default/sssd/nsswitch.conf
|
|
%{_datadir}/authselect/default/sssd/password-auth
|
|
%{_datadir}/authselect/default/sssd/postlogin
|
|
%{_datadir}/authselect/default/sssd/README
|
|
%{_datadir}/authselect/default/sssd/smartcard-auth
|
|
%{_datadir}/authselect/default/sssd/system-auth
|
|
%{_datadir}/authselect/default/winbind/dconf-db
|
|
%{_datadir}/authselect/default/winbind/dconf-locks
|
|
%{_datadir}/authselect/default/winbind/fingerprint-auth
|
|
%{_datadir}/authselect/default/winbind/nsswitch.conf
|
|
%{_datadir}/authselect/default/winbind/password-auth
|
|
%{_datadir}/authselect/default/winbind/postlogin
|
|
%{_datadir}/authselect/default/winbind/README
|
|
%{_datadir}/authselect/default/winbind/system-auth
|
|
%{_libdir}/libauthselect.so.*
|
|
%{_mandir}/man5/authselect-profiles.5*
|
|
%{_datadir}/doc/authselect/COPYING
|
|
%{_datadir}/doc/authselect/README.md
|
|
%license COPYING
|
|
%doc README.md
|
|
|
|
%files compat
|
|
%defattr(-,root,root,-)
|
|
%{_sbindir}/authconfig
|
|
%{python3_sitelib}/authselect/
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/authselect.h
|
|
%{_libdir}/libauthselect.so
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/authselect
|
|
%{_mandir}/man8/authselect.8*
|
|
%{_mandir}/man7/authselect-migration.7*
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%changelog
|
|
* Tue Feb 20 2018 Igor Gnatenko <ignatenko@redhat.com> - 0.3-2
|
|
- Properly own all appropriate directories
|
|
|
|
* Tue Feb 20 2018 Pavel Březina <pbrezina@redhat.com> - 0.3-1
|
|
- rebasing to 0.3
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
* Wed Jan 10 2018 Pavel Březina <pbrezina@redhat.com> - 0.2-2
|
|
- fix rpmlint errors
|
|
* Wed Jan 10 2018 Pavel Březina <pbrezina@redhat.com> - 0.2-1
|
|
- rebasing to 0.2
|
|
* Mon Jul 31 2017 Jakub Hrozek <jakub.hrozek@posteo.se> - 0.1-1
|
|
- initial packaging
|