135 lines
4.1 KiB
RPMSpec
135 lines
4.1 KiB
RPMSpec
# We don't package the -devel subpackage by default because the development API
|
|
# is not yet stable. Change to 1 to enable packaging the development
|
|
# header and libraries
|
|
%global package_devel 0
|
|
|
|
Name: authselect
|
|
Version: 0.1
|
|
Release: 2%{?dist}
|
|
Summary: Configures authentication and identity sources from supported profiles
|
|
|
|
License: GPLv3+
|
|
URL: https://github.com/pbrezina/authselect
|
|
Source0: https://github.com/pbrezina/authselect/archive/0.1.tar.gz
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: m4
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: popt-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: asciidoc
|
|
|
|
|
|
%description
|
|
Authconfig 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.
|
|
|
|
%if (0%{?package_devel} == 1)
|
|
%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.
|
|
%endif
|
|
|
|
|
|
%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 {} \;
|
|
|
|
%if (0%{?package_devel} == 0)
|
|
rm -f $RPM_BUILD_ROOT/%{_includedir}/authselect.h
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libauthselect.so
|
|
%endif
|
|
|
|
%files libs
|
|
%defattr(-,root,root,-)
|
|
%attr(755,root,root) %dir %{_sysconfdir}/authselect
|
|
%attr(755,root,root) %dir %{_datadir}/authselect
|
|
%attr(755,root,root) %dir %{_datadir}/authselect/custom
|
|
%attr(755,root,root) %dir %{_datadir}/authselect/vendor
|
|
%attr(755,root,root) %dir %{_datadir}/authselect/default
|
|
%attr(755,root,root) %dir %{_datadir}/authselect/default/sssd/
|
|
%attr(755,root,root) %dir %{_datadir}/authselect/default/winbind/
|
|
%{_datadir}/authselect/default/sssd/README
|
|
%{_datadir}/authselect/default/sssd/nsswitch.conf
|
|
%{_datadir}/authselect/default/sssd/fingerprint-auth
|
|
%{_datadir}/authselect/default/sssd/password-auth
|
|
%{_datadir}/authselect/default/sssd/postlogin
|
|
%{_datadir}/authselect/default/sssd/system-auth
|
|
%{_datadir}/authselect/default/sssd/smartcard-auth
|
|
%{_datadir}/authselect/default/winbind/README
|
|
%{_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/system-auth
|
|
%{_libdir}/libauthselect.so.*
|
|
%{_datadir}/doc/authselect/COPYING
|
|
%{_datadir}/doc/authselect/README.md
|
|
%license COPYING
|
|
%{_mandir}/man5/authselect-profiles.5.gz
|
|
|
|
%if (0%{?package_devel} == 1)
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/authselect.h
|
|
%{_libdir}/libauthselect.so
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/authselect
|
|
%{_mandir}/man8/authselect.8*
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%changelog
|
|
* Thu Sep 14 2017 Jakub Hrozek <jakub.hrozek@posteo.se> - 0.1
|
|
- new upstream release
|
|
- https://github.com/pbrezina/authselect/releases/tag/0.1
|
|
|
|
* Mon Jul 31 2017 Jakub Hrozek <jakub.hrozek@posteo.se> - 0.1.alpha-2
|
|
- Fixes review issues brought up in rhbz#1477134
|
|
-- call ldconfig in postun
|
|
-- fix description line length
|
|
-- fix version in changelog
|
|
|
|
* Mon Jul 31 2017 Jakub Hrozek <jakub.hrozek@posteo.se> - 0.1.alpha-1
|
|
- initial packaging
|