428098
#
428098
# Licensed to the Apache Software Foundation (ASF) under one or more
428098
# contributor license agreements.  See the NOTICE file distributed with
428098
# this work for additional information regarding copyright ownership.
428098
# The ASF licenses this file to You under the Apache License, Version 2.0
428098
# (the "License"); you may not use this file except in compliance with
428098
# the License.  You may obtain a copy of the License at
428098
#
428098
#     http://www.apache.org/licenses/LICENSE-2.0
428098
#
428098
# Unless required by applicable law or agreed to in writing, software
428098
# distributed under the License is distributed on an "AS IS" BASIS,
428098
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
428098
# See the License for the specific language governing permissions and
428098
# limitations under the License.
428098
#
428098
74cc39
%global         package_version 0.13.0-0
428098
%global         package_name redhat-support-tool
428098
%global         python_sitelib /usr/lib/python3.6/site-packages
428098
428098
Name:           %{package_name}
74cc39
Version:        0.13.0
74cc39
Release:        0%{?release_suffix}%{?dist}
428098
Summary:        Tool for console access to Red Hat subscriber services
428098
Vendor:         Red Hat, Inc.
428098
Group:          Development/Libraries
428098
License:        ASL 2.0
428098
URL:            https://api.access.redhat.com
428098
Source0:        http://people.redhat.com/kroberts/projects/redhat-support-tool/%{package_name}-%{package_version}.tar.gz
428098
428098
BuildRequires: python3-devel
428098
BuildRequires: python3-setuptools
428098
BuildArch: noarch
428098
%{!?dist:BuildRequires: buildsys-macros}
428098
428098
Requires: python3
428098
Requires: python3-lxml
428098
Requires: python3-magic
428098
Requires: python3-dateutil
74cc39
Requires: python3-requests
74cc39
Requires: python3-pexpect
74cc39
Requires: nmap-ncat
74cc39
Requires: redhat-support-lib-python >= 0.13.0-0
428098
428098
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
428098
428098
%description
428098
This package contains the Red Hat Support Tool.  The Red Hat Support Tool
428098
provides console based access to Red Hat's subscriber services.  These
428098
services include, but are not limited to, console based access to
428098
knowledge-base solutions, case management, automated diagnostic
428098
services, etc.
428098
428098
%prep
428098
%setup -q -n %{package_name}-%{package_version}
428098
428098
%build
428098
%configure \
428098
        --disable-python-syntax-check
