Blame SPECS/oscap-anaconda-addon.spec

8b6175
# Patch0 applies correctly but with mismatch and we dont't want backup file
8b6175
%global _default_patch_flags --no-backup-if-mismatch
8b6175
8b6175
Name:           oscap-anaconda-addon
bb5fc1
Version:        1.2.1
0364ea
Release:        12%{?dist}
8b6175
Summary:        Anaconda addon integrating OpenSCAP to the installation process
8b6175
8b6175
License:        GPLv2+
8b6175
URL:            https://github.com/OpenSCAP/oscap-anaconda-addon
8b6175
8b6175
# This is a Red Hat maintained package which is specific to
8b6175
# our distribution.
8b6175
#
8b6175
# The source is thus available only from within this SRPM
8b6175
# or via direct git checkout:
8b6175
# git clone https://github.com/OpenSCAP/oscap-anaconda-addon.git
8b6175
Source0:        %{name}-%{version}.tar.gz
8b6175
8b6175
# Let the Patch1 be reserved for translations patches
eaead1
Patch1: 	lang.patch
11e9fe
Patch2: 	oscap-anaconda-addon-1.2.2-content_ident-PR_167.patch
ca3341
Patch3: 	oscap-anaconda-addon-1.2.2-deep_archives-PR_168.patch
b5869c
Patch4: 	oscap-anaconda-addon-1.2.2-absent_appstream-PR_184.patch
36d401
Patch5: 	oscap-anaconda-addon-1.3.0-better_archive_handling-PR_220.patch
36d401
Patch6: 	oscap-anaconda-addon-1.3.0-clicking_nocrash-PR_221.patch
36d401
Patch7: 	oscap-anaconda-addon-1.3.0-fix_content_paths-PR_225.patch
266e55
Patch8: 	oscap-anaconda-addon-null-http_content_url-PR_232.patch
8b6175
8b6175
BuildArch:      noarch
84aa3d
BuildRequires:  make
8b6175
BuildRequires:  gettext
84aa3d
BuildRequires:  python3-devel
8b6175
BuildRequires:  python3-pycurl
8b6175
BuildRequires:  openscap openscap-utils openscap-python3
eaead1
BuildRequires:  anaconda-core >= 33
eaead1
Requires:       anaconda-core >= 33
8b6175
Requires:       python3-cpio
8b6175
Requires:       python3-pycurl
8b6175
Requires:       python3-kickstart
8b6175
Requires:       openscap openscap-utils openscap-python3
8b6175
Requires:       scap-security-guide
8b6175
8b6175
%description
8b6175
This is an addon that integrates OpenSCAP utilities with the Anaconda installer
8b6175
and allows installation of systems following restrictions given by a SCAP
8b6175
content.
8b6175
8b6175
%prep
8b6175
%setup -q -n %{name}-%{version}
8b6175
8b6175
# As patches may translates the strings that are updated by later patches,
8b6175
# Patch1 needs to be aplied last.
eaead1
%patch1 -p1
11e9fe
%patch2 -p1
ca3341
%patch3 -p1
b5869c
%patch4 -p1
36d401
%patch5 -p1
36d401
%patch6 -p1
36d401
%patch7 -p1
266e55
%patch8 -p1
8b6175
# NOTE CONCERNING TRANSLATION PATCHES
8b6175
# When preparing translation patches, don't consider that some languages are unsupported -
8b6175
# we aim to include all applicable translation texts to the appropriate patch.
8b6175
# This has consulted with ljanda@redhat.com, and we basically follow the existing practice of the Anaconda project we integrate into.
8b6175
8b6175
%build
8b6175
8b6175
#%check
8b6175
#make test
8b6175
8b6175
8b6175
%install
8b6175
make install DESTDIR=%{buildroot}
8b6175
%find_lang %{name}
8b6175
8b6175
%files -f %{name}.lang
8b6175
%{_datadir}/anaconda/addons/org_fedora_oscap
8b6175
8b6175
%doc COPYING ChangeLog README.md
8b6175
8b6175
%changelog
0364ea
* Wed Feb 08 2023 Matej Tyc <matyc@redhat.com> - 1.2.1-12
0364ea
- Update translations
0364ea
  Resolves: rhbz#2139743
