dependencies: []
script:
- scripts/make-archive.sh
- - scripts/make-spec.sh
+ - scripts/make-distrofiles.sh
- echo -e "[general]\napiurl = https://api.opensuse.org\n\n[https://api.opensuse.org]\nuser = CZ-NIC\npass = $OBS_PASSWORD" > /root/.oscrc
- osc co home:CZ-NIC:knot-devel knot-resolver
- cd home\:CZ-NIC\:knot-devel/knot-resolver/
#!/bin/bash -e
-# Fill in VERSION field in Fedora spec file
+# Fill in VERSION field in distribution specific files
cd "$(git rev-parse --show-toplevel)"
VERSION=$(scripts/show-version.sh | sed 's/knot-resolver-\(.*\).tar.xz/\1/')
sed -i.bak "s@%define VERSION .*@%define VERSION $VERSION@" distro/fedora/knot-resolver.spec
+sed -i.bak "s/VERSION/$VERSION/" distro/arch/PKGBUILD
cd "$(git rev-parse --show-toplevel)"
scripts/make-archive.sh
-scripts/make-spec.sh
+scripts/make-distrofiles.sh
mv knot-resolver-*.tar.xz distro/fedora/
cd distro/fedora
rpkg srpm