diff --git a/python-gitlab-3.15.0.tar.gz b/python-gitlab-3.15.0.tar.gz deleted file mode 100644 index 9a419b46f310d2a3483a2677d9840ddde0a64200..0000000000000000000000000000000000000000 Binary files a/python-gitlab-3.15.0.tar.gz and /dev/null differ diff --git a/python-gitlab.spec b/python-gitlab.spec index beecd6bba6f1ea05d2a8ef3184d6a4d211bd5ff6..2e3a3ee434d50795cd9bd56560ebabd5a63afcae 100644 --- a/python-gitlab.spec +++ b/python-gitlab.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-gitlab -Version: 3.15.0 -Release: 2 +Version: 4.10.0 +Release: 1 Summary: Interact with GitLab API License: LGPL-3.0-only URL: https://github.com/python-gitlab/python-gitlab -Source0: https://github.com/python-gitlab/python-gitlab/releases/download/v3.15.0/python-gitlab-3.15.0.tar.gz +Source0: %{pypi_source python_gitlab} BuildArch: noarch %description @@ -16,6 +16,8 @@ It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``). Summary: Interact with GitLab API BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-pip Requires: python3-requests Requires: python3-requests-toolbelt Provides: python-python-gitlab = %{version}-%{release} @@ -33,13 +35,16 @@ Provides: python3-gitlab-doc It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``). %prep -%autosetup -n python-gitlab-%{version} +%autosetup -n python_gitlab-%{version} + +# Relax some dependencies +sed -i 's/requests>=2.32.0/requests/' pyproject.toml %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -48,34 +53,18 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-gitlab -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst + +%files -n python3-gitlab +%{_bindir}/gitlab +%{python3_sitelib}/* + +%files help %{_docdir}/* %changelog +* Fri Aug 30 2024 wangkai <13474090681@163.com> - 4.10.0-1 +- Update to 4.10.0 + * Thu Sep 14 2023 xu_ping <707078654@qq.com> - 3.15.0-2 - Change the package name - Add package yaml diff --git a/python_gitlab-4.10.0.tar.gz b/python_gitlab-4.10.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ba3c72623024afa9107f691cf54ee5d5c7462d49 Binary files /dev/null and b/python_gitlab-4.10.0.tar.gz differ