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
fa6af9
Version:        1.2.1
6e9690
Release:        12%{?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
aff933
aff933
# Let the Patch1 be reserved for translations patches
6ec638
Patch1: 	lang.patch
fa6af9
Patch2: 	oscap-anaconda-addon-1.2.2-content_ident-PR_167.patch
fa6af9
Patch3: 	oscap-anaconda-addon-1.2.2-deep_archives-PR_168.patch
93b5fc
Patch4: 	oscap-anaconda-addon-1.2.2-absent_appstream-PR_184.patch
6e9690
Patch5: 	oscap-anaconda-addon-1.3.0-better_archive_handling-PR_220.patch
6e9690
Patch6: 	oscap-anaconda-addon-1.3.0-clicking_nocrash-PR_221.patch
6e9690
Patch7: 	oscap-anaconda-addon-1.3.0-fix_content_paths-PR_225.patch
6e9690
Patch8: 	oscap-anaconda-addon-null-http_content_url-PR_232.patch
6ec638
6ec638
BuildArch:      noarch
b9710d
BuildRequires:  make
6ec638
BuildRequires:  gettext
b9710d
BuildRequires:  python3-devel
6ec638
BuildRequires:  python3-pycurl
6ec638
BuildRequires:  openscap openscap-utils openscap-python3
aff933
BuildRequires:  anaconda-core >= 33
aff933
Requires:       anaconda-core >= 33
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
aff933
# As patches may translates the strings that are updated by later patches,
aff933
# Patch1 needs to be aplied last.
d410a5
%patch1 -p1
fa6af9
%patch2 -p1
fa6af9
%patch3 -p1
93b5fc
%patch4 -p1
6e9690
%patch5 -p1
6e9690
%patch6 -p1
6e9690
%patch7 -p1
6e9690
%patch8 -p1
aff933
# NOTE CONCERNING TRANSLATION PATCHES
aff933
# When preparing translation patches, don't consider that some languages are unsupported -
aff933
# we aim to include all applicable translation texts to the appropriate patch.
aff933
# This has consulted with ljanda@redhat.com, and we basically follow the existing practice of the Anaconda project we integrate into.
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
6e9690
* Wed Feb 08 2023 Matej Tyc <matyc@redhat.com> - 1.2.1-12
6e9690
- Update translations
6e9690
  Resolves: rhbz#2139743
6e9690
6e9690
* Mon Jan 23 2023 Matej Tyc <matyc@redhat.com> - 1.2.1-11
6e9690
- Fix a reaction to invalid content URI
6e9690
  Resolves: rhbz#2148509
6e9690
6e9690
* Wed Nov 23 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-10
6e9690
- Fix regression introduced when fixing content archive input
6e9690
  Resolves: rhbz#2129008
6e9690
6e9690
* Thu Nov 10 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-9
6e9690
- Fix problems with handling multi-datastream archives
6e9690
  Resolves: rhbz#2129008
6e9690
- Fix a crash when compulsively clicking in the GUI
6e9690
  Resolves: rhbz#2000998
6e9690
93b5fc
* Wed Jul 20 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-8
93b5fc
- Update translations
93b5fc
  Resolves: rhbz#2062707
93b5fc
93b5fc
* Fri Jun 10 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-7
93b5fc
- Remove the firstboot remediation feature completely.
93b5fc
  We can't have it, while maintaining the standard UX.
93b5fc
  Resolves: rhbz#2063179
93b5fc
93b5fc
* Mon Mar 21 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-6
93b5fc
- Introduce the firstboot remediation
93b5fc
  Resolves: rhbz#1834716
93b5fc
- Add better error handling of installation using unsupported installation sources
93b5fc
  Resolves: rhbz#2007981
93b5fc
92a604
* Fri Jan 21 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-5
92a604
- Updated translations
92a604
  Resolves: rhbz#2017356
92a604
fa6af9
* Fri Aug 20 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-4
fa6af9
- Updated translations
fa6af9
  Resolves: rhbz#1962007
fa6af9
fa6af9
* Mon Aug 09 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-3
fa6af9
- Fix handling of archives with directories in GUI installs
fa6af9
- Resolves: rhbz#1691305
fa6af9
fa6af9
* Tue Aug 03 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-2
fa6af9
- Refactor content identification
fa6af9
- Resolves: rhbz#1989441
fa6af9
fa6af9
* Fri Jul 30 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-1
fa6af9
- Rebase to the new upstream version.
fa6af9
- Resolves: rhbz#1691305
fa6af9
fa6af9
* Fri Jul 16 2021 Matej Tyc <matyc@redhat.com> - 1.2.0-2
fa6af9
- Updated translations
fa6af9
- Resolves: rhbz#1938623
fa6af9
fa6af9
* Fri Jun 25 2021 Matej Tyc <matyc@redhat.com> - 1.2.0-1
fa6af9
- Rebase to the new upstream version.
fa6af9
- Resolves: rhbz#1691305
fa6af9
b9710d
* Mon Feb 15 2021 Matej Tyc <matyc@redhat.com> - 1.1.1-7
b9710d
- Updated translations.
b9710d
b9710d
* Wed Nov 11 11:46:56 CET 2020 Matej Tyc <matyc@redhat.com> - 1.1.1-6
b9710d
- Improved handling of conflicts between packages removed vs software wanted to be installed - rhbz#1892310
b9710d
aff933
* Tue Aug 18 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-5
aff933
- Fixed issues with encountering filenames with weird encoding during scans - rhbz#1867960
aff933
aff933
* Thu Jul 09 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-4
aff933
- Fixed spoke window text: RHBZ#1855041
aff933
aff933
* Fri Jun 26 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-3
aff933
- Updated translations: RHBZ#1820557
aff933
aff933
* Mon Jun 22 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-2
aff933
- Fixed issues addressing combination of profiles and GUI-based software selections: RHBZ#1843932, RHBZ#1787156
aff933
- Improved handling of languages, capitalization: RHBZ#1696278
aff933
- Updated translations: RHBZ#1820557
aff933
aff933
* Tue Jun 02 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-1
aff933
- Rebase to upstream 1.1.1
aff933
- This OAA is compatible with the RHEL 8.3 Anaconda: RHBZ#1696278
aff933
- The UX has been improved: RHBZ#1781790
aff933
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