blob: 41b88288c94005b494665deec28bf6f9255b6381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
set -e
set -x
git init .
git add .
git commit -m"Smoketest" -a
cat <<EOF >> ~/.rpmmacros
%python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib().replace('dist-', 'site-'))")
%python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1).replace('dist-', 'site-'))")
EOF
# Build an RPM of ourselfes
gbp buildpackage-rpm --git-packaging-dir=packaging/ -bb --nodeps
rm -r .git ~/.rpmmacros
|