428098
428098
make %{?_smp_mflags}
428098
428098
# For sample vendor plugin
428098
mkdir -p samples/vendors/
428098
mv src/redhat_support_tool/vendors/ACMECorp samples/vendors/
428098
428098
%install
428098
rm -rf "%{buildroot}"
428098
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
428098
428098
%files
428098
%doc AUTHORS README README.plugins samples/
428098
%{python_sitelib}/redhat_support_tool/
428098
%{_bindir}/redhat-support-tool
428098
428098
%changelog
74cc39
* Tue Nov 02 2021 Pranita Ghole<pghole@redhat.com> - 0.13.0-0
74cc39
- Resolves: rhbz#2018195 - RHST should use new Red Hat Secure FTP instead of dropbox for attachments
74cc39
- Resolves: rhbz#2018194 - Add support for handling JSON response from API's
74cc39
- Resolves: rhbz#1767195 - Add support to upload to and download from S3
74cc39
a03e5c
* Tue Nov 10 2020 Pranita Ghole<pghole@redhat.com> - 0.11.3-2
a03e5c
- Resolves: rhbz#1882771 - redhat-support-tool: UnboundLocalError: local variable 'timer' referenced before assignment
a03e5c
- Resolves: rhbz#1882772 - [RFE] Add functionality to generate and send sosreport after selecting the case.
a03e5c
- Resolves: rhbz#1882773 - [RFE] Generate and upload sosreport to case from cli
a03e5c
9e228a
* Tue Feb 18 2020 Pranita Ghole<pghole@redhat.com> - 0.11.2-2
9e228a
- Resolves: rhbz#1685296 - redhat-support-tool env var http_proxy does not work with user and password
9e228a
- Resolves: rhbz#1685295 - [RFE][RHEL8] Include Reason in cases of failed proxy
9e228a
- Resolves: rhbz#1684321 - redhat-support-tool config debug <level>` fails with "ERROR: debug is not a valid configuration file option.
428098
9e228a
* Thu Mar 28 2019 AP Rajshekhar<randalap@redhat.com> - 0.10.1-2
9e228a
- Resolves: rhbz#1680690 - redhat-support-tool changes blocked until gating tests are added
9e228a
74cc39
* Fri Feb 08 2019 Pranita Ghole<pghole@redhat.com> - 0.10.1-1
428098
- Resolves: rhbz#1670001 - redhat-support-tool -o option does not work (soscleaner)
428098
- Resolves: rhbz#1670369 - redhat-support-lib-python: Traceback on make_report from utils.reporthelper
428098
- Resolves: rhbz#1670044 - redhat-support-tool proxy does not work on rhel-8
428098
428098
* Mon Jan 21 2019 Vikas Rathee <vrathee@redhat.com> - 0.10.1-0
428098
- Resolves: rhbz#1628538 - Fixing python 3 issues and using latest redhat-support-lib-python
428098
428098
* Wed Nov 21 2018 Vikas Rathee <vrathee@redhat.com> - 0.10.0-0
428098
- Resolves: rhbz#1628538 - Changes for rhel-8
428098
428098
* Thu Nov 2 2017 Vikas Rathee <vrathee@redhat.com> - 0.9.10-1
428098
- Resolves: rhbz#1342627 - List cases by group.
428098
- Resolves: rhbz#1379619 - Inform when http_proxy environment variable is used.
428098
428098
* Wed May 31 2017 Vikas Rathee <vrathee@redhat.com> - 0.9.9-3
428098
- Resolves: rhbz#1380109 - Correcting spacing in non-interactive mode search results.
428098
428098
* Thu May 25 2017 Vikas Rathee <vrathee@redhat.com> - 0.9.9-2
428098
- Resolves: rhbz#1380109 - Include last modified date for solutions in non-interactive mode search
428098
428098
* Thu Apr 27 2017 Vikas Rathee <vrathee@redhat.com> - 0.9.9-1
428098
- Resolves: rhbz#1380109 - Include creation date and last modified date in Solution title details.
428098
- Resolves: rhbz#1342628 - When opening a new case, offer a default product.
428098
- Resolves: rhbz#1342632 - When opening a new case, offer to use the default case group of that user.
428098
428098
* Tue Jul 5 2016 Mark Huth <mhuth@redhat.com> - 0.9.8-6
428098
- Resolves: rhbz#1104344 - add soscleaner
428098
- Resolves: rhbz#1273976 - caches bad password
428098
- Resolves: rhbz#1284306 - improve ? help
428098
- Resolves: rhbz#1284308 - show attachment sizes
428098
- Resolves: rhbz#1284309 - show attachment full path
428098
- Resolves: rhbz#1284314 - differentiate diagnose and analyze
428098
- Resolves: rhbz#1290909 - change case internal status
428098
- Resolves: rhbz#1351141 - reverse severity list
428098
428098
* Wed Mar 4 2015 Mark Huth <mhuth@redhat.com> - 0.9.7-4
428098
- Resolves: rhbz#1196297 - typos in opencase
428098
- Resolves: rhbz#1196316 - change menus when closing a case
428098
- Fallback to ownerSSOName if associateSSOName filter gets 404 error in listcases
428098
- Other small fixes
428098
428098
* Wed Jan 7 2015 Mark Huth <mhuth@redhat.com> - 0.9.7-3
428098
- Resolves: rhbz#1168414 - rhel7 vmcore offset
428098
- Resolves: rhbz#1174461 - skip already downloaded attachments
428098
- Resolves: rhbz#1176473 - fix addattachment via FTP and proxy
428098
- Make debug_repos configurable via config option
428098
428098
* Thu Nov 13 2014 Mark Huth <mhuth@redhat.com> - 0.9.7-2
428098
- bz1161141 - search plugin output gives URLs to the XML page, not html
428098
- bz1122161 - rfe for comment numbers and public/private markers in Case Discussion in getcase
428098
- bz1122164 - rfe for ability to add private comments and attachments to a case
428098
428098
* Mon Oct 20 2014 Keith Robertson <kroberts@redhat.com> - 0.9.7-1
428098
- Allow the CLI to return more than 50 results
428098
- TypeError: Incorrect padding with a specific password and not working further.
428098
- diagnose filename output gives URLs to the XML file, not html, and XML displays author sso name
428098
- getcase subcommand of redhat-support-tool doesn't show the group name
428098
428098
* Fri Sep 5 2014 Keith Robertson <kroberts@redhat.com> - 0.9.6-3
428098
- Fix btextract in non-interactive mode
428098
428098
* Thu Jun 19 2014 Keith Robertson <kroberts@redhat.com> - 0.9.6-2
428098
- Display download progess for attachments
428098
- Fix list attachments duplicates
428098
428098
* Wed Feb 26 2014 Keith Robertson <kroberts@redhat.com> - 0.9.6-0
428098
- Various fixes
428098
428098
* Wed Aug 14 2013 Keith Robertson <kroberts@redhat.com> - 0.9.5-8
428098
- Resolves: rhbz#987168
428098
428098
* Tue Jul 23 2013 Keith Robertson <kroberts@redhat.com> - 0.9.5-6
428098
- Various RHEL 5 issues
428098
428098
* Mon Jul 22 2013 Keith Robertson <kroberts@redhat.com> - 0.9.5-4
428098
- Resolves: rhbz#983909
428098
- Resolves: rhbz#983896
428098
- Resolves: rhbz#983903
428098
- Also various issues with btextract
428098
428098
* Tue Jun 11 2013 Keith Robertson <kroberts@redhat.com> - 0.9.5-3
428098
- Resolves: bz880766
428098
428098
* Tue Jun 11 2013 Keith Robertson <kroberts@redhat.com> - 0.9.5-2
428098
- Various updates including;
428098
  - Filtering and pagination of listcases
