Blame SPECS/rhnlib.spec

1d9719
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1d9719
1d9719
Summary: Python libraries for the Spacewalk project
1d9719
Name: rhnlib
1d9719
URL:     https://github.com/spacewalkproject/spacewalk
1d9719
Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
1d9719
Patch0: rhnlib-2.5.65-1-to-rhnlib-2.5.65-2-el7.patch
1d9719
Patch1: rhnlib-2.5.65-2-el7-to-rhnlib-2.5.65-3-el7.patch
1d9719
Patch2: rhnlib-2.5.65-3-el7-to-rhnlib-2.5.65-4-el7.patch
1d9719
Patch3: rhnlib-2.5.65-4-el7-to-rhnlib-2.5.65-5-el7.patch
1d9719
Patch4: rhnlib-2.5.65-5-el7-to-rhnlib-2.5.65-6-el7.patch
1d9719
Patch5: rhnlib-2.5.65-6-el7-to-rhnlib-2.5.65-7-el7.patch
1d9719
Version: 2.5.65
1d9719
Release: 7%{?dist}
1d9719
1d9719
Group: Development/Libraries
1d9719
License: GPLv2
1d9719
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1d9719
1d9719
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
1d9719
BuildArch: noarch
1d9719
%endif
1d9719
BuildRequires: python-devel
1d9719
1d9719
Requires: pyOpenSSL 
1d9719
Conflicts: rhncfg < 5.10.45
1d9719
Conflicts: spacewalk-proxy-installer < 1.3.2
1d9719
Conflicts: rhn-client-tools < 1.3.3
1d9719
Conflicts: rhn-custom-info < 5.4.7
1d9719
Conflicts: rhnpush < 5.5.10
1d9719
Conflicts: rhnclient < 0.10
1d9719
Conflicts: spacewalk-proxy < 1.3.6
1d9719
1d9719
%description
1d9719
rhnlib is a collection of python modules used by the Spacewalk (http://spacewalk.redhat.com) software.
1d9719
1d9719
1d9719
%prep
1d9719
%setup -q
1d9719
%patch0 -p1
1d9719
%patch1 -p1
1d9719
%patch2 -p1
1d9719
%patch3 -p1
1d9719
%patch4 -p1
1d9719
%patch5 -p1
1d9719
if [ ! -e setup.py ]; then
1d9719
    sed -e 's/@VERSION@/%{version}/' -e 's/@NAME@/%{name}/' setup.py.in > setup.py
1d9719
fi
1d9719
if [ ! -e setup.cfg ]; then
1d9719
    sed 's/@RELEASE@/%{release}/' setup.cfg.in > setup.cfg
1d9719
fi
1d9719
1d9719
1d9719
%build
1d9719
#%{__python} setup.py build
1d9719
make -f Makefile.rhnlib
1d9719
1d9719
1d9719
%install
1d9719
rm -rf $RPM_BUILD_ROOT
1d9719
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
1d9719
1d9719
1d9719
%clean
1d9719
rm -rf $RPM_BUILD_ROOT
1d9719
1d9719
1d9719
%files
1d9719
%doc ChangeLog COPYING README TODO
1d9719
1d9719
%{python_sitelib}/*
1d9719
1d9719
%changelog
1d9719
* Thu Oct 19 2017 Tomas Kasparek <tkasparek@redhat.com> 2.5.65-7
1d9719
- Resolves: #1503953 - upstream project has migrated to github
1d9719
  (tkasparek@redhat.com)
1d9719
1d9719
* Mon Oct 09 2017 Tomas Kasparek <tkasparek@redhat.com> 2.5.65-6
1d9719
- Resolves: #1499794 - revert previous reboot loop changes
1d9719
  (tkasparek@redhat.com)
1d9719
1d9719
* Thu Sep 21 2017 Tomas Kasparek <tkasparek@redhat.com> 2.5.65-5
1d9719
- Resolves: #1471045 - check a state of handshake before shutdown SSL
1d9719
  connection (grinrag@gmail.com)
1d9719
1d9719
* Mon Mar 06 2017 Gennadii Altukhov <galt@redhat.com> 2.5.65-4
1d9719
- Resolves: #1409577 - fixed BZ ID in changelog (galt@redhat.com)
1d9719
1d9719
* Mon Mar 06 2017 Gennadii Altukhov <galt@redhat.com> 2.5.65-3
1d9719
- 1409577 - bump release verion 
1d9719
1d9719
* Mon Mar 06 2017 Gennadii Altukhov <galt@redhat.com> 2.5.65-2
1d9719
- fix except in rhnlib to make it compatible with Python 2.4 (galt@redhat.com)
1d9719
- 1409577 - Reboot loop - rhn_check, rhnsd (jdostal@redhat.com)
1d9719
1d9719
* Wed Jul 17 2013 Tomas Kasparek <tkasparek@redhat.com> 2.5.65-1
1d9719
- updating copyright years
1d9719
1d9719
* Wed Jun 19 2013 Stephen Herr <sherr@redhat.com> 2.5.64-1
1d9719
- 947639 - rhnlib timeout fixes
1d9719
1d9719
* Mon Jun 17 2013 Michael Mraka <michael.mraka@redhat.com> 2.5.63-1
1d9719
- removed old CVS/SVN version ids
1d9719
- more branding cleanup
1d9719
1d9719
* Mon Jun 17 2013 Tomas Kasparek <tkasparek@redhat.com> 2.5.62-1
1d9719
- rebranding few more strings in client stuff
1d9719
1d9719
* Wed Jun 12 2013 Tomas Kasparek <tkasparek@redhat.com> 2.5.61-1
1d9719
- Revert "947639 - new rhnlib conflicts with old spacewalk-backend"
1d9719
1d9719
* Tue May 21 2013 Tomas Kasparek <tkasparek@redhat.com> 2.5.60-1
1d9719
- branding clean-up of rhel client stuff
1d9719
1d9719
* Thu May 02 2013 Stephen Herr <sherr@redhat.com> 2.5.59-1
1d9719
- 947639 - new rhnlib conflicts with old spacewalk-backend
1d9719
1d9719
* Tue Apr 09 2013 Stephen Herr <sherr@redhat.com> 2.5.58-1
1d9719
- 947639 - rhnlib update made necessary by error in rhncfg
1d9719
1d9719
* Wed Apr 03 2013 Stephen Herr <sherr@redhat.com> 2.5.57-1
1d9719
- 947639 - Make timeout of yum-rhn-plugin calls through rhn-client-tools
1d9719
  configurable
1d9719
1d9719
* Tue Apr 02 2013 Stephen Herr <sherr@redhat.com> 2.5.56-1
1d9719
- 947639 - make Proxy timeouts configurable
1d9719
- Purging %%changelog entries preceding Spacewalk 1.0, in active packages.
1d9719
1d9719
* Tue Oct 30 2012 Jan Pazdziora 2.5.55-1
1d9719
- Update the copyright year.
1d9719
1d9719
* Mon Oct 22 2012 Jan Pazdziora 2.5.54-1
1d9719
- Revert "Revert "Revert "get_server_capability() is defined twice in osad and
1d9719
  rhncfg, merge and move to rhnlib and make it member of rpclib.Server"""
1d9719
1d9719
* Thu Jun 21 2012 Jan Pazdziora 2.5.53-1
1d9719
- allow linking against openssl
1d9719
- %%defattr is not needed since rpm 4.4
1d9719
1d9719
* Thu Mar 29 2012 Jan Pazdziora 2.5.52-1
1d9719
- 807679 - replace $Revision$ with rhnlib version-release.
1d9719
1d9719
* Fri Jan 27 2012 Jan Pazdziora 2.5.51-1
1d9719
- Revert "make split_host IPv6 compliant" (msuchy@redhat.com)
1d9719
1d9719
* Wed Jan 11 2012 Miroslav Suchý 2.5.50-1
1d9719
- make split_host IPv6 compliant
1d9719
1d9719
* Wed Dec 21 2011 Milan Zazrivec <mzazrivec@redhat.com> 2.5.49-1
1d9719
- update copyright info
1d9719
1d9719
* Wed Nov 02 2011 Martin Minar <mminar@redhat.com> 2.5.48-1
1d9719
- Change PASS percentage after few attempts and print percentage in case of
1d9719
  failure (jhutar@redhat.com)
1d9719
1d9719
* Fri Oct 28 2011 Jan Pazdziora 2.5.47-1
1d9719
- Do not rely on exact amount of memomory when determinig PASS/FAIL
1d9719
  (jhutar@redhat.com)
1d9719
1d9719
* Mon Oct 24 2011 Martin Minar <mminar@redhat.com> 2.5.46-1
1d9719
- simplify code (msuchy@redhat.com)
1d9719
- move imports to beginning of file (msuchy@redhat.com)
1d9719
1d9719
* Wed Aug 17 2011 Martin Minar <mminar@redhat.com> 2.5.45-1
1d9719
- 730744 - support IPv6 connections (mzazrivec@redhat.com)
1d9719
1d9719
* Thu Aug 11 2011 Miroslav Suchý 2.5.44-1
1d9719
- do not mask original error by raise in execption
1d9719
1d9719
* Tue Aug 09 2011 Martin Minar <mminar@redhat.com> 2.5.43-1
1d9719
- 688095 - set timeout for HTTP connections (mzazrivec@redhat.com)
1d9719
1d9719
* Wed Jul 27 2011 Michael Mraka <michael.mraka@redhat.com> 2.5.42-1
1d9719
- import xmlrpclib directly
1d9719
- removed unnecessary implicit imports
1d9719
1d9719
* Fri May 20 2011 Michael Mraka <michael.mraka@redhat.com> 2.5.41-1
1d9719
- merged backend/common/UserDictCase.py into rhnlib/rhn/UserDictCase.py
1d9719
1d9719
* Wed Apr 13 2011 Jan Pazdziora 2.5.40-1
1d9719
- 683200 - simplify idn_pune_to_unicode and idn_ascii_to_pune
1d9719
  (msuchy@redhat.com)
1d9719
1d9719
* Fri Apr 08 2011 Miroslav Suchý 2.5.39-1
1d9719
- idn_ascii_to_pune() have to return string (msuchy@redhat.com)
1d9719
- Revert "idn_unicode_to_pune() have to return string" (msuchy@redhat.com)
1d9719
- update copyright years (msuchy@redhat.com)
1d9719
1d9719
* Tue Apr 05 2011 Michael Mraka <michael.mraka@redhat.com> 2.5.38-1
1d9719
- idn_unicode_to_pune() has to return string
1d9719
1d9719
* Wed Mar 30 2011 Jan Pazdziora 2.5.37-1
1d9719
- string does not exist, str is the correct thing to use here...
1d9719
  (jsherril@redhat.com)
1d9719
1d9719
* Wed Mar 16 2011 Miroslav Suchý <msuchy@redhat.com> 2.5.36-1
1d9719
- code cleanup - remove HTTPResponse.read() override
1d9719
1d9719
* Fri Mar 11 2011 Miroslav Suchý <msuchy@redhat.com> 2.5.35-1
1d9719
- 683200 - create idn_ascii_to_pune() and idn_pune_to_unicode(), which will
1d9719
  take care about corner cases of encodings.idna
1d9719
1d9719
* Wed Feb 16 2011 Miroslav Suchý <msuchy@redhat.com> 2.5.34-1
1d9719
- Revert "Revert "get_server_capability() is defined twice in osad and rhncfg,
1d9719
  merge and move to rhnlib and make it member of rpclib.Server""
1d9719
  (msuchy@redhat.com)
1d9719
1d9719
* Tue Feb 01 2011 Tomas Lestach <tlestach@redhat.com> 2.5.33-1
1d9719
- Revert "get_server_capability() is defined twice in osad and rhncfg, merge
1d9719
  and move to rhnlib and make it member of rpclib.Server" (tlestach@redhat.com)
1d9719
1d9719
* Fri Jan 28 2011 Miroslav Suchý <msuchy@redhat.com> 2.5.32-1
1d9719
- get_server_capability() is defined twice in osad and rhncfg, merge and move
1d9719
  to rhnlib and make it member of rpclib.Server
1d9719
- Updating the copyright years to include 2010.
1d9719
1d9719
* Mon Dec 20 2010 Michael Mraka <michael.mraka@redhat.com> 2.5.31-1
1d9719
- put crypto back
1d9719
1d9719
* Mon Dec 20 2010 Miroslav Suchý <msuchy@redhat.com> 2.5.30-1
1d9719
- conflitcs with older versions
1d9719
1d9719
* Wed Nov 24 2010 Michael Mraka <michael.mraka@redhat.com> 2.5.29-1
1d9719
- removed unused imports
1d9719
1d9719
* Tue Nov 02 2010 Jan Pazdziora 2.5.28-1
1d9719
- Update copyright years in the rest of the repo.
1d9719
1d9719
* Mon Sep 20 2010 Miroslav Suchý <msuchy@redhat.com> 2.5.27-1
1d9719
- add copyright file - this is required by Debian policy
1d9719
- update GPLv2 license file
1d9719
- 618267 - simplify regexp
1d9719
1d9719
* Thu Aug 05 2010 Milan Zazrivec <mzazrivec@redhat.com> 2.5.26-1
1d9719
- 618267 - do not allow control characters in xmlrpc communication
1d9719
1d9719
* Thu Jul 01 2010 Miroslav Suchý <msuchy@redhat.com> 2.5.25-1
1d9719
- 595837 - write nice error in case of "connection reset by peer" and xmlrpc
1d9719
  protocol error (msuchy@redhat.com)
1d9719
- 583980 - replace fcntl.O_NDELAY with os.O_NDELAY, for newer Pythons.
1d9719
  (jpazdziora@redhat.com)
1d9719
- 583020 - need to initialize self.send_handler for the class Server as well.
1d9719
  (jpazdziora@redhat.com)
1d9719
- Removing server from cmd-line (slukasik@redhat.com)
1d9719
- Adding port number to command line args (slukasik@redhat.com)
1d9719
- Adding shebang (slukasik@redhat.com)
1d9719
- Fixing return value (slukasik@redhat.com)
1d9719
- Fixing typo. (slukasik@redhat.com)
1d9719
1d9719
* Mon Apr 19 2010 Michael Mraka <michael.mraka@redhat.com> 2.5.24-1
1d9719
- Cleaning up, preparing for automatization
1d9719
- 575259 - properly set protocol type
1d9719