Blame SPECS/oscap-anaconda-addon.spec

34a780
%if 0%{?rhel} == 8
34a780
%define anaconda_core_version 33
34a780
%endif
34a780
%if 0%{?rhel} == 9
34a780
%define anaconda_core_version 34
34a780
%endif
34a780
%if 0%{?fedora}
34a780
%define anaconda_core_version %{fedora}
34a780
%endif
34a780
34a780
Name:           oscap-anaconda-addon
34a780
Version:        2.0.0
841f9c
Release:        7%{?dist}
34a780
Summary:        Anaconda addon integrating OpenSCAP to the installation process
34a780
34a780
License:        GPLv2+
34a780
URL:            https://github.com/OpenSCAP/oscap-anaconda-addon
34a780
34a780
Source0:        https://github.com/OpenSCAP/oscap-anaconda-addon/releases/download/r%{version}/%{name}-%{version}.tar.gz
34a780
# TODO: Remove when the fixed upstream release contains dbus service data
34a780
Source1:        addon-dbus-data.zip
34a780
34a780
Patch1: 	lang.patch
34a780
Patch2: 	oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch
6272c7
Patch3: 	oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch
6272c7
Patch4: 	oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch
6272c7
Patch5: 	oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch
6272c7
Patch6: 	oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch
841f9c
Patch7: 	oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch
34a780
34a780
BuildArch:      noarch
34a780
BuildRequires:  make
34a780
BuildRequires:  gettext
34a780
BuildRequires:  python3-devel
34a780
BuildRequires:  python3-pycurl
34a780
BuildRequires:  openscap openscap-utils openscap-python3
34a780
BuildRequires:  anaconda-core >= %{anaconda_core_version}
34a780
Requires:       anaconda-core >= %{anaconda_core_version}
34a780
Requires:       python3-pycurl
34a780
Requires:       python3-kickstart
34a780
Requires:       openscap openscap-utils openscap-python3
34a780
Requires:       scap-security-guide
34a780
34a780
%description
34a780
This is an addon that integrates OpenSCAP utilities with the Anaconda installer
34a780
and allows installation of systems following restrictions given by a SCAP
34a780
content.
34a780
34a780
%prep
34a780
%autosetup -p1
34a780
unzip %{_sourcedir}/addon-dbus-data.zip
34a780
34a780
%build
34a780
34a780
%check
34a780
34a780
%install
34a780
make install DESTDIR=%{buildroot}
34a780
%find_lang %{name}
34a780
34a780
%files -f %{name}.lang
34a780
%{_datadir}/anaconda/addons/org_fedora_oscap
34a780
%{_datadir}/anaconda/dbus/confs/org.fedoraproject.Anaconda.Addons.OSCAP.conf
34a780
%{_datadir}/anaconda/dbus/services/org.fedoraproject.Anaconda.Addons.OSCAP.service
34a780
34a780
%doc COPYING ChangeLog README.md
34a780
34a780
%changelog
841f9c
* Mon Dec 13 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-7
841f9c
- Don't show the OSCAP spoke if the OSCAP DBus module is disabled
841f9c
  Resolves: rhbz#2018954
841f9c
6272c7
* Thu Nov 25 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-6
6272c7
- Fix handling of tailoring in RHEL9
6272c7
  Resolves: rhbz#1996129
6272c7
6272c7
* Wed Nov 10 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-5
6272c7
- Fix handling of content archives
6272c7
  Resolves: rhbz#1996129
6272c7
- Fix handling of content fingerprint
6272c7
  Resolves: rhbz#1993065
6272c7
- Fix crash when a previously selected hardening has been cancelled
6272c7
  Resolves: rhbz#2014108
6272c7
- Pull latest translations
6272c7
34a780
* Fri Aug 20 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-4
34a780
- Update translations
34a780
  Resolves: rhbz#1962112
34a780
34a780
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-3
34a780
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
34a780
  Related: rhbz#1991688
