7fe54e
# Patch0 applies correctly but with mismatch and we dont't want backup file
7fe54e
%global _default_patch_flags --no-backup-if-mismatch
7fe54e
7fe54e
Name:           oscap-anaconda-addon
2c240c
Version:        0.9
2c240c
Release:        2%{?dist}
7fe54e
Summary:        Anaconda addon integrating OpenSCAP to the installation process
7fe54e
7fe54e
License:        GPLv2+
2c240c
URL:            https://www.open-scap.org/tools/oscap-anaconda-addon/
7fe54e
7fe54e
# This is a Red Hat maintained package which is specific to
7fe54e
# our distribution.
7fe54e
#
7fe54e
# The source is thus available only from within this SRPM
7fe54e
# or via direct git checkout:
7fe54e
# git clone https://github.com/OpenSCAP/oscap-anaconda-addon.git
7fe54e
Source0:        %{name}-%{version}.tar.gz
7fe54e
7fe54e
Patch0:         datastream_tailoring_1364929.patch
2c240c
Patch1:         update_japanese_translation_1569449.patch
7fe54e
7fe54e
BuildArch:      noarch
7fe54e
BuildRequires:  gettext
7fe54e
BuildRequires:	python2-devel
7fe54e
#BuildRequires:  python-mock
7fe54e
#BuildRequires:  python-nose
7fe54e
#BuildRequires:  python-cpio
7fe54e
BuildRequires:  anaconda-core >= 21.48.22.99
7fe54e
Requires:       anaconda-core >= 21.48.22.99
7fe54e
Requires:       openscap openscap-utils openscap-python
7fe54e
Requires:       python-cpio
7fe54e
Requires:       scap-security-guide
7fe54e
7fe54e
%description
7fe54e
This is an addon that integrates OpenSCAP utilities with the Anaconda installer
7fe54e
and allows installation of systems following restrictions given by a SCAP
7fe54e
content.
7fe54e
7fe54e
%prep
7fe54e
%setup -q -n %{name}-%{version}
7fe54e
%patch0 -p1
7fe54e
%patch1 -p1
7fe54e
7fe54e
%build
7fe54e
7fe54e
#%check
7fe54e
#make test
7fe54e
7fe54e
7fe54e
%install
7fe54e
make install DESTDIR=%{buildroot}
7fe54e
%find_lang %{name}
7fe54e
7fe54e
%files -f %{name}.lang
7fe54e
%{_datadir}/anaconda/addons/org_fedora_oscap
7fe54e
7fe54e
%doc COPYING ChangeLog README.md
7fe54e
7fe54e
%changelog
2c240c
* Mon Aug 20 2018 Watson Yuuma Sato <wsato@redhat.com> - 0.9-2
2c240c
- Add Japanese translation
2c240c
2c240c
* Mon Jun 11 2018 Watson Yuuma Sato <wsato@redhat.com> - 0.9-1
2c240c
- Rebase to the upstream version 0.9
2c240c
- Drop patch that fixed selection of RHEL Alternate Architecture datastream
2c240c
  Resolves: rhbz#1564903
2c240c
- Update project URL
2c240c
  Resolves: rhbz#1502379
2c240c
7fe54e
* Tue Feb 06 2018 Watson Yuuma Sato <wsato@redhat.com> - 0.8-4
7fe54e
- Define translation domain of oscap-anaconda-addon
7fe54e
  Resolves: rhbz#1540302
7fe54e
7fe54e
* Tue Dec 12 2017 Watson Yuuma Sato <wsato@redhat.com> - 0.8-3
7fe54e
- Return empty string when there is no tailoring file
7fe54e
  Resolves: rhbz#1520276
7fe54e
7fe54e
* Mon Dec 11 2017 Watson Sato <wsato@redhat.com> - 0.8-2
7fe54e
- Add japanese translation
7fe54e
- Update other translations
7fe54e
  Resolves: rhbz#1481190
7fe54e
- Fix selection of RHEL datastream
7fe54e
  Resolves: rhbz#1520358
7fe54e
7fe54e
* Mon Nov 27 2017 Watson Sato <wsato@redhat.com> - 0.8-1
7fe54e
- Rebase to the upstream version 0.8
7fe54e
  Related: rhbz#1472419
7fe54e
7fe54e
* Tue May 30 2017 Watson Sato <wsato@redhat.com> - 0.7-15
7fe54e
- Add japanese translation
7fe54e
- Update other translations
7fe54e
  Resolves: rhbz#1383181
7fe54e
7fe54e
* Thu Apr 20 2017 Raphael Sanchez Prudencio <rsprudencio@redhat.com> - 0.7-14
7fe54e
- Fixed gtk warning messages when anaconda is starting.
7fe54e
  Resolves: rhbz#1437106
7fe54e
7fe54e
* Tue Mar 28 2017 Martin Preisler <mpreisle@redhat.com> - 0.7-13
7fe54e
- Avoid long delay before a GeoIP related timeout in case internet is not available
7fe54e
  Resolves: rhbz#1379479
