summaryrefslogtreecommitdiff
path: root/python-azure-devops.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 09:18:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 09:18:50 +0000
commitb5b906aa2af5f88807280e36700ccb85dbcf0b26 (patch)
tree476c907f0b4635287d00cb1feb20ee32867d6928 /python-azure-devops.spec
parent2a4135be0287260d6012757cf41c796bba8b5619 (diff)
automatic import of python-azure-devops
Diffstat (limited to 'python-azure-devops.spec')
-rw-r--r--python-azure-devops.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-azure-devops.spec b/python-azure-devops.spec
new file mode 100644
index 0000000..a798881
--- /dev/null
+++ b/python-azure-devops.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-azure-devops
+Version: 6.0.0b4
+Release: 1
+Summary: Python wrapper around the Azure DevOps 6.x APIs
+License: MIT
+URL: https://github.com/Microsoft/vsts-python-api
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6c/33/73f396eb50229e681d1dbdf461a9ebdb2320383c4ac4ed697f6af1ed5184/azure-devops-6.0.0b4.tar.gz
+BuildArch: noarch
+
+Requires: python3-msrest
+
+%description
+
+
+%package -n python3-azure-devops
+Summary: Python wrapper around the Azure DevOps 6.x APIs
+Provides: python-azure-devops
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-azure-devops
+
+
+%package help
+Summary: Development documents and examples for azure-devops
+Provides: python3-azure-devops-doc
+%description help
+
+
+%prep
+%autosetup -n azure-devops-6.0.0b4
+
+%build
+%py3_build
+
+%install
+%py3_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
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{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-azure-devops -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 6.0.0b4-1
+- Package Spec generated