Name: classification-banner
Version: 1.7.0
Release: 3%{?dist}
Summary: Displays Classification Banner for a Graphical Session
License: GPLv2+
URL: https://github.com/SecurityCentral/classification-banner
Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-gobject
BuildRequires: desktop-file-utils
BuildRequires: gtk3
Requires: xorg-x11-server-utils
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}
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}%{_datadir}/%{name}
install -d -m755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m755 %{buildroot}%{_sysconfdir}/xdg/autostart/
install -pm644 contrib/banner.conf %{buildroot}%{_sysconfdir}/%{name}/banner.conf
install -pm644 share/%{name}-screenshot.png %{buildroot}%{_datadir}/%{name}/%{name}-screenshot.png
desktop-file-install \
--dir=%{buildroot}%{_sysconfdir}/xdg/autostart \
contrib/%{name}.desktop
%check
export DISPLAY=":0.0"
%{__python3} setup.py test
%files
%license LICENSE
%doc README.md AUTHOR Contributors.md
%{python3_sitelib}/classification_banner
%{python3_sitelib}/classification_banner-%{version}-py?.?.egg-info
%config(noreplace) %{_sysconfdir}/%{name}/banner.conf
%config(noreplace) %{_sysconfdir}/xdg/autostart/classification-banner.desktop
%{_bindir}/%{name}
%{_datadir}/%{name}/%{name}-screenshot.png
%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 15 2019 Miro HronĨok <mhroncok@redhat.com> - 1.7.0-2
- Remove requirement of PyGTK2
* Tue Jan 8 2019 Gabe <redhatrises@gmail.com> - 1.7.0-1
- Remove usage of PyGTK2
- Use python3
- Various cleanups
* Thu Aug 9 2018 Gabe <redhatrises@gmail.com> - 1.6.7-1
- First package for EPEL