diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aefb27d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/0.1-alpha.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 90c7879..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# authselect - -The authselect package \ No newline at end of file diff --git a/authselect.spec b/authselect.spec new file mode 100644 index 0000000..c5ee91c --- /dev/null +++ b/authselect.spec @@ -0,0 +1,135 @@ +# 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.alpha +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-alpha.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 -n authselect-0.1-alpha + + +%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/sssd+fprint/ +%attr(755,root,root) %dir %{_datadir}/authselect/default/winbind/ +%attr(755,root,root) %dir %{_datadir}/authselect/default/winbind+fprint/ +%{_datadir}/authselect/default/sssd/README +%{_datadir}/authselect/default/sssd/nsswitch.conf +%{_datadir}/authselect/default/sssd/password-auth +%{_datadir}/authselect/default/sssd/system-auth +%{_datadir}/authselect/default/winbind/README +%{_datadir}/authselect/default/winbind/nsswitch.conf +%{_datadir}/authselect/default/winbind/password-auth +%{_datadir}/authselect/default/winbind/system-auth +%{_datadir}/authselect/default/sssd+fprint/README +%{_datadir}/authselect/default/sssd+fprint/nsswitch.conf +%{_datadir}/authselect/default/sssd+fprint/password-auth +%{_datadir}/authselect/default/sssd+fprint/system-auth +%{_datadir}/authselect/default/sssd+fprint/fingerprint-auth +%{_datadir}/authselect/default/winbind+fprint/README +%{_datadir}/authselect/default/winbind+fprint/nsswitch.conf +%{_datadir}/authselect/default/winbind+fprint/password-auth +%{_datadir}/authselect/default/winbind+fprint/system-auth +%{_datadir}/authselect/default/winbind+fprint/fingerprint-auth +%{_libdir}/libauthselect.so.* +%{_datadir}/doc/authselect/COPYING +%license COPYING + +%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 +* Mon Jul 31 2017 Jakub Hrozek - 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 - 0.1.alpha-1 +- initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..bd798cf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (0.1-alpha.tar.gz) = f137c93b4b28cb40bac83ccf951b69ffc207a5d865b1d899971d539f22e86317f6f8c81ba38776163467d682e2d367413d784e9d24b08252d6e0ad1c43956cdd