0364ea
266e55
* Mon Jan 23 2023 Matej Tyc <matyc@redhat.com> - 1.2.1-11
266e55
- Fix a reaction to invalid content URI
266e55
  Resolves: rhbz#2148509
266e55
36d401
* Wed Nov 23 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-10
36d401
- Fix regression introduced when fixing content archive input
36d401
  Resolves: rhbz#2129008
36d401
36d401
* Thu Nov 10 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-9
36d401
- Fix problems with handling multi-datastream archives
36d401
  Resolves: rhbz#2129008
36d401
- Fix a crash when compulsively clicking in the GUI
36d401
  Resolves: rhbz#2000998
36d401
fe707e
* Wed Jul 20 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-8
fe707e
- Update translations
fe707e
  Resolves: rhbz#2062707
fe707e
8a6844
* Fri Jun 10 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-7
8a6844
- Remove the firstboot remediation feature completely.
8a6844
  We can't have it, while maintaining the standard UX.
8a6844
  Resolves: rhbz#2063179
8a6844
b5869c
* Mon Mar 21 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-6
b5869c
- Introduce the firstboot remediation
b5869c
  Resolves: rhbz#1834716
b5869c
- Add better error handling of installation using unsupported installation sources
b5869c
  Resolves: rhbz#2007981
b5869c
d85df6
* Fri Jan 21 2022 Matej Tyc <matyc@redhat.com> - 1.2.1-5
d85df6
- Updated translations
d85df6
  Resolves: rhbz#2017356
d85df6
3305a6
* Fri Aug 20 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-4
3305a6
- Updated translations
3305a6
  Resolves: rhbz#1962007
3305a6
ca3341
* Mon Aug 09 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-3
ca3341
- Fix handling of archives with directories in GUI installs
ca3341
- Resolves: rhbz#1691305
ca3341
11e9fe
* Tue Aug 03 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-2
11e9fe
- Refactor content identification
11e9fe
- Resolves: rhbz#1989441
11e9fe
bb5fc1
* Fri Jul 30 2021 Matej Tyc <matyc@redhat.com> - 1.2.1-1
bb5fc1
- Rebase to the new upstream version.
bb5fc1
- Resolves: rhbz#1691305
bb5fc1
e53e7a
* Fri Jul 16 2021 Matej Tyc <matyc@redhat.com> - 1.2.0-2
e53e7a
- Updated translations
e53e7a
- Resolves: rhbz#1938623
e53e7a
e53e7a
* Fri Jun 25 2021 Matej Tyc <matyc@redhat.com> - 1.2.0-1
e53e7a
- Rebase to the new upstream version.
e53e7a
- Resolves: rhbz#1691305
e53e7a
84aa3d
* Mon Feb 15 2021 Matej Tyc <matyc@redhat.com> - 1.1.1-7
84aa3d
- Updated translations.
84aa3d
044f22
* Wed Nov 11 11:46:56 CET 2020 Matej Tyc <matyc@redhat.com> - 1.1.1-6
044f22
- Improved handling of conflicts between packages removed vs software wanted to be installed - rhbz#1892310
044f22
ee798b
* Tue Aug 18 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-5
ee798b
- Fixed issues with encountering filenames with weird encoding during scans - rhbz#1867960
ee798b
b4bb48
* Thu Jul 09 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-4
b4bb48
- Fixed spoke window text: RHBZ#1855041
b4bb48
eaead1
* Fri Jun 26 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-3
eaead1
- Updated translations: RHBZ#1820557
eaead1
eaead1
* Mon Jun 22 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-2
eaead1
- Fixed issues addressing combination of profiles and GUI-based software selections: RHBZ#1843932, RHBZ#1787156
eaead1
- Improved handling of languages, capitalization: RHBZ#1696278
eaead1
- Updated translations: RHBZ#1820557
eaead1
eaead1
* Tue Jun 02 2020 Matěj Týč <matyc@redhat.com> - 1.1.1-1
8b6175
- Rebase to upstream 1.1.1
8b6175
- This OAA is compatible with the RHEL 8.3 Anaconda: RHBZ#1696278
8b6175
- The UX has been improved: RHBZ#1781790
8b6175
8b6175
* Mon Sep 02 2019 Watson Sato <wsato@redhat.com> - 1.0-10
8b6175
- Do not use capital letters for spoke title: RHBZ#1744185
8b6175
- Updated translations
8b6175
8b6175
* Wed Feb 13 2019 Matěj Týč <matyc@redhat.com> - 1.0-9
8b6175
- Updated translations: RHBZ#1645924
8b6175
8b6175
* Fri Feb 08 2019 Watson Yuuma Sato <wsato@redhat.com> - 1.0-8
8b6175
- Fixed translation of spoke title: RHBZ#1673044
8b6175
8b6175
* Fri Jan 18 2019 Matěj Týč <matyc@redhat.com> - 1.0-7
8b6175
- Fixed bootloader-related Anaconda API usage: RHBZ#1664036
8b6175
- Fixed root password-related Anaconda API usage: RHBZ#1665551
8b6175
- Fixed checksum-related Python2->3 issue: RHBZ#1665147
8b6175
8b6175
* Thu Jan 17 2019 Matěj Týč <matyc@redhat.com> - 1.0-6
8b6175
- Updated translations: RHBZ#1645924
8b6175
8b6175
* Mon Dec 17 2018 Matěj Týč <matyc@redhat.com> - 1.0-5
8b6175
- Applied the HelpFile -> help_id patch
8b6175
8b6175
* Fri Dec 14 2018 Matěj Týč <matyc@redhat.com> - 1.0-4
8b6175
- Updated translations: RHBZ#1608331, RHBZ#1645924
8b6175
8b6175
* Wed Oct 10 2018 Matěj Týč <matyc@redhat.com> - 1.0-3
8b6175
- Updated to the latest Anaconda API: RHBZ#1637635
8b6175
- Added updated translations: RHBZ#1608331
8b6175
8b6175
* Mon Oct 01 2018 Matěj Týč <matyc@redhat.com> - 1.0-2
8b6175
- Added the missing pycurl dependency.
8b6175
8b6175
* Tue Jul 03 2018 Matěj Týč <matyc@redhat.com> - 1.0-1
8b6175
- Rebased to upstream version 1.0
8b6175
- Python3 support, anaconda 28 support.
8b6175
8b6175
* Tue Dec 12 2017 Watson Yuuma Sato <wsato@redhat.com> - 0.8-3
8b6175
- Return empty string when there is no tailoring file
8b6175
  Resolves: rhbz#1520276