7fe54e
7fe54e
* Tue Sep 13 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-12
7fe54e
- Properly handle tailoring files for datastreams
7fe54e
  Resolves: rhbz#1364929
7fe54e
7fe54e
* Thu Aug 25 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-11
7fe54e
- Don't require blank stderr when running the oscap tool
7fe54e
  Resolves: rhbz#1360765
7fe54e
- Beware of the invalid profiles
7fe54e
  Resolves: rhbz#1365130
7fe54e
- Properly set the seen property for root passwords
7fe54e
  Resolves: rhbz#1357603
7fe54e
7fe54e
* Thu Jun 30 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-10
7fe54e
- Clear spoke's info before setting an error
7fe54e
  Resolves: rhbz#1349446
7fe54e
7fe54e
* Wed Jun  1 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-9
7fe54e
- Use the System hub category provided by Anaconda
7fe54e
  Resolves: rhbz#1269211
7fe54e
- Wait for Anaconda to settle before evaluation
7fe54e
  Resolves: rhbz#1265552
7fe54e
- Make the changes overview scrollable and smaller
7fe54e
  Related: rhbz#1263582
7fe54e
- Make the list of profiles scrollable
7fe54e
  Resolves: rhbz#1263582
7fe54e
- Do not try to create a single file multiple times
7fe54e
  Related: rhbz#1263315
7fe54e
- Avoid crashes on extraction errors
7fe54e
  Resolves: rhbz#1263315
7fe54e
- Disable GPG checks when installing content to the system
7fe54e
  Resolves: rhbz#1263216
7fe54e
- Allow fixing root password in graphical installations
7fe54e
  Resolves: rhbz#1265116
7fe54e
- Enforce the minimal root password length
7fe54e
  Resolves: rhbz#1238281
7fe54e
- Just report misconfiguration instead of crashing in text mode
7fe54e
  Resolves: rhbz#1263207
7fe54e
- Do not verify SSL if inst.noverifyssl was given
7fe54e
  Resolves: rhbz#1263257
7fe54e
- Also catch data_fetch.DataFetchError when trying to get content
7fe54e
  Resolves: rhbz#1263239
7fe54e
- Use new method signature with payload class
7fe54e
  Related: rhbz#1288636
7fe54e
7fe54e
* Wed Sep 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-8
7fe54e
- Do not remove the root password behind user's back
7fe54e
  Resolves: rhbz#1263254
7fe54e
7fe54e
* Mon Sep 7 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-7
7fe54e
- Completely skip the execute() part if no profile is selected
7fe54e
  Resolves: rhbz#1254973
7fe54e
7fe54e
* Mon Aug 24 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-6
7fe54e
- Specify the name of the help content file
7fe54e
  Resolves: rhbz#1254884
7fe54e
- Skip files unrecognized by the 'oscap info' command
7fe54e
  Resolves: rhbz#1255075
7fe54e
- Only allow DS and XCCDF ID selection if it makes sense
7fe54e
  Resolves: rhbz#1254876
7fe54e
7fe54e
* Tue Aug 4 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-5
7fe54e
- Make sure DS and XCCDF ID lists are correctly refreshed
7fe54e
  Resolves: rhbz#1240946
7fe54e
- Make sure the DS and XCCDF ID combo boxes are visible for DS content
7fe54e
  Resolves: rhbz#1249951
7fe54e
- Try to load the OSCAP session early for DS content
7fe54e
  Resolves: rhbz#1247654
7fe54e
- Test preinst_content_path before raw_preinst_content_path
7fe54e
  Resolves: rhbz#1249937
7fe54e
- Clear any error if switching to the dry-run mode
7fe54e
  Related: rhbz#1247677
7fe54e
- Do not continue with and invalid profile ID
7fe54e
  Resolves: rhbz#1247677
7fe54e
- Cover all potential places with a non-main thread changing Gtk stuff
7fe54e
  Resolves: rhbz#1240967
7fe54e
7fe54e
* Thu Jul 23 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-4
7fe54e
- Better handle and report erroneous states
7fe54e
  Resolves: rhbz#1241064
7fe54e
- Make sure (some more) GUI actions run in the main thread
7fe54e
  Resolves: rhbz#1240967
7fe54e
- Beware of RPM->cpio entries' paths having absolute paths
7fe54e
  Related: rhbz#1241064
7fe54e
- Only output the kickstart section with content and profile set
7fe54e
  Resolves: rhbz#1241395
7fe54e
- Just report integrity check failure instead of traceback
7fe54e
  Resolves: rhbz#1240710
7fe54e
- Properly react on download/loading issues in text+kickstart mode
7fe54e
  Related: rhbz#1240710
7fe54e
- Fetch and process the content even if GUI doesn't take care of it
7fe54e
  Resolves: rhbz#1240625
7fe54e
7fe54e
* Tue Jul 7 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-3
7fe54e
- Do not output redundant/invalid fields for the SSG content (vpodzime)
7fe54e
  Resolves: rhbz#1240285
