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