2023-05-20 00:37:27 +00:00
|
|
|
Name: config-settings-test
|
|
|
|
Version: 1.0.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Test config_settings support
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: ...
|
|
|
|
Source0: config_settings_test_backend.py
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -cT
|
|
|
|
|
|
|
|
cp -p %{sources} .
|
|
|
|
|
|
|
|
cat <<'EOF' >config_settings.py
|
|
|
|
"""
|
|
|
|
This is a test package
|
|
|
|
"""
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<'EOF' >pyproject.toml
|
|
|
|
[build-system]
|
|
|
|
build-backend = "config_settings_test_backend"
|
|
|
|
backend-path = ["."]
|
2023-05-30 08:01:40 +00:00
|
|
|
requires = ["flit-core", "packaging", "pip"]
|
2023-05-20 00:37:27 +00:00
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "config_settings"
|
|
|
|
version = "%{version}"
|
|
|
|
dynamic = ["description"]
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2023-05-30 08:01:40 +00:00
|
|
|
%pyproject_buildrequires -C abc=123 -C xyz=456 -C--option-with-dashes=1 -C--option-with-dashes=2
|
|
|
|
%{!?el9:%pyproject_buildrequires -C abc=123 -C xyz=456 -C--option-with-dashes=1 -C--option-with-dashes=2 -w}
|
2023-05-20 00:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2023-05-30 08:01:40 +00:00
|
|
|
%{!?el9:%pyproject_wheel -C abc=123 -C xyz=456 -C--option-with-dashes=1 -C--option-with-dashes=2}
|
2023-05-20 00:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri May 19 2023 Maxwell G <maxwell@gtmx.me>
|
|
|
|
- Initial package
|