Files
vkbasalt-cli/vkbasalt-cli.spec
Marcus Meissner 713db12137 Accepting request 1145367 from home:dimstar:Factory
- Fix mix-up between python single-spec usage and hardcoded
  python3-* BuildRequires:
  + Set pythons to primary_python: this package is a cli tool
    and not providing python modules.
  + Fix BuildRequires to use python_module: limited by pythons
    being set to primary_python, this will only pull in one flavor.
  + Doing so allows us to keep the regular pyproject_* macros in
    place.
- Add python-setuptools BuildRequires: used to be dragged in
  indirectly.

- Removed update-alternatives

OBS-URL: https://build.opensuse.org/request/show/1145367
OBS-URL: https://build.opensuse.org/package/show/graphics/vkbasalt-cli?expand=0&rev=4
2024-02-12 12:14:33 +00:00

63 lines
2.1 KiB
RPMSpec

#
# spec file for package vkbasalt-cli
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global appid io.gitlab.theevilskeleton.vkbasalt_cli
%global appname vkbasalt-cli
%global cliname vkbasalt
%define pythons %primary_python
Name: vkbasalt-cli
Version: 3.1.1
Release: 0
Summary: Command-line utility for vkBasalt
License: LGPL-3.0-only
URL: https://gitlab.com/TheEvilSkeleton/vkbasalt-cli
Source0: https://gitlab.com/TheEvilSkeleton/vkbasalt-cli/-/archive/v%{version}/%{appname}-v%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%description
vkbasalt-cli (filename vkbasalt) is a CLI utility and library in conjunction with vkBasalt. This makes generating configuration files or running vkBasalt with games easier. This is mainly convenient in environments where integrating vkBasalt is wishful, for example a GUI application. Integrating vkbasalt-cli allows a front-end to easily generate and use specific configurations on the fly, without asking the user to manually write a configuration file
%prep
%autosetup -n %{appname}-v%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# No tests available, even upstream
%files
%license COPYING
%doc README.md
%{_bindir}/vkbasalt
%{python_sitelib}/vkbasalt
%{python_sitelib}/vkbasalt_cli-%{version}*-info
%changelog