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