ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?rhel} && 0%{?rhel} >= 8
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%global with_python3 1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{!?__python2: %global __python2 /usr/bin/python2}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{!?python2_sitelib2: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?fedora} >= 27
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%global with_python3 1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define name sssd-testlib
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define owner sssd-qe
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define project sssd-testlib
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define version 0.1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define release 11
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%define srcname sssd-testlib
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RName: %{name}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RVersion: %{version}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRelease: %{release}%{?dist}
e10d56ed715df64fbb0883aa73563fed56bd0238René GenzSummary: System Services Security Daemon (SSSD) PyTest Framework
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RLicense: GPLv3+
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RSource0: %{name}.tar.gz
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RBuildArch: noarch
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RBuildRequires: python3-devel
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?fedora}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RBuildRequires: python2-devel
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RBuildRequires: python-devel
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?fedora}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python3-paramiko
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: freeipa-python
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python3-pytest-multihost >= 1.1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python3-PyYAML
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python3-pytest
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-dns
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-krbV
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-nss
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-paramiko
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-pytest-multihost >= 1.1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: PyYAML
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: pytest
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-ldap
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: openldap-clients
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-dns
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-krbV
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: python-nss
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?rhel}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.RRequires: ipa-python
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%description
e10d56ed715df64fbb0883aa73563fed56bd0238René GenzA python framework for System Services Security Daemon (SSSD) PyTest Framework.
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%prep
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%setup -qn %{project}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Recho %{py3dir}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rrm -rf %{py3dir}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rcp -a . %{py3dir}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%build
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{__python2} setup.py build
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rpushd %{py3dir}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{__python3} setup.py build
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rpopd
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%install
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%py_byte_compile %{__python2} %{buildroot}%{python_sitelib}/%{srcname}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{__python2} -m compileall %{buildroot}%{python_sitelib}/%{srcname}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rpushd %{py3dir}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{__python3} setup.py install --skip-build --root %{buildroot}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/%{srcname}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rpopd
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rmkdir -p %{buildroot}/etc/sssd_testlib
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rinstall -m 644 sssd/testlib/etc/* %{buildroot}/etc/sssd_testlib/
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%files
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%doc README.rst docs/*
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%config /etc/sssd_testlib
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?fedora}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{python2_sitelib}/*
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%if 0%{?with_python3}
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{python3_sitelib}/*
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%else:
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%{python2_sitelib}/*
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%endif
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R%changelog
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Fri Jul 7 2017 Niranjan MR <mrniranjan@redhat.com> - 0.1-11
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- pylint fixes
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Sat Apr 19 2017 Niranjan MR <mrniranjan@redhat.com> - 0.1-10
e10d56ed715df64fbb0883aa73563fed56bd0238René Genz- Add functions to create POSIX users/groups
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Add libkrb5 module to create kerberos server
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Use paramiko to test ssh logins for non-root users
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Update documentation
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Tue Mar 14 2017 Niranjan MR <mrniranjan@redhat.com> - 0.1-9
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Use adcli with realm to join system to Windows AD
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Mon Feb 20 2017 Niranjan MR <mrniranjan@redhat.com> - 0.1-8
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Fix indetation issues with qe_class.py
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Fri Feb 17 2017 Niranjan MR <mrniranjan@redhat.com> - 0.1-7
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- pep8 fixes to sssd.testlib.common
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- updated docs on setting up DS instances using multihost
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Wed Nov 30 2016 Niranjan MR <mrniranjan@redhat.com> - 0.1-6
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Add functions related to configuring Directory Server,
e10d56ed715df64fbb0883aa73563fed56bd0238René Genz- Add functions related to adding, removing, modifying AD users,
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R and adding UNIX attributes to Windows AD Users
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Fri Oct 21 2016 Niranjan MR <mrniranjan@redhat.com> - 0.1-5
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Add functions to connect AD and move common fixtures
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R as sssdTools module in common
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Sat Sep 10 2016 Niranjan MR <mrniranjan@redhat.com> - 0.1-4
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Add Run time requirement to have pytest-multihost >= 1.1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Modify spec file to be built on fedora/rhel
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- When using fedora 24 and above use python3
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Wed Aug 24 2016 Niranjan MR <mrniranjan@redhat.com> - 0.1-3
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Add functions to start/stop/restart sssd based on RHEL versions
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Use systemctl instead of service command for systemd based versions
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Fri Jul 15 2016 Niranjan MR <mrnirnajan@redhat.com> - 0.1-2
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- Modified qe_class.py to make Windows AD details to be in separate domain
e10d56ed715df64fbb0883aa73563fed56bd0238René Genz- Added ipa-python as a Runtime dependency
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R* Thu Jun 30 2016 Niranjan MR <mrniranjan@redhat.com> - 0.1-1
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R- initial version-