8b6175
8b6175
* Mon Dec 11 2017 Watson Sato <wsato@redhat.com> - 0.8-2
8b6175
- Add japanese translation
8b6175
- Update other translations
8b6175
  Resolves: rhbz#1481190
8b6175
- Fix selection of RHEL datastream
8b6175
  Resolves: rhbz#1520358
8b6175
8b6175
* Mon Nov 27 2017 Watson Sato <wsato@redhat.com> - 0.8-1
8b6175
- Rebase to the upstream version 0.8
8b6175
  Related: rhbz#1472419
8b6175
8b6175
* Tue May 30 2017 Watson Sato <wsato@redhat.com> - 0.7-15
8b6175
- Add japanese translation
8b6175
- Update other translations
8b6175
  Resolves: rhbz#1383181
8b6175
8b6175
* Thu Apr 20 2017 Raphael Sanchez Prudencio <rsprudencio@redhat.com> - 0.7-14
8b6175
- Fixed gtk warning messages when anaconda is starting.
8b6175
  Resolves: rhbz#1437106
8b6175
8b6175
* Tue Mar 28 2017 Martin Preisler <mpreisle@redhat.com> - 0.7-13
8b6175
- Avoid long delay before a GeoIP related timeout in case internet is not available
8b6175
  Resolves: rhbz#1379479
8b6175
8b6175
* Tue Sep 13 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-12
8b6175
- Properly handle tailoring files for datastreams
8b6175
  Resolves: rhbz#1364929
8b6175
8b6175
* Thu Aug 25 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-11
8b6175
- Don't require blank stderr when running the oscap tool
8b6175
  Resolves: rhbz#1360765
8b6175
- Beware of the invalid profiles
8b6175
  Resolves: rhbz#1365130
8b6175
- Properly set the seen property for root passwords
8b6175
  Resolves: rhbz#1357603
8b6175
8b6175
* Thu Jun 30 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-10
8b6175
- Clear spoke's info before setting an error
8b6175
  Resolves: rhbz#1349446
8b6175
8b6175
* Wed Jun  1 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-9
8b6175
- Use the System hub category provided by Anaconda
8b6175
  Resolves: rhbz#1269211
