generated from demus/basic-rpm-template
Download remote sources before updating anything
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
%global major 0
|
||||
%global minor 1
|
||||
%global release 2
|
||||
%global release 3
|
||||
|
||||
Name: demus-packaging-utils
|
||||
Version: %{major}.%{minor}.%{release}
|
||||
@@ -14,7 +14,7 @@ Source: macros.demus-packaging
|
||||
Source: LICENSE
|
||||
Source: README.md
|
||||
|
||||
Requires: bash go-vendor-tools
|
||||
Requires: bash go-vendor-tools rpmdevtools
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Update various generated artifacts in rpm packages
|
||||
# Update various generated artifacts in rpm packages.
|
||||
# This should be run in the directory containing the spec file.
|
||||
# * Go vendor archive and config
|
||||
# * COPR source file
|
||||
|
||||
@@ -11,6 +12,10 @@ if [ $# -ne 1 ] || ! [[ "$1" =~ .*.\.spec$ ]] || [ ! -f "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure remote sources are downloaded
|
||||
spectool -g "$1"
|
||||
|
||||
# go2rpm creates a go-vendor-tools.toml file when using the vendor profile
|
||||
if grep -q go-vendor-tools.toml "$1"; then
|
||||
echo Updating go vendor archive
|
||||
go2rpm-vendor-update "$1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
SHA512 (go2rpm-vendor-update.sh) = 914e447930a50c1a77d2950c4f9a132a40e91f17919c03640e94068ca6a76e9fbc43b8022482c7c0e4d8242faf15cb745a7af5f313c079676b06990f45b2ea22
|
||||
SHA512 (macros.demus-packaging) = 8c1218425b20da00e6e67c15d1cf09a5913f74f5b2c14a9fda90d28db228ebc87c85bc2e73018638f94a272c71d310a025dc6893f0c69481126602db5e64ff53
|
||||
SHA512 (regenerate-from-spec.sh) = e863113564d8e67eadbbd8d5d3640a61a2dca53caee2f3b7f17008835e803ab06030f97ec5079f0310e576480db8485271d3a7394dd3eb12d5e79f73c29bc0cd
|
||||
SHA512 (regenerate-from-spec.sh) = bcb7b4d1e11da1ed9d9569c6abb73f1c8e5cfaf90bdc7a29dcf784956096a5bad3c5e360cc6ece7baec762ce175671840b146238d751347374bc7fd26537202e
|
||||
SHA512 (README.md) = 72a6f0085fea6d2b5736c4fa98f31db8fb42462db6fe65d44de7e99405982cc2330e270f6fb042d598d4136bd2a933e226ae85fb99828e07af6ab2b74a5c89f2
|
||||
SHA512 (LICENSE) = ccb0f3b838dff6254510f19c2bd6f5c48e38b8c40a5bf93d38482f4fb31015823741d3f160b6836ec99bd8f4e6c5fa9a5c9196ecdd7775b793f3ada50467aabd
|
||||
|
||||
Reference in New Issue
Block a user