summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlarchunix2017-09-15 22:04:26 +0200
committerlarchunix2017-09-15 22:04:26 +0200
commitfb3479264bd685f670e877f144b2c3e7115d5770 (patch)
tree204cd3ab9d7d7a10fc60592e34f24a408001639d
parentc7ed36d5d008b2deb1efc10fa709b617f3256ec4 (diff)
downloadaur-fb3479264bd685f670e877f144b2c3e7115d5770.tar.gz
Update to upstream release 1.4.5-1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 19 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d4eadaaba6e..0a8f741da8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mock
pkgdesc = A simple chroot build environment manager for building RPMs
- pkgver = 1.4.4.1
+ pkgver = 1.4.5.1
pkgrel = 1
url = https://github.com/rpm-software-management/mock
install = mock.install
@@ -17,10 +17,10 @@ pkgbase = mock
optdepends = python-requests: for mockchain command
optdepends = yum-utils: to create RPMs for Fedora <= 23 (including EL5, EL6 and EL7)
backup = etc/mock/site-defaults.cfg
- source = https://github.com/rpm-software-management/mock/archive/mock-1.4.4-1.tar.gz
+ source = https://github.com/rpm-software-management/mock/archive/mock-1.4.5-1.tar.gz
source = mock.sysusers
source = mock.tmpfiles
- md5sums = 9f1cc57333cbe0eea0f5aa0551556bf2
+ md5sums = 9601de49011baa4eb44b036eec96d0af
md5sums = d277502b9a95484594f86231d073dae0
md5sums = 1052fa4db74b59b0c195f4756bd865e8
diff --git a/PKGBUILD b/PKGBUILD
index 52fb38026ae..5eb55c3751b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
#_with_usermode=1
pkgname=mock
-_pkgver=1.4.4
+_pkgver=1.4.5
_rpmrel=1
_pkgtag=$pkgname-$_pkgver-$_rpmrel
pkgver=$_pkgver.$_rpmrel
@@ -29,7 +29,7 @@ backup=("etc/$pkgname/site-defaults.cfg")
source=("$url/archive/$_pkgtag.tar.gz"
"$pkgname.sysusers"
"$pkgname.tmpfiles")
-md5sums=('9f1cc57333cbe0eea0f5aa0551556bf2'
+md5sums=('9601de49011baa4eb44b036eec96d0af'
'd277502b9a95484594f86231d073dae0'
'1052fa4db74b59b0c195f4756bd865e8')
@@ -46,6 +46,8 @@ prepare() {
build() {
cd "$pkgname-$pkgver"
+ pushd mock >/dev/null
+
python_sitelib=$(python -c 'from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())')
sed -r -i py/${pkgname}{,chain}.py \
-e 's|^__VERSION__\s*=.*|__VERSION__="'$_pkgver'"|' \
@@ -61,11 +63,15 @@ build() {
python -m compileall py/ -q
python -O -m compileall py/ -q
+
+ popd >/dev/null
}
package() {
cd "$pkgname-$pkgver"
+ pushd mock >/dev/null
+
install -d "$pkgdir/$_bindir/"
install py/mock.py "$pkgdir/$_bindir/"mock
install py/mockchain.py "$pkgdir/$_bindir/"mockchain
@@ -100,6 +106,14 @@ package() {
ln -s /usr/bin/consolehelper "$pkgdir/usr/bin/$pkgname"
fi
+ popd >/dev/null
+
+ pushd mock-core-configs >/dev/null
+
+ install -p -m0644 etc/mock/*.cfg "$pkgdir/$_sysconfdir/"mock/
+
+ popd >/dev/null
+
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}