forked from pool/python-aliyun-python-sdk-alimt
Robert Schweikert
8d3e6aac64
- Switch package to modern Python Stack on SLE-15 + Use Python 3.11 on SLE-15 by default + Add Obsoletes for old python3 package on SLE-15 + Drop support for older Python versions - Switch build system from setuptools to pyproject.toml + Add python-pip and python-wheel to BuildRequires + Replace %python_build with %pyproject_wheel + Replace %python_install with %pyproject_install - Limit Python files matched in %files section OBS-URL: https://build.opensuse.org/request/show/1168051 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aliyun/python-aliyun-python-sdk-alimt?expand=0&rev=8
64 lines
2.0 KiB
RPMSpec
64 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-aliyun-python-sdk-alimt
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-aliyun-python-sdk-alimt
|
|
Version: 3.2.0
|
|
Release: 0
|
|
Summary: The alimt module of Aliyun Python SDK
|
|
License: Apache-2.0
|
|
URL: http://develop.aliyun.com/sdk/python
|
|
Source: https://files.pythonhosted.org/packages/source/a/aliyun-python-sdk-alimt/aliyun-python-sdk-alimt-%{version}.tar.gz
|
|
Source1: ChangeLog.txt
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module aliyun-python-sdk-core >= 2.11.5}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-aliyun-python-sdk-core >= 2.11.5
|
|
%if 0%{?sle_version} >= 150400
|
|
Obsoletes: python3-aliyun-python-sdk-alimt < 3.2.0
|
|
%endif
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The alimt module of Aliyun Python SDK.
|
|
|
|
%prep
|
|
%setup -q -n aliyun-python-sdk-alimt-%{version}
|
|
cp %{SOURCE1} ChangeLog.txt
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%doc ChangeLog.txt README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/aliyunsdkalimt
|
|
%{python_sitelib}/aliyun_python_sdk_alimt-%{version}.dist-info
|
|
|
|
%changelog
|