8b6175
- Wait for Anaconda to settle before evaluation
8b6175
  Resolves: rhbz#1265552
8b6175
- Make the changes overview scrollable and smaller
8b6175
  Related: rhbz#1263582
8b6175
- Make the list of profiles scrollable
8b6175
  Resolves: rhbz#1263582
8b6175
- Do not try to create a single file multiple times
8b6175
  Related: rhbz#1263315
8b6175
- Avoid crashes on extraction errors
8b6175
  Resolves: rhbz#1263315
8b6175
- Disable GPG checks when installing content to the system
8b6175
  Resolves: rhbz#1263216
8b6175
- Allow fixing root password in graphical installations
8b6175
  Resolves: rhbz#1265116
8b6175
- Enforce the minimal root password length
8b6175
  Resolves: rhbz#1238281
8b6175
- Just report misconfiguration instead of crashing in text mode
8b6175
  Resolves: rhbz#1263207
8b6175
- Do not verify SSL if inst.noverifyssl was given
8b6175
  Resolves: rhbz#1263257
8b6175
- Also catch data_fetch.DataFetchError when trying to get content
8b6175
  Resolves: rhbz#1263239
8b6175
- Use new method signature with payload class
8b6175
  Related: rhbz#1288636
8b6175
8b6175
* Wed Sep 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-8
8b6175
- Do not remove the root password behind user's back
8b6175
  Resolves: rhbz#1263254
8b6175
8b6175
* Mon Sep 7 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-7
8b6175
- Completely skip the execute() part if no profile is selected
8b6175
  Resolves: rhbz#1254973
8b6175
8b6175
* Mon Aug 24 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-6
8b6175
- Specify the name of the help content file
8b6175
  Resolves: rhbz#1254884
8b6175
- Skip files unrecognized by the 'oscap info' command
8b6175
  Resolves: rhbz#1255075
8b6175
- Only allow DS and XCCDF ID selection if it makes sense
8b6175
  Resolves: rhbz#1254876
8b6175
8b6175
* Tue Aug 4 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-5
8b6175
- Make sure DS and XCCDF ID lists are correctly refreshed
8b6175
  Resolves: rhbz#1240946
8b6175
- Make sure the DS and XCCDF ID combo boxes are visible for DS content
8b6175
  Resolves: rhbz#1249951
8b6175
- Try to load the OSCAP session early for DS content
8b6175
  Resolves: rhbz#1247654
8b6175
- Test preinst_content_path before raw_preinst_content_path
8b6175
  Resolves: rhbz#1249937
8b6175
- Clear any error if switching to the dry-run mode
8b6175
  Related: rhbz#1247677
8b6175
- Do not continue with and invalid profile ID
8b6175
  Resolves: rhbz#1247677
8b6175
- Cover all potential places with a non-main thread changing Gtk stuff
8b6175
  Resolves: rhbz#1240967
8b6175
8b6175
* Thu Jul 23 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-4
8b6175
- Better handle and report erroneous states
8b6175
  Resolves: rhbz#1241064
8b6175
- Make sure (some more) GUI actions run in the main thread
8b6175
  Resolves: rhbz#1240967
8b6175
- Beware of RPM->cpio entries' paths having absolute paths
8b6175
  Related: rhbz#1241064
8b6175
- Only output the kickstart section with content and profile set
8b6175
  Resolves: rhbz#1241395
8b6175
- Just report integrity check failure instead of traceback
8b6175
  Resolves: rhbz#1240710
8b6175
- Properly react on download/loading issues in text+kickstart mode
8b6175
  Related: rhbz#1240710
8b6175
- Fetch and process the content even if GUI doesn't take care of it
8b6175
  Resolves: rhbz#1240625
8b6175
8b6175
* Tue Jul 7 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-3
8b6175
- Do not output redundant/invalid fields for the SSG content (vpodzime)
8b6175
  Resolves: rhbz#1240285
8b6175
- Better handle unsupported URL types (vpodzime)
8b6175
  Resolves: rhbz#1232631
8b6175
- React better on network issues (vpodzime)
8b6175
  Resolves: rhbz#1236657
8b6175
- Improve the description of the default profile (vpodzime)
8b6175
  Resolves: rhbz#1238080
