1
0

Accepting request 531841 from devel:languages:python

breaking up the Azure SDK

OBS-URL: https://build.opensuse.org/request/show/531841
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-azure-mgmt-network?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2017-10-11 20:59:28 +00:00 committed by Git OBS Bridge
commit 7fe2ef767b
7 changed files with 186 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

21
LICENSE.txt Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,14 @@
diff -Nru azure-mgmt-network-1.5.0.orig/setup.py azure-mgmt-network-1.5.0/setup.py
--- azure-mgmt-network-1.5.0.orig/setup.py 2017-09-26 18:35:44.000000000 +0200
+++ azure-mgmt-network-1.5.0/setup.py 2017-10-02 09:39:14.540650114 +0200
@@ -78,8 +78,8 @@
zip_safe=False,
packages=find_packages(exclude=["tests"]),
install_requires=[
- 'msrestazure~=0.4.11',
- 'azure-common~=1.1',
+ 'msrestazure>=0.4.11',
+ 'azure-common>=1.1',
],
cmdclass=cmdclass
)

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15db8997d7fa1382b345b365759ef279d6b2df4f270e7c2195f6f6d9b7bcf244
size 1725396

View File

@ -0,0 +1,45 @@
-------------------------------------------------------------------
Wed Oct 4 15:13:13 UTC 2017 - adrian.glaubitz@suse.com
- Add namespace packages to BuildRequires
- Remove namespace files in %install target
- Explicitly specify Python files of the package in %files
-------------------------------------------------------------------
Mon Oct 2 07:41:13 UTC 2017 - adrian.glaubitz@suse.com
- New upstream release
+ Version 1.5.0
- Remove versioning for namespace packages in Requires
- Update Requires from setup.py
- Update Summary from README.rst
- Update %description from README.rst
- Refresh patches for new version
+ amn_drop-compatible-releases-operator.patch
-------------------------------------------------------------------
Tue Sep 12 09:06:38 UTC 2017 - adrian.glaubitz@suse.com
- New upstream release
+ Version 1.4.0
-------------------------------------------------------------------
Fri Jul 14 11:08:20 UTC 2017 - adrian.glaubitz@suse.com
- Add python-azure-nspkg to Requires
- Add python-azure-mgmt-nspkg to Requires
-------------------------------------------------------------------
Tue Jul 11 08:14:46 UTC 2017 - adrian.glaubitz@suse.com
- New upstream release
+ Version 1.3.0
-------------------------------------------------------------------
Tue Jul 4 11:50:54 UTC 2017 - adrian.glaubitz@suse.com
- Initial build
+ Version 1.2.0
- Add patch to drop compatible releases operator from setup.py,
required for SLES12 as the setuptools version is too old
+ amn_drop-compatible-releases-operator.patch

View File

@ -0,0 +1,79 @@
#
# spec file for package python-azure-mgmt-network
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-azure-mgmt-network
Version: 1.5.0
Release: 0
Summary: Microsoft Azure Network Management Client Library
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Azure/azure-sdk-for-python
Source: https://files.pythonhosted.org/packages/source/a/azure-mgmt-network/azure-mgmt-network-%{version}.zip
Source1: LICENSE.txt
Patch1: amn_drop-compatible-releases-operator.patch
BuildRequires: %{python_module azure-mgmt-nspkg}
BuildRequires: %{python_module azure-nspkg}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-azure-common < 2.0.0
Requires: python-azure-common >= 1.1
Requires: python-azure-mgmt-nspkg
Requires: python-azure-nspkg
Requires: python-msrestazure < 1.0.0
Requires: python-msrestazure >= 0.4.11
Conflicts: python-azure-sdk <= 2.0.0
BuildArch: noarch
%python_subpackages
%description
This is the Microsoft Azure Network Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).
This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6.
%prep
%setup -q -n azure-mgmt-network-%{version}
%patch1 -p1
%build
install -m 644 %{SOURCE1} %{_builddir}/azure-mgmt-network-%{version}
%python_build
%install
%python_install
%{python_expand # delete common files
rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__init__.*
rm -rf %{buildroot}%{$python_sitelib}/azure/mgmt/__pycache__
rm -rf %{buildroot}%{$python_sitelib}/azure/__init__.*
rm -rf %{buildroot}%{$python_sitelib}/azure/__pycache__
}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}/azure/mgmt/network
%{python_sitelib}/azure_mgmt_network-*.egg-info
%changelog