Blame nwg-wrapper.spec

fdfa263
# -*-Mode: rpm-spec -*-
fdfa263
fdfa263
# Use 0 for release and 1 for git
fdfa263
%global   git 0
fdfa263
Version:  0.1.3
fdfa263
%global   forgeurl https://github.com/nwg-piotr/nwg-wrapper
fdfa263
%if %{?git}
fdfa263
%global   commit b186a827404eb2c5e4d757bf122d5d74521b7dcd
fdfa263
%global   date 20220703
fdfa263
%endif
fdfa263
%forgemeta
fdfa263
fdfa263
%global sys_name nwg_wrapper
fdfa263
fdfa263
Name:    nwg-wrapper
fdfa263
Summary: A GTK3 wrapper to display text on the desktop for wlroots
a688537
Release: 7%{?dist}
fdfa263
fdfa263
License: MIT
fdfa263
URL:      %{forgeurl}
fdfa263
Source0:  %{forgesource}
fdfa263
fdfa263
BuildArch: noarch
fdfa263
fdfa263
BuildRequires: python3-devel
fdfa263
BuildRequires: python3-setuptools
fdfa263
fdfa263
Requires: python3-gobject
fdfa263
Requires: gtk-layer-shell
fdfa263
Requires: gtk3
fdfa263
Recommends: python3-i3ipc
fdfa263
Recommends: wlr-randr
fdfa263
fdfa263
%description
fdfa263
fdfa263
nwg-wrapper is a GTK3-based wrapper to display a script output, or a
fdfa263
text file content on the desktop in sway or other wlroots-based
fdfa263
compositors.
fdfa263
fdfa263
%prep
fdfa263
%forgesetup -a
fdfa263
fdfa263
%build
fdfa263
%py3_build
fdfa263
fdfa263
%install
fdfa263
%py3_install
fdfa263
for lib in %{buildroot}%{python3_sitelib}/%{sys_name}/*.py; do
fdfa263
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
fdfa263
 touch -r $lib $lib.new &&
fdfa263
 mv $lib.new $lib
fdfa263
done
fdfa263
fdfa263
%files
fdfa263
%license LICENSE
fdfa263
%doc README.md
fdfa263
%{_bindir}/%{name}
fdfa263
%{python3_sitelib}/%{sys_name}/
fdfa263
%{python3_sitelib}/%{sys_name}-%{version}-py%{python3_version}.egg-info/
fdfa263
fdfa263
%changelog
a688537
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-7
a688537
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a688537
85ff336
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-6
85ff336
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
85ff336
e68d814
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-5
e68d814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
e68d814
2006362
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.1.3-4
2006362
- Rebuilt for Python 3.12
2006362
b739c11
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-3
b739c11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
b739c11
fdfa263
* Wed Nov 30 2022 Bob Hepple <bob.hepple@gmail.com> - 0.1.3-2
fdfa263
- rebuild in response to RHBZ#2104366
fdfa263
* Mon Nov 28 2022 Bob Hepple <bob.hepple@gmail.com> - 0.1.3-1
fdfa263
- rebuild in response to RHBZ#2104366
fdfa263
* Wed Jul 06 2022 Bob Hepple <bob.hepple@gmail.com> - 0.1.2-1.20220703gitb186a82
fdfa263
- initial version