Name: python-dotref Version: 1.2.4 Release: %autorelease Summary: Simple tool to manage dotfiles License: MIT URL: https://github.com/ovk/dotref Source: %{url}/archive/refs/tags/v%{version}/dotref-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: dotref is a simple tool to manage dotfiles across multiple devices.} %description %_description %package -n python3-dotref Summary: %{summary} %description -n python3-dotref %_description %prep %autosetup -p1 -n dotref-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files dotref # Install shell completions install -Dpm 0644 completions/completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{pypi_name} install -Dpm 0644 completions/completion.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{pypi_name}.fish %check %pytest %files -n python3-dotref -f %{pyproject_files} %doc README.md %{_bindir}/dotref %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/%{pypi_name} %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/%{pypi_name}.fish %changelog %autochangelog