Fix sources

This commit is contained in:
Major Hayden 2021-08-11 10:07:05 -05:00
commit 12b9297bd5
No known key found for this signature in database
GPG key ID: 737051E0C1011FB1
4 changed files with 24 additions and 6 deletions

1
.gitignore vendored
View file

@ -2,4 +2,3 @@
/azure-sdk-for-python-a88809f86787492ddc99c4b3ea5de36c99f14b4f.tar.gz
/azure-sdk-for-python-19487ff9f1790033bcc9e3354b7bdee309a5bc71.tar.gz
/azure-devtools-a5a4ef4a7adc8c730dd7da2e9e3bdb43c9376586.tar.gz
/generate-devtools-tarball.sh

22
generate-devtools-tarball.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# This script generates the source code for the python-azure-devtools
# Fedora package.
set -euxo pipefail
CURRENT_DIR=$(pwd)
COMMIT=$1
SHORTCOMMIT=${COMMIT:0:7}
TMP_DIR=$(mktemp -d)
USER=azure
PROJECT=azure-sdk-for-python
pushd $TMP_DIR
wget https://github.com/${USER}/${PROJECT}/archive/${COMMIT}/azure-sdk-for-python-${SHORTCOMMIT}.tar.gz
tar xf azure-sdk-for-python-${SHORTCOMMIT}.tar.gz
pushd azure-sdk-for-python-${COMMIT}/tools/azure-devtools
tar -cz -f ${CURRENT_DIR}/azure-devtools-${COMMIT}.tar.gz .
popd
popd
rm -rf $TMP_DIR

View file

@ -1,19 +1,16 @@
# The last versioned release of the devtools code is 1.2.1, but upstream
# continues to update it without bumping the version. 😞
%global srcname azure-devtools
%global forgeurl https://github.com/Azure/azure-sdk-for-python/
%global commit a5a4ef4a7adc8c730dd7da2e9e3bdb43c9376586
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global distprefix %{nil}
%global short_version 1.2.1
%forgemeta
Name: python-%{srcname}
Version: %{short_version}~git.3.%{shortcommit}
Release: 1%{?dist}
Summary: Microsoft Azure Development Tools for SDK
License: MIT and ASL 2.0
URL: %forgeurl
URL: https://github.com/Azure/azure-sdk-for-python/
Source0: azure-devtools-%{commit}.tar.gz
# The azure-sdk-for-python repository is huge at > 160MB, but we only need ~
# 100KB of source for this package. Use this script to generate a tarball of the

View file

@ -1 +1 @@
SHA512 (generate-devtools-tarball.sh) = 9f9e4debd047d28b33577ec2344f11023cbc18a275fc322c6bae3f06032a83be3f8273fbdd3bd2b75ffff104e6b99a7e80ed4f27564c19e903e1fed35c15022e
SHA512 (azure-devtools-a5a4ef4a7adc8c730dd7da2e9e3bdb43c9376586.tar.gz) = aad7a9a48644b6cfc5cabfff832bfd6281b51134a7d0de22698c5499f438cef6aaf052974f31f8006c7b84278a7a3f5bf5410b08cd3da7b390597da6ffede464