File suseRegisterInfo-git-0.9d1d12e.obscpio of Package suseRegisterInfo.22709
07070100000000000041FD00000000000000000000000161FA7F2100000000000000000000000000000000000000000000001100000000suseRegisterInfo07070100000001000081B400000000000000000000000161FA7F210000001F000000000000000000000000000000000000001A00000000suseRegisterInfo/Makefileinclude ../../rel-eng/Makefile
07070100000002000081B400000000000000000000000161FA7F21000006BE000000000000000000000000000000000000001F00000000suseRegisterInfo/Makefile.defs# Common pathnames and programs for the Spacewalk project
#
# if not defined, definit as a noop
TOP ?= .
# global defines which control this build and where we deploy files
ROOT ?= /usr/share/rhn
export ROOT
SPACEWALK_ROOT ?= $(shell $(PYTHON_BIN) -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/spacewalk
export SPACEWALK_ROOT
PREFIX ?=
export PREFIX
# Compilation stuff
CC = gcc
PYTHON_INCLUDE = -I/usr/include/python$(PythonVersion)
CFLAGS = -Wall -O2 -fomit-frame-pointer $(PYTHON_INCLUDE) -fPIC
SOFLAGS = -shared -fPIC
# Installation stuff
INSTALL = /usr/bin/install -c --verbose
INSTALL_BIN = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_DIR = $(INSTALL) -m 755 -d
# This is for the subdir part
PYFILES = $(addsuffix .py,$(FILES))
SPACEWALK_PYFILES = $(addsuffix .py,$(SPACEWALK_FILES))
SPACEWALK_DEST ?= $(SPACEWALK_ROOT)/$(SUBDIR)
# what do we need to install and where
INSTALL_FILES += $(PYFILES)
INSTALL_DEST ?= $(ROOT)/$(SUBDIR)
SPACEWALK_INSTALL_FILES += $(SPACEWALK_PYFILES)
DIRS += $(addprefix $(PREFIX), \
$(sort $(EXTRA_DIRS)) $(INSTALL_DEST) $(SPACEWALK_ROOT) $(SPACEWALK_DEST))
all :: $(INSTALL_FILES)
install :: all $(DIRS) $(INSTALL_FILES) $(SPACEWALK_INSTALL_FILES)
@$(foreach f,$(INSTALL_FILES), \
$(INSTALL_DATA) $(f) $(PREFIX)$(INSTALL_DEST)/$(f) ; )
@$(foreach f,$(SPACEWALK_INSTALL_FILES), \
$(INSTALL_DATA) $(f) $(PREFIX)$(SPACEWALK_DEST)/$(f) ; )
$(DIRS):
$(INSTALL_DIR) $@
clean ::
@rm -fv *~ *.pyc *.pyo .??*~
@rm -fv .\#*
@rm -fv core
# useful macro
descend-subdirs = @$(foreach d,$(SUBDIRS), $(MAKE) -C $(d) $@ || exit 1; )
# subdirs are treated at the end
all install clean:: $(SUBDIRS)
$(descend-subdirs)
07070100000003000081B400000000000000000000000161FA7F2100000333000000000000000000000000000000000000002100000000suseRegisterInfo/Makefile.pythonTHIS_MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(dir $(THIS_MAKEFILE))
include $(CURRENT_DIR)../rel-eng/Makefile.python
# Docker tests variables
DOCKER_COOCKER_CONTAINER_BASE = suma-4.2
DOCKER_REGISTRY = registry.suse.de
DOCKER_RUN_EXPORT = "PYTHONPATH=$PYTHONPATH"
DOCKER_VOLUMES = -v "$(CURDIR)/../:/manager"
__pylint ::
$(call update_pip_env)
pylint --rcfile=pylintrc $(shell find -name '*.py') > reports/pylint.log || true
docker_pylint ::
docker run --rm -e $(DOCKER_RUN_EXPORT) $(DOCKER_VOLUMES) $(DOCKER_REGISTRY)/$(DOCKER_CONTAINER_BASE)-pgsql /bin/sh -c "cd /manager/suseRegisterInfo; make -f Makefile.python __pylint"
docker_shell ::
docker run -t -i --rm -e $(DOCKER_RUN_EXPORT) $(DOCKER_VOLUMES) $(DOCKER_REGISTRY)/$(DOCKER_CONTAINER_BASE)-pgsql /bin/bash
07070100000004000081B400000000000000000000000161FA7F21000002F7000000000000000000000000000000000000002B00000000suseRegisterInfo/Makefile.suseRegisterInfo# Makefile for Update Agent
#
# $Id$
PREFIX ?=
MANPATH ?= /usr/share/man
# Dirs we need to walk into
SUBDIRS = suseRegister
# Handy defines
VERSION := $(shell echo `grep ^Version: suseRegisterInfo.spec | awk '{ print $$2 }'`)
# Platfor could be defined via command line
ifndef PLATFORM
PLATFORM=rpm
endif
# For subdirs, required exports
export PREFIX
export MANPATH
export VERSION
export PLATFORM
all::
install:: all
clean::
@rm -fv *~ .*~
@rm -fv suseRegisterInfo*.tar.gz suseRegisterInfo*.tar.bz2
@find . -name .\#\* -exec rm -fv {} \;
@rm -fv *.rpm
# useful macro
descend-subdirs = @$(foreach d,$(SUBDIRS), $(MAKE) -C $(d) $@ || exit 1; )
# Now do the same in the subdirs
all clean install :: $(SUBDIRS)
$(descend-subdirs)
07070100000005000081B400000000000000000000000161FA7F21000013A0000000000000000000000000000000000000001A00000000suseRegisterInfo/pylintrc# suse register info package pylint configuration
[MASTER]
# Profiled execution.
profile=no
# Pickle collected data for later comparisons.
persistent=no
[MESSAGES CONTROL]
# Disable the message(s) with the given id(s).
disable=I0011,
C0302,
C0111,
R0801,
R0902,
R0903,
R0904,
R0912,
R0913,
R0914,
R0915,
R0921,
R0922,
W0142,
W0403,
W0603,
C1001,
W0121,
useless-else-on-loop,
bad-whitespace,
unpacking-non-sequence,
superfluous-parens,
cyclic-import,
redefined-variable-type,
no-else-return,
# Uyuni disabled
E0203,
E0611,
E1101,
E1102
# list of disabled messages:
#I0011: 62: Locally disabling R0201
#C0302: 1: Too many lines in module (2425)
#C0111: 1: Missing docstring
#R0902: 19:RequestedChannels: Too many instance attributes (9/7)
#R0903: Too few public methods
#R0904: 26:Transport: Too many public methods (22/20)
#R0912:171:set_slots_from_cert: Too many branches (59/20)
#R0913:101:GETServer.__init__: Too many arguments (11/10)
#R0914:171:set_slots_from_cert: Too many local variables (38/20)
#R0915:171:set_slots_from_cert: Too many statements (169/50)
#W0142:228:MPM_Package.write: Used * or ** magic
#W0403: 28: Relative import 'rhnLog', should be 'backend.common.rhnLog'
#W0603: 72:initLOG: Using the global statement
# for pylint-1.0 we also disable
#C1001: 46, 0: Old-style class defined. (old-style-class)
#W0121: 33,16: Use raise ErrorClass(args) instead of raise ErrorClass, args. (old-raise-syntax)
#W:243, 8: Else clause on loop without a break statement (useless-else-on-loop)
# pylint-1.1 checks
#C:334, 0: No space allowed after bracket (bad-whitespace)
#W:162, 8: Attempting to unpack a non-sequence defined at line 6 of (unpacking-non-sequence)
#C: 37, 0: Unnecessary parens after 'not' keyword (superfluous-parens)
#C:301, 0: Unnecessary parens after 'if' keyword (superfluous-parens)
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html
output-format=parseable
# Include message's id in output
include-ids=yes
# Tells whether to display a full report or only the messages
reports=yes
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
[VARIABLES]
# A regular expression matching names used for dummy variables (i.e. not used).
dummy-variables-rgx=_|dummy
[BASIC]
# Regular expression which should only match correct module names
#module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
module-rgx=([a-zA-Z_][a-zA-Z0-9_]+)$
# Regular expression which should only match correct module level names
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
# Regular expression which should only match correct class names
class-rgx=[a-zA-Z_][a-zA-Z0-9_]+$
# Regular expression which should only match correct function names
function-rgx=[a-z_][a-zA-Z0-9_]{,42}$
# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{,42}$
# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-zA-Z0-9_]{,30}$
# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-zA-Z0-9_]{,30}$
# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{,30}$
# Regular expression which should only match correct list comprehension /
# generator expression variable names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
# Regular expression which should only match correct class sttribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,42}|(__.*__))$
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,Run,_
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata
# List of builtins function names that should not be used, separated by a comma
bad-functions=apply,input
[DESIGN]
# Maximum number of arguments for function / method
max-args=10
# Maximum number of locals for function / method body
max-locals=20
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of branch for function / method body
max-branchs=20
# Maximum number of statements in function / method body
max-statements=50
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of attributes for a class (see R0902).
max-attributes=7
# Minimum number of public methods for a class (see R0903).
min-public-methods=1
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
[CLASSES]
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=120
# Maximum number of lines in a module
max-module-lines=1000
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=
07070100000006000041FD00000000000000000000000161FA7F2100000000000000000000000000000000000000000000001E00000000suseRegisterInfo/suseRegister07070100000007000081B400000000000000000000000161FA7F21000000AC000000000000000000000000000000000000002700000000suseRegisterInfo/suseRegister/Makefile# Makefile for suseRegister
#
SUBDIR = suseRegister
FILES = __init__ info
ROOT = $(PYTHONPATH)
# what is the backend top dir
TOP = ..
include $(TOP)/Makefile.defs
07070100000008000081B400000000000000000000000161FA7F21000001C8000000000000000000000000000000000000002A00000000suseRegisterInfo/suseRegister/__init__.py# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 Novell
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
__all__ = []
07070100000009000081B400000000000000000000000161FA7F2100001BCA000000000000000000000000000000000000002600000000suseRegisterInfo/suseRegister/info.py# -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2021 SUSE LLC
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
import os
import tempfile
import time
import xml.dom.minidom
from xml.dom import Node
from subprocess import Popen, PIPE
try:
import uuid
except ImportError:
uuid = None
def getInstalledProducts():
ret = []
try:
ret = getSUSEInstalledProducts()
except:
ret = getRedHatLikeProducts()
return ret
def getRedHatLikeProducts():
"""
1) if a RES release package (sles_es-release) is installed it is a RES.
2) if /etc/alinux-release exists it is an Alibaba Cloud Linux
2) if /etc/oracle-release exists it is a OracleLinux
3) is it a centos system? check if /etc/centos-release file exists
4) finally we can say it is a original RHEL (maybe:-)
"""
ret = None
if packageExistsWhatprovides("sles_es-release-server"):
ret = parseReleaseInfo()
if ret:
ret['name'] = "RES"
elif os.path.exists('/etc/alinux-release'):
ret = parseReleaseInfo(release='/etc/alinux-release')
if ret:
ret['name'] = "Alibaba"
elif os.path.exists('/etc/oracle-release'):
ret = parseReleaseInfo(release='/etc/oracle-release')
if ret:
ret['name'] = "OracleLinux"
elif os.path.exists('/etc/centos-release'):
ret = parseReleaseInfo(release='/etc/centos-release')
if ret:
ret['name'] = "CentOS"
elif os.path.exists('/etc/system-release'):
ret = parseReleaseInfo(release='/etc/system-release')
if ret:
ret['name'] = "AmazonLinux"
else:
ret = parseReleaseInfo()
if ret:
ret['name'] = "rhel-base"
if not ret:
raise Exception("Getting installed products failed")
result = []
result.append(ret)
return result
def packageExistsWhatprovides(pkg):
r = Popen(['rpm', '-q', '--whatprovides', pkg])
r.communicate()
return r.returncode == 0
def parseReleaseInfo(release='/etc/redhat-release'):
if not os.path.exists(release):
return None
try:
name = Popen(['/usr/lib/suseRegister/bin/parse_release_info', '-si', '--file', release], stdout=PIPE).communicate()[0]
version = Popen(['/usr/lib/suseRegister/bin/parse_release_info', '-sr', '--file', release], stdout=PIPE).communicate()[0]
release = Popen(['/usr/lib/suseRegister/bin/parse_release_info', '-sc', '--file', release], stdout=PIPE).communicate()[0]
arch = Popen(['uname', '-m'], stdout=PIPE).communicate()[0]
except:
return None
if '.' in version:
version = version[:version.find('.')]
p = {
'name' : name,
'version' : version.strip(),
'release' : release.strip(),
'arch' : arch.strip(),
'baseproduct' : 'Y' }
return p
def getSUSEInstalledProducts():
"""Return information about the installed products on a SUSE system
return a list of products
"""
my_env = os.environ
my_env["ZYPP_READONLY_HACK"] = "1"
productProfileFile = ""
try:
productProfile = Popen(['zypper', '-x', '--no-refresh', '--quiet', '--non-interactive', 'products', '--installed-only'],
stdout=PIPE, env=my_env).communicate()[0]
except:
raise Exception("Getting installed products failed")
dom = xml.dom.minidom.parseString(productProfile)
products = dom.getElementsByTagName("product")
ret = []
for product in products:
p = {
'name' : product.getAttribute('name'),
'version' : product.getAttribute('version'),
'release' : product.getAttribute('release'),
'arch' : product.getAttribute('arch'),
'baseproduct' : 'N' }
if product.getAttribute('isbase') in ("1", "true", "yes"):
p['baseproduct'] = 'Y'
ret.append(p)
return ret
def getOsTarget():
ostarget= ""
try:
ostarget = getSUSEOsTarget()
except:
try:
ostarget = Popen(['uname', '-m'], stdout=PIPE).communicate()[0]
except:
raise Exception("Getting ostarget failed")
return ostarget.strip()
def getSUSEOsTarget():
"""Returns the ostarget string"""
ostarget = ""
try:
ostarget = Popen(['zypper', 'targetos'], stdout=PIPE).communicate()[0]
except:
raise Exception("Getting ostarget failed")
return ostarget.strip()
def parseSystemID(systemidFile):
guid = ""
secret = ""
f = open(systemidFile, 'r')
for line in f:
if line[0] == "#":
continue
if line.startswith("username="):
guid = line[9:]
elif line.startswith("password="):
secret = line[9:]
f.close()
return { 'guid' : guid.strip(), 'secret' : secret.strip() }
def getSystemID():
sccCredentialsFile = '/etc/zypp/credentials.d/SCCcredentials'
nccCredentialsFile = '/etc/zypp/credentials.d/NCCcredentials'
nccCredentialsFileRH = '/etc/NCCcredentials'
zmdDeviceFile = '/etc/zmd/deviceid'
zmdSecretFile = '/etc/zmd/secret'
if os.path.exists(sccCredentialsFile):
return parseSystemID(sccCredentialsFile)
elif os.path.exists(nccCredentialsFile):
return parseSystemID(nccCredentialsFile)
elif os.path.exists(nccCredentialsFileRH):
return parseSystemID(nccCredentialsFileRH)
elif os.path.exists(zmdDeviceFile) and os.path.exists(zmdSecretFile):
f = open(zmdDeviceFile, 'r')
guid = f.readline()
guid = guid.strip()
f.close()
f = open(zmdSecretFile, 'r')
secret = f.readline()
secret = secret.strip()
f.close()
elif uuid is None:
guid = Popen(['uuidgen'], stdout=PIPE).communicate()[0]
guid = guid.replace('-', '').strip()
time.sleep(1)
secret = Popen(['uuidgen'], stdout=PIPE).communicate()[0]
secret = guid.replace('-', '').strip()
else:
guid = str(uuid.uuid4())
guid = guid.replace('-', '').strip()
time.sleep(1)
secret = str(uuid.uuid4())
secret = secret.replace('-', '').strip()
if os.path.exists('/etc/zypp/'):
if not os.path.exists('/etc/zypp/credentials.d'):
os.makedirs('/etc/zypp/credentials.d')
f = open(nccCredentialsFile, 'w')
else:
f = open(nccCredentialsFileRH, 'w')
f.write("username=%s\npassword=%s\n" % (guid, secret))
f.close()
return { 'guid' : guid, 'secret' : secret }
def getProductProfile():
""" Return information about the installed Products"""
ret = getSystemID()
ret['ostarget'] = getOsTarget()
ret['products'] = getInstalledProducts()
return ret
0707010000000A000081FD00000000000000000000000161FA7F2100000770000000000000000000000000000000000000003100000000suseRegisterInfo/suseRegister/parse_release_info#! /usr/bin/perl
use strict;
use Getopt::Long;
my $redhat_release="/etc/redhat-release";
my $version = undef;
my $id = undef;
my $description = undef;
my $release = undef;
my $codename = undef;
my $all = undef;
my $short = undef;
my $MSG_LSBVER="LSB Version:\t";
my $MSG_DISTID="Distributor ID:\t";
my $MSG_DISTDESC="Description:\t";
my $MSG_DISTREL="Release:\t";
my $MSG_DISTCODE="Codename:\t";
# Description string delimiter
my $DESCSTR_DELI="release";
my $DISTRIB_DESCRIPTION = '';
Getopt::Long::Configure ("bundling");
my $result = GetOptions ("version|v" => \$version,
"id|i" => \$id,
"description|d" => \$description,
"release|r" => \$release,
"codename|c" => \$codename,
"all|a" => \$all,
"short|s" => \$short,
"file|f=s" => \$redhat_release);
if ( ! -e $redhat_release )
{
exit 1;
}
open(RF, "< $redhat_release") or die "Cannot open $redhat_release: $!";
while (<RF>)
{
$DISTRIB_DESCRIPTION = $_;
chomp($DISTRIB_DESCRIPTION);
last;
}
if($version || $all)
{
print "$MSG_LSBVER" if ( ! $short );
print "n/a\n";
}
if($id || $all)
{
my $tmp = $DISTRIB_DESCRIPTION;
$tmp =~ s/\slinux\s/ /ig;
$tmp =~ s/(.+)\s$DESCSTR_DELI.*/$1/;
$tmp =~ s/\s//g;
print "$MSG_DISTID" if ( ! $short );
print "$tmp\n";
}
if($description || $all)
{
print "$MSG_DISTDESC" if ( ! $short );
print "$DISTRIB_DESCRIPTION\n";
}
if($release || $all)
{
my $tmp = $DISTRIB_DESCRIPTION;
$tmp =~ s/.*$DESCSTR_DELI\s*(\d[[:graph:]]*).*/$1/;
print "$MSG_DISTREL" if ( ! $short );
print "$tmp\n";
}
if($codename || $all)
{
my $tmp = $DISTRIB_DESCRIPTION;
$tmp =~ s/.*$DESCSTR_DELI.*\((.*)\).*/$1/;
print "$MSG_DISTCODE" if ( ! $short );
print "$tmp\n";
}
0707010000000B000081B400000000000000000000000161FA7F2100001C92000000000000000000000000000000000000002A00000000suseRegisterInfo/suseRegisterInfo.changes-------------------------------------------------------------------
Wed Feb 02 13:53:16 CET 2022 - jmassaguerpla@suse.de
- version 4.2.5-1
* require python macros for building
* Do not build python 2 package for SLE15 and higher
-------------------------------------------------------------------
Fri Jul 16 14:33:44 CEST 2021 - jgonzalez@suse.com
- version 4.2.4-1
- Adapt the tests to the new images
-------------------------------------------------------------------
Fri Apr 16 13:26:55 CEST 2021 - jgonzalez@suse.com
- version 4.2.3-1
- Add support for Amazon Linux 2
- Add support for Alibaba Cloud Linux 2
-------------------------------------------------------------------
Thu Dec 03 13:55:56 CET 2020 - jgonzalez@suse.com
- version 4.2.2-1
- Adapted for RHEL build.
-------------------------------------------------------------------
Fri Sep 18 11:50:05 CEST 2020 - jgonzalez@suse.com
- version 4.2.1-1
- Update package version to 4.2.0
-------------------------------------------------------------------
Thu Jul 23 13:34:26 CEST 2020 - jgonzalez@suse.com
- version 4.1.3-1
- enhance RedHat product detection for CentOS and OracleLinux (bsc#1173584)
-------------------------------------------------------------------
Wed May 20 10:59:46 CEST 2020 - jgonzalez@suse.com
- version 4.1.2-1
- suseRegisterInfo only needs perl-base, not full perl (bsc#1168310)
-------------------------------------------------------------------
Wed Nov 27 16:52:31 CET 2019 - jgonzalez@suse.com
- version 4.1.1-1
- Bump version to 4.1.0 (bsc#1154940)
-------------------------------------------------------------------
Wed May 15 15:28:15 CEST 2019 - jgonzalez@suse.com
- version 4.0.4-1
- SPEC cleanup
-------------------------------------------------------------------
Mon Apr 22 12:18:57 CEST 2019 - jgonzalez@suse.com
- version 4.0.3-1
- add makefile and pylint config
-------------------------------------------------------------------
Fri Oct 26 10:48:57 CEST 2018 - jgonzalez@suse.com
- version 4.0.2-1
- Make suseRegisterInfo compatible with Python 2 and 3
-------------------------------------------------------------------
Fri Aug 10 15:41:44 CEST 2018 - jgonzalez@suse.com
- version 4.0.1-1
- Bump version to 4.0.0 (bsc#1104034)
- Fix copyright for the package specfile (bsc#1103696)
-------------------------------------------------------------------
Mon Mar 05 09:02:16 CET 2018 - jgonzalez@suse.com
- version 3.2.2-1
- remove clean section from spec (bsc#1083294)
-------------------------------------------------------------------
Thu Oct 26 16:56:04 CEST 2017 - mc@suse.de
- version 3.2.1-1
- build for python 2 and 3
-------------------------------------------------------------------
Wed Jan 11 17:03:39 CET 2017 - michele.bologna@suse.com
- version 3.1.1-1
- Version bump to 3.1
-------------------------------------------------------------------
Mon Mar 21 16:24:58 CET 2016 - mc@suse.de
- version 3.0.2-1
- fix file permissions (bsc#970550)
-------------------------------------------------------------------
Wed Oct 07 16:11:27 CEST 2015 - mc@suse.de
- version 3.0.1-1
-------------------------------------------------------------------
Wed Sep 23 15:05:50 CEST 2015 - mc@suse.de
- version 2.1.11-1
- enable zypp readonly hack for product information retrieval (bsc#940361)
-------------------------------------------------------------------
Tue Mar 31 14:42:08 CEST 2015 - mc@suse.de
- version 2.1.10-1
- Copyright texts updated to SUSE LLC
-------------------------------------------------------------------
Tue Oct 14 15:23:17 CEST 2014 - mc@suse.de
- version 2.1.9-1
- re-add legacy suse_register_info to successfully perform the update
(bnc#898428)
-------------------------------------------------------------------
Fri Sep 12 15:47:09 CEST 2014 - mc@suse.de
- version 2.1.8-1
- remove asking SUSEConnect for systemid.
Not implemented in SUSEConnect
-------------------------------------------------------------------
Wed Sep 3 01:41:39 CEST 2014 - ro@suse.de
- sanitize release line in specfile
-------------------------------------------------------------------
Thu Jul 10 16:57:20 CEST 2014 - mc@suse.de
- version 2.1.7-1
- Fix suseRegisterInfo for RHEL5 systems
(use external uuidgen, as python does not yet have uuid support)
(bnc#885997)
-------------------------------------------------------------------
Fri May 16 12:52:57 CEST 2014 - mc@suse.de
- version 2.1.6-1
- fixed urls pointing to novell.com
-------------------------------------------------------------------
Thu Apr 10 17:39:21 CEST 2014 - mc@suse.de
- version 2.1.5-1
-------------------------------------------------------------------
Thu Apr 10 17:39:11 CEST 2014 - mc@suse.de
- fix release in specfile for SLE12 (bnc#872970)
-------------------------------------------------------------------
Mon Feb 24 14:21:48 CET 2014 - mc@suse.de
- version 2.1.4-1
- fix boolean test for zypper output (bnc#865313)
-------------------------------------------------------------------
Fri Feb 07 13:32:30 CET 2014 - mc@suse.de
- version 2.1.3-1
- format spec file
-------------------------------------------------------------------
Mon Jan 20 15:17:07 CET 2014 - mc@suse.de
- version 2.1.2-1
- change license to SPDX format
- create credentials.d directory if it does not exist
- replace suse_register_info with native calles of required
software to prepare for SLE12 integration
-------------------------------------------------------------------
Mon Dec 09 16:35:28 CET 2013 - mc@suse.de
- version 2.1.1-1
- switch to 2.1
-------------------------------------------------------------------
Thu Apr 04 15:37:03 CEST 2013 - mc@suse.de
- version 1.7.4-1
- fix parsing release file on RES (bnc#811805)
-------------------------------------------------------------------
Thu Nov 22 15:35:07 CET 2012 - jrenner@suse.de
- version 1.7.3-1
- fix precompile python files (bnc#776356)
-------------------------------------------------------------------
Fri Sep 28 16:46:33 CEST 2012 - mc@suse.de
- version 1.7.2-1
- precompile python code to prevent verification issues (bnc#776356)
-------------------------------------------------------------------
Wed Mar 21 16:30:50 CET 2012 - mc@suse.de
- version 1.7.1-1
- Bumping package version
-------------------------------------------------------------------
Thu Jul 7 11:13:08 CEST 2011 - mc@suse.de
- require suseRegister >= 1.4
-------------------------------------------------------------------
Wed Feb 2 11:55:40 CET 2011 - mc@suse.de
- suseRegisterRES uses a different place for the NCCcredentails
file.
-------------------------------------------------------------------
Fri Jan 28 17:26:35 CET 2011 - mc@suse.de
- use ZYPP_READONLY_HACK to be able to run inside of a
zypp process (bnc#667955)
-------------------------------------------------------------------
Fri Jan 21 17:10:28 CET 2011 - mc@suse.de
- create /etc/zypp/ if it does not exist
-------------------------------------------------------------------
Thu Dec 9 15:10:40 CET 2010 - ma@suse.de
- Version 1.2
-------------------------------------------------------------------
Thu Dec 9 11:36:19 CET 2010 - ma@suse.de
- Make suseRegisterInfo a separate package.
-------------------------------------------------------------------
0707010000000C000081B400000000000000000000000161FA7F2100000E40000000000000000000000000000000000000002700000000suseRegisterInfo/suseRegisterInfo.spec#
# spec file for package suseRegisterInfo
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?fedora} || 0%{?suse_version} > 1320 || 0%{?rhel} >= 8
%global build_py3 1
%global default_py3 1
%endif
%if !( 0%{?rhel} >= 8 || 0%{?sle_version} >= 150400 )
%global build_py2 1
%global __python /usr/bin/python2
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
%define pythonX %{?default_py3:python3}%{!?default_py3:python2}
Name: suseRegisterInfo
Version: 4.2.5
Release: 1%{?dist}
Summary: Tool to get informations from the local system
License: GPL-2.0-only
Group: Productivity/Other
Url: https://github.com/uyuni-project/uyuni
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} >= 1210
BuildArch: noarch
%endif
Requires: %{pythonX}-%{name} = %{version}-%{release}
%if 0%{?suse_version}
Requires: perl-base
%else
Requires: perl
%endif
%if 0%{?rhel} && 0%{?rhel} < 6
Requires: e2fsprogs
%endif
%description
This tool read data from the local system required
for a registration
%if 0%{?build_py2}
%package -n python2-%{name}
Summary: Python 2 specific files for %{name}
Group: Productivity/Other
Requires: %{name} = %{version}-%{release}
%if 0%{?rhel} >=8
Requires: python2
BuildRequires: python2-devel
%else
Requires: python
BuildRequires: python-devel
%endif
%description -n python2-%{name}
Python 2 specific files for %{name}.
%endif # 0%{?build_py2}
%if 0%{?build_py3}
%package -n python3-%{name}
Summary: Python 3 specific files for %{name}
Group: Productivity/Other
Requires: %{name} = %{version}-%{release}
Requires: python3
BuildRequires: python3-devel
BuildRequires: python3-rpm-macros
%description -n python3-%{name}
Python 2 specific files for %{name}.
%endif
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/lib/suseRegister/bin/
install -m 0755 suseRegister/parse_release_info %{buildroot}/usr/lib/suseRegister/bin/parse_release_info
%if 0%{?build_py2}
make -C suseRegister install PREFIX=$RPM_BUILD_ROOT PYTHONPATH=%{python_sitelib} PYTHON_BIN=%{pythonX}
%endif
%if 0%{?build_py3}
make -C suseRegister install PREFIX=$RPM_BUILD_ROOT PYTHONPATH=%{python3_sitelib} PYTHON_BIN=%{pythonX}
%endif
%if 0%{?suse_version}
%if 0%{?build_py2}
%py_compile -O %{buildroot}/%{python_sitelib}
%endif
%if 0%{?build_py3}
%py3_compile -O %{buildroot}/%{python3_sitelib}
%endif
%endif
%files
%defattr(-,root,root,-)
%dir /usr/lib/suseRegister
%dir /usr/lib/suseRegister/bin
/usr/lib/suseRegister/bin/parse_release_info
%if 0%{?build_py2}
%files -n python2-%{name}
%defattr(-,root,root)
%{python_sitelib}/suseRegister
%endif
%if 0%{?build_py3}
%files -n python3-%{name}
%defattr(-,root,root)
%{python3_sitelib}/suseRegister
%endif
%changelog
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!