7fe54e
- Better handle unsupported URL types (vpodzime)
7fe54e
  Resolves: rhbz#1232631
7fe54e
- React better on network issues (vpodzime)
7fe54e
  Resolves: rhbz#1236657
7fe54e
- Improve the description of the default profile (vpodzime)
7fe54e
  Resolves: rhbz#1238080
7fe54e
- Use the openscap-scanner package instead of openscap-utils (vpodzime)
7fe54e
  Resolves: rhbz#1240249
7fe54e
- Better handle the case with no profile selected (vpodzime)
7fe54e
  Resolves: rhbz#1235750
7fe54e
- Add newline and one blank line after the %%addon section (vpodzime)
7fe54e
  Resolves: rhbz#1238267
7fe54e
- Word-wrap profile descriptions (vpodzime)
7fe54e
  Resolves: rhbz#1236644
7fe54e
7fe54e
* Wed Jun 17 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-2
7fe54e
- Add gettext to BuildRequires (vpodzime)
7fe54e
  Related: rhbz#1204640
7fe54e
7fe54e
* Tue Jun 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-1
7fe54e
- Rebase to the upstream version 0.7
7fe54e
  Related: rhbz#1204640
7fe54e
7fe54e
* Tue Apr 28 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.6-1
7fe54e
- Rebase to the upstream version 0.6
7fe54e
  Resolves: rhbz#1204640
7fe54e
7fe54e
* Mon Aug 04 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-3
7fe54e
- Don't distribute backup files
7fe54e
  Resolves: rhbz#1065906
7fe54e
* Wed Jan 15 2014 Vratislav Podizmek <vpodzime@redhat.com> - 0.4-2
7fe54e
- Skip running tests on RHEL builds
7fe54e
  Related: rhbz#1035662
7fe54e
* Tue Jan 14 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-1
7fe54e
- Beware of running Gtk actions from a non-main thread
7fe54e
- Fix path to the tailoring file when getting rules
7fe54e
- A git hook for running tests when pushing
7fe54e
- Inform user if no profile is selected
7fe54e
- Visually mark the selected profile
7fe54e
- Better UX with content URL entry and progress label
7fe54e
- React on invalid content properly (#1032846)
7fe54e
- Stop spinner when data fetching is finished
7fe54e
- Make the data fetching thread non-fatal (#1049989)
7fe54e
- Exit code 2 from the oscap tool is not an error for us (#1050913)
7fe54e
- Be ready to work with archives/RPMs containing data streams
7fe54e
- Add unit tests for the keep_type_map function
7fe54e
- Add support for namedtuples to keep_type_map
7fe54e
- Add target for running pylint check
7fe54e
- Add target for running just unittests
7fe54e
- On the way to tailoring
7fe54e
- Tests for kickstart XCCDF tailoring handling
7fe54e
- Kickstart support for XCCDF tailoring
7fe54e
- Check session validity also when using XCCDF benchmark
7fe54e
7fe54e
* Tue Dec 10 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.3-1
7fe54e
- Implement and use our own better function for joining paths
7fe54e
- The content entry should have focus if there is no content
7fe54e
- RPM is just a weird archive in the pre-installation phase
7fe54e
- Ignore RPM files as well
7fe54e
- Adapt tests to dir constants now ending with "/"
7fe54e
- CpioArchive cannot be created from a piped output
7fe54e
- Fix namespace definitions in the testing XCCDF file
7fe54e
- Prevent putting None into xccdf_session_is_sds
7fe54e
- Fix the __all__ variable in the common module
7fe54e
- Strip content dir prefix when setting xccdf/cpe paths
7fe54e
- Inform user we now support archive URLs as well
7fe54e
- Ignore various file types in the git repository
7fe54e
- Try to find content files in the fetched archive or RPM
7fe54e
- Run pylint -E as part of the test target
7fe54e
- Return list of extracted files/directories when extracting archive
7fe54e
- Do not try to search for empty file paths in archives
7fe54e
- Properly set the content type based on the URL's suffix
7fe54e
- Switch profiles on double-click
7fe54e
- Hook urlEntry's activate signal to fetchButton click
7fe54e
- Save the spoke's glade file with a new Glade
7fe54e
- The addon now requires the python-cpio package
7fe54e
- Use really_hide for the UI elements for datastream-id and xccdf-id
7fe54e
- Support for RPM content in the GUI spoke
7fe54e
- RPM content support for kickstart processing
7fe54e
- Add property for the raw post-installation content path
7fe54e
- Make content type case insensitive
7fe54e
- Rest of the code needed for RPM extraction
7fe54e
- Actually look for the file path in entry names
7fe54e
- Basic stuff needed for the RPM content support
7fe54e
- Run tests in paralel
7fe54e
- Specify files in a better way in spec
7fe54e
7fe54e
* Mon Oct 21 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.2-1
7fe54e
- Initial RPM for the oscap-anaconda-addon