Blame SPECS/oscap-anaconda-addon.spec

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