Package init
This commit is contained in:
commit
02cd4cfdc6
BIN
authselect-1.0.1.tar.gz
Normal file
BIN
authselect-1.0.1.tar.gz
Normal file
Binary file not shown.
117
authselect.spec
Normal file
117
authselect.spec
Normal file
@ -0,0 +1,117 @@
|
||||
Name: authselect
|
||||
Version: 1.0.1
|
||||
Release: 4
|
||||
Summary: A tool to select system authentication and identity sources from a list of supported profiles
|
||||
License: GPLv3+
|
||||
URL: https://github.com/pbrezina/authselect
|
||||
Source0: https://github.com/pbrezina/authselect/archive/1.0.1/authselect-1.0.1.tar.gz
|
||||
|
||||
BuildRequires: autoconf gettext-devel automake libtool popt-devel gdb libcmocka-devel
|
||||
BuildRequires: m4 gcc pkgconfig pkgconfig(popt) po4a asciidoc python3-devel
|
||||
Requires: grep sed systemd gawk coreutils findutils
|
||||
Obsoletes: authselect-libs
|
||||
Provides: authselect-libs
|
||||
|
||||
%description
|
||||
Authselect is designed to be a replacement for authconfig (which is the default tool for this
|
||||
job on Fedora and RHEL based systems) 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 would not be supported by authselect.
|
||||
|
||||
This package contains commands for selecting system identity and authentication sources, and
|
||||
common library files for the authselect tool.
|
||||
|
||||
Authselect 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_help
|
||||
|
||||
%package compat
|
||||
Summary: Tool to provide minimum backwards compatibility with authconfig
|
||||
Obsoletes: authconfig < 7.0.1-6
|
||||
Provides: authconfig
|
||||
BuildRequires: python3-devel
|
||||
Requires: authselect%{?_isa} = %{version}-%{release}
|
||||
Requires: sed
|
||||
|
||||
%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 library files and header files for the authselect tool
|
||||
Requires: authselect%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains development library files and headers for the authselect tool. This
|
||||
package is used to develop a front-end for the authselect library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
autoreconf -ivf
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%find_lang %{name}
|
||||
%find_lang %{name} %{name}.8.lang --with-man
|
||||
%find_lang %{name}-migration %{name}-migration.7.lang --with-man
|
||||
%find_lang %{name}-profiles %{name}-profiles.5.lang --with-man
|
||||
|
||||
%delete_la_and_a
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post -n %{name} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%{_bindir}/authselect
|
||||
%doc README.md
|
||||
%{_datadir}/authselect/default/*
|
||||
%{_datadir}/locale/*
|
||||
%{_libdir}/libauthselect.so.1*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/authselect.h
|
||||
%{_libdir}/libauthselect.so
|
||||
%{_libdir}/pkgconfig/authselect.pc
|
||||
|
||||
%files compat
|
||||
%{_sbindir}/authconfig
|
||||
%{python3_sitelib}/authselect/
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/doc/authselect/*
|
||||
%{_mandir}/*
|
||||
|
||||
%posttrans compat
|
||||
sed -i -E '/^\w+=$/d' %{_sysconfdir}/security/pwquality.conf.d/10-authconfig-pwquality.conf &> /dev/null
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.1-4
|
||||
- Fix conflict of authselect and authconfig
|
||||
|
||||
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.1-3
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user