428098
  - casegroup command
428098
  - opencase is in the analyze and diagnose commands
428098
  
428098
* Thu May 23 2013 Nigel Jones <nigjones@redhat.com> - 0.9.4-1
428098
- Diagnostics:
428098
  - Opening a case will now trigger the case recommendations engine
428098
    prior to opening the case.
428098
  - Extracted backtraces from kernel vmcores can be passed to
428098
    Ask Shadowman at the users request
428098
- Case Handling:
428098
  - modifycase can be triggered on a selected case
428098
  - Per above, opencase/diagnostics support
428098
- Plugins:
428098
  - Ability for Vendor/L3 plugins
428098
  - Sample 'ACMECorp' plugin + README.plugins in documentation directory.
428098
- Localization/Internationalization:
428098
  - Changes to support non-ASCII character input from character sets used in
428098
    Red Hat GSS supported languages.
428098
428098
* Wed May 1 2013 Nigel Jones <nigjones@redhat.com> - 0.9.3-1
428098
- Pagination bug fix to fix an offsetting bug that could contribute
428098
  to missing, or duplicate results.
428098
428098
* Fri Apr 26 2013 Nigel Jones <nigjones@redhat.com> - 0.9.2-1
428098
- Various updates to source, including:
428098
  - Pagination of 'listcases'
428098
  - Better debugability
428098
  - Splitfile abilities to 'addattachment'
428098
  - Recommendations support
428098
  - Changes to 'downloadall' attachment handling
428098
428098
* Wed Feb 20 2013 Nigel Jones <nigjones@redhat.com> - 0.9.0-2
428098
- Import into Red Hat packaging system
428098
428098
* Fri Apr 13 2012 Keith Robertson <kroberts@redhat.com> - 0.9.0-1
428098
- Initial build