34a780
34a780
* Tue Aug 03 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-2
34a780
- Fix issues with locally installed content and labelling of discovered content.
34a780
- Resolves: rhbz#1989434
34a780
34a780
* Fri Jul 02 2021 Matej Tyc <matyc@redhat.com> - 2.0.0-1
34a780
- Rebase to the 2.0.0 upstream release.
34a780
- Remove the cpio dependency which is not needed any more.
34a780
34a780
* Wed Jun 23 2021 Jan Černý <jcerny@redhat.com> - 1.0-11
34a780
- Rebuild after test config change in test.yml
34a780
34a780
* Mon Jun 14 2021 Matej Tyc <matyc@redhat.com> - 1.0-10
34a780
- Unified the spec file with the Fedora one.
34a780
- Removed unwanted dependencies.
34a780
- nose is not needed for a long time.
34a780
- mock has been moved into the Python standard library, so it is also not needed.
34a780
34a780
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0-9
34a780
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
34a780
34a780
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
34a780
34a780
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-7
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
34a780
34a780
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
34a780
34a780
* Mon Aug 12 2019 Matěj Týč <matyc@redhat.com> - 1.0-5
34a780
- Disabled execution of tests, as they are not meant to be executed in the build environment.
34a780
34a780
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
34a780
34a780
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
34a780
34a780
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
34a780
34a780
* Tue Jul 03 2018 Matěj Týč <matyc@redhat.com> - 1.0-1
34a780
- Rebased to upstream version 1.0
34a780
- Python3 support, anaconda 28 support.
34a780
34a780
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7-7
34a780
- Escape macros in %%changelog
34a780
34a780
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-6
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
34a780
34a780
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-5
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
34a780
34a780
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-4
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
34a780
34a780
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-3
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
34a780
34a780
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
34a780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
34a780
34a780
* Wed Jan 07 2015 Vratislav Podzimek <vpodzime@redhat.com> - 0.7-1
34a780
- Adapt to changes in Anaconda
34a780
- Define name of the spoke window
34a780
- Set fetching flag to False when extraction error happens
34a780
- Remove code that was pushed to the anaconda's sources
34a780
34a780
* Fri Feb 28 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.6-2
34a780
- Rebuild with building issues fixed
34a780
34a780
* Fri Feb 28 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.6-1
34a780
- Getting status needs to run in the main thread
34a780
- Grab focus for the URL entry after switching notebook page
34a780
- Clear rule data when unselecting profile
34a780
- Update message as part of the initialization
34a780
- Add BuildRequires: gettext
34a780
- Include translations in the tarball and RPM
34a780
34a780
* Fri Feb 28 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.5-1
34a780
- Allow users to change content
34a780
- Show and hide control buttons properly
34a780
- Fix sensitivity of the URL entry and fetch button
34a780
- Add the button allowing users to use SSG content if available
34a780
- Fix listing python sources when creating potfile and regenerate it
34a780
- Omit the %%addon section from kickstart in dry-run mode
34a780
- Implement the dry-run mode in the GUI (trac#2)
34a780
- Add UI elements for content changing and dry-run mode
34a780
- Check content_defined instead of content_url in the GUI code
34a780
- First select the profile, then update the message store
34a780
- Remove unused import
34a780
- Ignore some more temporary/backup files
34a780
- If no content is specified and SSG is available, use it
34a780
- New special content type -- SCAP Security Guide
34a780
- Fix name of the property used when doing fingerprint check
34a780
- Get rid of an unused variable
34a780
- Fix data fetch locking to work properly with kickstart installations
34a780
- Use 'anonymous:' if no username and password is given for FTP
34a780
- Initial version of the translations template file
34a780
- First steps to dry-run mode
34a780
- Fix main notebook tabs
34a780
- Make translations work
34a780
- Manipulation with the i18n related files
34a780
- If no profile is given, default to default
34a780
- Ignore updates.img and its auxiliary directory
34a780
- Catch only fetching errors from the fetching thread
34a780
- Do not allow multiple simultaneous fetches/initializations
34a780
- Prevent user from changing the URL while we try to fetch from it
34a780
- Add support for the Default profile
34a780
- Support FTP as a content source (#1050980)
34a780
- React properly on archive extraction failure
34a780
- Refactor the code pre-processing the fetched content
34a780
- Unify exceptions from archive extraction
34a780
- Make pylint check mandatory to pass
34a780
- Support for hash based content integrity checking
34a780
34a780
* Tue Jan 14 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-1
34a780
- Beware of running Gtk actions from a non-main thread
34a780
- Fix path to the tailoring file when getting rules
34a780
- A git hook for running tests when pushing
34a780
- Inform user if no profile is selected
34a780
- Visually mark the selected profile
34a780
- Better UX with content URL entry and progress label
34a780
- React on invalid content properly (#1032846)
34a780
- Stop spinner when data fetching is finished
34a780
- Make the data fetching thread non-fatal (#1049989)
34a780
- Exit code 2 from the oscap tool is not an error for us (#1050913)
34a780
- Be ready to work with archives/RPMs containing data streams
34a780
- Add unit tests for the keep_type_map function
34a780
- Add support for namedtuples to keep_type_map
34a780
- Add target for running pylint check
34a780
- Add target for running just unittests
34a780
- On the way to tailoring
34a780
- Tests for kickstart XCCDF tailoring handling
34a780
- Kickstart support for XCCDF tailoring
34a780
- Check session validity also when using XCCDF benchmark
34a780
34a780
* Tue Dec 10 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.3-1
34a780
- Implement and use our own better function for joining paths
34a780
- The content entry should have focus if there is no content
34a780
- RPM is just a weird archive in the pre-installation phase
34a780
- Ignore RPM files as well
34a780
- Adapt tests to dir constants now ending with "/"
34a780
- CpioArchive cannot be created from a piped output
34a780
- Fix namespace definitions in the testing XCCDF file
34a780
- Prevent putting None into xccdf_session_is_sds
34a780
- Fix the __all__ variable in the common module
34a780
- Strip content dir prefix when setting xccdf/cpe paths
34a780
- Inform user we now support archive URLs as well
34a780
- Ignore various file types in the git repository
34a780
- Try to find content files in the fetched archive or RPM
34a780
- Run pylint -E as part of the test target
34a780
- Return list of extracted files/directories when extracting archive
34a780
- Do not try to search for empty file paths in archives
34a780
- Properly set the content type based on the URL's suffix
34a780
- Switch profiles on double-click
34a780
- Hook urlEntry's activate signal to fetchButton click
34a780
- Save the spoke's glade file with a new Glade
34a780
- The addon now requires the python-cpio package
34a780
- Use really_hide for the UI elements for datastream-id and xccdf-id
34a780
- Support for RPM content in the GUI spoke
34a780
- RPM content support for kickstart processing
34a780
- Add property for the raw post-installation content path
34a780
- Make content type case insensitive
34a780
- Rest of the code needed for RPM extraction
34a780
- Actually look for the file path in entry names
34a780
- Basic stuff needed for the RPM content support
34a780
- Run tests in paralel
34a780
- Specify files in a better way in spec
34a780
34a780
* Mon Oct 21 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.2-1
34a780
- Initial RPM for the oscap-anaconda-addon