Blame SPECS/oscap-anaconda-addon.spec

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