## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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: nwg-readme-browser Version: 0.1.7 Release: %autorelease Summary: README file browser License: MIT URL: https://github.com/nwg-piotr/nwg-readme-browser Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: desktop-file-utils # for import test BuildRequires: gobject-introspection BuildRequires: gtk3 BuildRequires: webkit2gtk4.1 BuildRequires: python3-docutils BuildRequires: python3-gobject BuildRequires: python3-markdown2 Requires: hicolor-icon-theme Requires: gobject-introspection Requires: gtk3 Requires: webkit2gtk4.1 Requires: python3-docutils Requires: python3-gobject Requires: python3-markdown2 %description Nwg-readme-browser was conceived as rtfm with a graphical user interface. It searches the /usr/share/doc path for README.* files, and displays them in WebKit2.WebView. It supports .md, .rst, .html and plain text. Although the program was written with nwg-shell for sway and Hyprland in mind, it may also be used standalone. %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l nwg_readme_browser install -D -m0644 -t %{buildroot}%{_datadir}/applications %{name}.desktop install -D -m0644 -t %{buildroot}%{_datadir}/icons/hicolor/scalable/apps %{name}.svg %check %pyproject_check_import desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files -f %{pyproject_files} %doc README.md %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog ## START: Generated by rpmautospec * Tue Dec 30 2025 John Doe - 0.1.7-1 - Uncommitted changes ## END: Generated by rpmautospec