diff --git a/azure-core-1.6.0.zip b/azure-core-1.6.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..e4657d82f3bcee7190cce0849f8d323654fa1949 Binary files /dev/null and b/azure-core-1.6.0.zip differ diff --git a/python-azure-core.spec b/python-azure-core.spec new file mode 100644 index 0000000000000000000000000000000000000000..955dbdcb8a89964a860a0fa28d7312eb71302094 --- /dev/null +++ b/python-azure-core.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-azure-core +Version: 1.6.0 +Release: 1 +Summary: Microsoft Azure Core Library for Python +License: MIT +URL: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core +Source0: https://files.pythonhosted.org/packages/94/f3/d633865d2b2dd743116e934371d75907e89966f2e5034d3a220c9d220369/azure-core-1.6.0.zip +BuildArch: noarch +%description + Azure Core shared client library for PythonAzure core provides shared +exceptions and modules for Python SDK client libraries. + +%package -n python3-azure-core +Summary: Microsoft Azure Core Library for Python +Provides: python-azure-core +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-six +BuildRequires: python3-requests +# General requires +Requires: python3-six +Requires: python3-requests +%description -n python3-azure-core + Azure Core shared client library for PythonAzure core provides shared +exceptions and modules for Python SDK client libraries. + +%package help +Summary: Microsoft Azure Core Library for Python +Provides: python3-azure-core-doc +%description help + Azure Core shared client library for PythonAzure core provides shared +exceptions and modules for Python SDK client libraries. + +%prep +%autosetup -n azure-core-%{version} + +%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-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jul 25 2022 renliang16 - 1.6.0-1 +- Init package python3-azure-core of version 1.6.0 +