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