diff options
Diffstat (limited to 'python-azure-devops.spec')
| -rw-r--r-- | python-azure-devops.spec | 73 |
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 |