8b6175
- Use the openscap-scanner package instead of openscap-utils (vpodzime)
8b6175
  Resolves: rhbz#1240249
8b6175
- Better handle the case with no profile selected (vpodzime)
8b6175
  Resolves: rhbz#1235750
8b6175
- Add newline and one blank line after the %%addon section (vpodzime)
8b6175
  Resolves: rhbz#1238267
8b6175
- Word-wrap profile descriptions (vpodzime)
8b6175
  Resolves: rhbz#1236644
8b6175
8b6175
* Wed Jun 17 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-2
8b6175
- Add gettext to BuildRequires (vpodzime)
8b6175
  Related: rhbz#1204640
8b6175
8b6175
* Tue Jun 16 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-1
8b6175
- Rebase to the upstream version 0.7
8b6175
  Related: rhbz#1204640
8b6175
8b6175
* Tue Apr 28 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.6-1
8b6175
- Rebase to the upstream version 0.6
8b6175
  Resolves: rhbz#1204640
8b6175
8b6175
* Mon Aug 04 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-3
8b6175
- Don't distribute backup files
8b6175
  Resolves: rhbz#1065906
8b6175
* Wed Jan 15 2014 Vratislav Podizmek <vpodzime@redhat.com> - 0.4-2
8b6175
- Skip running tests on RHEL builds
8b6175
  Related: rhbz#1035662
8b6175
* Tue Jan 14 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-1
8b6175
- Beware of running Gtk actions from a non-main thread
8b6175
- Fix path to the tailoring file when getting rules
8b6175
- A git hook for running tests when pushing
8b6175
- Inform user if no profile is selected
8b6175
- Visually mark the selected profile
8b6175
- Better UX with content URL entry and progress label
8b6175
- React on invalid content properly (#1032846)
8b6175
- Stop spinner when data fetching is finished
8b6175
- Make the data fetching thread non-fatal (#1049989)
8b6175
- Exit code 2 from the oscap tool is not an error for us (#1050913)
8b6175
- Be ready to work with archives/RPMs containing data streams
8b6175
- Add unit tests for the keep_type_map function
8b6175
- Add support for namedtuples to keep_type_map
8b6175
- Add target for running pylint check
8b6175
- Add target for running just unittests
8b6175
- On the way to tailoring
8b6175
- Tests for kickstart XCCDF tailoring handling
8b6175
- Kickstart support for XCCDF tailoring
8b6175
- Check session validity also when using XCCDF benchmark
8b6175
8b6175
* Tue Dec 10 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.3-1
8b6175
- Implement and use our own better function for joining paths
8b6175
- The content entry should have focus if there is no content
8b6175
- RPM is just a weird archive in the pre-installation phase
8b6175
- Ignore RPM files as well
8b6175
- Adapt tests to dir constants now ending with "/"
8b6175
- CpioArchive cannot be created from a piped output
8b6175
- Fix namespace definitions in the testing XCCDF file
8b6175
- Prevent putting None into xccdf_session_is_sds
8b6175
- Fix the __all__ variable in the common module
8b6175
- Strip content dir prefix when setting xccdf/cpe paths
8b6175
- Inform user we now support archive URLs as well
8b6175
- Ignore various file types in the git repository
8b6175
- Try to find content files in the fetched archive or RPM
8b6175
- Run pylint -E as part of the test target
8b6175
- Return list of extracted files/directories when extracting archive
8b6175
- Do not try to search for empty file paths in archives
8b6175
- Properly set the content type based on the URL's suffix
8b6175
- Switch profiles on double-click
8b6175
- Hook urlEntry's activate signal to fetchButton click
8b6175
- Save the spoke's glade file with a new Glade
8b6175
- The addon now requires the python-cpio package
8b6175
- Use really_hide for the UI elements for datastream-id and xccdf-id
8b6175
- Support for RPM content in the GUI spoke
8b6175
- RPM content support for kickstart processing
8b6175
- Add property for the raw post-installation content path
8b6175
- Make content type case insensitive
8b6175
- Rest of the code needed for RPM extraction
8b6175
- Actually look for the file path in entry names
8b6175
- Basic stuff needed for the RPM content support
8b6175
- Run tests in paralel
8b6175
- Specify files in a better way in spec
8b6175
8b6175
* Mon Oct 21 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.2-1
8b6175
- Initial RPM for the oscap-anaconda-addon