## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: classification-banner Version: 1.7.2 Release: %autorelease Summary: Displays Classification Banner for a Graphical Session License: GPL-2.0-or-later URL: https://github.com/SecurityCentral/classification-banner Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-gobject BuildRequires: desktop-file-utils BuildRequires: gtk3 BuildRequires: pyproject-rpm-macros Requires: xrandr Requires: python3-gobject Requires: gtk3 %description Classification Banner is a python script that will display the classification level banner of a session with a variety of configuration options on the primary screen. This script can help government and possibly private customers display a notification that sensitive material is being displayed - for example PII or SECRET Material being processed in a graphical session. The script has been tested on a variety of graphical environments such as GNOME2, GNOME3, KDE, twm, icewm, and Cinnamon. %prep %autosetup -n %{name}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files classification_banner install -d -m755 %{buildroot}%{_sysconfdir}/%{name} install -d -m755 %{buildroot}%{_sysconfdir}/xdg/autostart/ install -pm644 contrib/banner.conf %{buildroot}%{_sysconfdir}/%{name}/banner.conf desktop-file-install \ --dir=%{buildroot}%{_sysconfdir}/xdg/autostart \ contrib/%{name}.desktop %check export DISPLAY=":0.0" %{__python3} setup.py test %files -f %{pyproject_files} %license LICENSE %doc README.md AUTHOR Contributors.md %config(noreplace) %{_sysconfdir}/%{name}/banner.conf %config(noreplace) %{_sysconfdir}/xdg/autostart/classification-banner.desktop %{_bindir}/%{name} %changelog ## START: Generated by rpmautospec * Wed Jan 24 2024 Fedora Release Engineering - 1.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Sep 12 2023 Daniel Milnes - 1.7.2-1 - Remove our patches and release 1.7.2 (fedora#2238487) * Sat Sep 09 2023 Daniel Milnes - 1.7.1-4 - Make sure patches are actually in git * Sat Sep 09 2023 Daniel Milnes - 1.7.1-3 - Migrate to SPDX format * Sat Sep 09 2023 Daniel Milnes - 1.7.1-2 - Migrate to pyproject_srpm_macros * Sat Sep 09 2023 Daniel Milnes - 1.7.1-1 - Update to 1.7.1-ish (fedora#2219961) * Wed Jul 19 2023 Fedora Release Engineering - 1.7.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 1.7.0-21 - Rebuilt for Python 3.12 * Wed Jan 18 2023 Fedora Release Engineering - 1.7.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 1.7.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.7.0-18 - Rebuilt for Python 3.11 * Wed Jan 19 2022 Fedora Release Engineering - 1.7.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.7.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.7.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.0-14 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.7.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Adam Jackson - 1.7.0-12 - Require xrandr not xorg-x11-server-utils * Mon Jul 27 2020 Fedora Release Engineering - 1.7.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 13 2020 Miro Hrončok - 1.7.0-10 - Replace Python version glob with macro (needed for Python 3.10+) * Tue May 26 2020 Miro Hrončok - 1.7.0-9 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 1.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.7.0-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.7.0-6 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 1.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 29 2019 Igor Gnatenko - 1.7.0-3 - Remove obsolete scriptlets * Tue Jan 15 2019 Miro Hrončok - 1.7.0-2 - Remove requirement of PyGTK2 * Thu Jan 10 2019 Gabe - 1.7.0-1 - Remove support for python2 and PyGTK * Mon Aug 27 2018 Gabe - 1.6.7-2 - Add source * Mon Aug 27 2018 Gabe - 1.6.7-1 - Initial import (#1615640) ## END: Generated by rpmautospec