diff --git a/.gitignore b/.gitignore index d7a10c4..bd17ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /authselect-0.4.tar.gz /authselect-1.0.tar.gz /authselect-1.0.1.tar.gz +/authselect-1.0.2.tar.gz diff --git a/authselect.spec b/authselect.spec index e227b95..e714281 100644 --- a/authselect.spec +++ b/authselect.spec @@ -1,14 +1,20 @@ Name: authselect -Version: 1.0.1 -Release: 2%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: Configures authentication and identity sources from supported profiles URL: https://github.com/pbrezina/authselect License: GPLv3+ Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +%if 0%{?rhel} +Source1: translations.tar.gz +%endif + +%global makedir %{_builddir}/%{name}-%{version} BuildRequires: autoconf BuildRequires: automake +BuildRequires: findutils BuildRequires: libtool BuildRequires: m4 BuildRequires: gcc @@ -53,10 +59,10 @@ Obsoletes: authconfig < 7.0.1-6 Provides: authconfig BuildRequires: python3-devel Requires: authselect%{?_isa} = %{version}-%{release} +Recommends: oddjob-mkhomedir Suggests: sssd Suggests: realmd Suggests: samba-winbind -Suggests: oddjob-mkhomedir # Required by scriptlets Requires: sed @@ -82,6 +88,14 @@ for p in %patches ; do %__patch -p1 -i $p done +# Install RHEL translations +# It is not possible to use wildcards here so we need to use 'find' +%if 0%{?rhel} +find "%{makedir}/po" "%{makedir}/src/man/po" -name "*.po" -delete +rm "%{makedir}/po/LINGUAS" +%setup -T -D -a 1 +%endif + %build autoreconf -if %configure --with-pythonbin="%{__python3}" @@ -236,6 +250,9 @@ sed -i -E '/^\w+=$/d' %{_sysconfdir}/security/pwquality.conf.d/10-authconfig-pwq exit 0 %changelog +* Fri Nov 23 2018 Pavel Březina - 1.0.2-1 +- Rebase to 1.0.2 + * Thu Sep 27 2018 Pavel Březina - 1.0.1-2 - Require systemd instead of systemctl diff --git a/sources b/sources index 1a347d4..3418484 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (authselect-1.0.1.tar.gz) = 571202ff45b712111415c5c874297e7700c255d965b7198ef245881e52a561d0f9abc1b8b1d53f40ebe15875fa6c4321264faacdb19f7ad5d0c600bdbc40bd40 +SHA512 (authselect-1.0.2.tar.gz) = 7e79601e45e2582a430838f6b7a88c44ccb09ad84b739e0802ffa74f9f59b7a846d8f597cace4d05ddb4c51494b8ae08e2f6581df52327b37d8321d05e0604f7