mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 11:06:15 +00:00
Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c61c91f9f2 | |||
| a57af837d8 | |||
| 03ba957d5f | |||
| d661496a4c | |||
| 4e1ce01d4e | |||
| dfeb8f9862 | |||
| 79c4befdea | |||
| c8c0c08100 | |||
| 877cd04101 | |||
| 7453e26bc7 | |||
| 11e0b5baee | |||
| 54c652944f | |||
| ef5179c975 | |||
| fc9793ff4e | |||
| 1508582709 | |||
| fca82072fa | |||
| 7fb07fdb29 | |||
| 387cb23c79 | |||
| c63ed02014 | |||
| d0773602f5 | |||
| 7b2b947843 | |||
| e619aeeab5 | |||
| f041821042 | |||
| 04e79ac6f7 | |||
| 942c21283f | |||
| 0803beead9 | |||
| 8bf3888935 | |||
| 3f2c7de583 | |||
| 514048840f | |||
| 012a1a3767 |
+29
-1
@@ -15,6 +15,7 @@ SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --
|
||||
SRPMFILE = results/$(SRPMVERS).src.rpm
|
||||
|
||||
LATEST_RPMS = $(wildcard rpms/*.rpm)
|
||||
DEBUGINFO_RPM = $(wildcard rpms/*-debuginfo-*.rpm)
|
||||
RPMS ?= $(LATEST_RPMS)
|
||||
|
||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
||||
@@ -154,13 +155,15 @@ pullrebase:
|
||||
fi \
|
||||
fi
|
||||
|
||||
preautospec-checks:
|
||||
|
||||
#help autospec: automatically generates a specfile. If there is
|
||||
#help already a specfile, it will be overwritten. Several files used by
|
||||
#help autospec will be created in the process.
|
||||
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
||||
#help to autospec.
|
||||
#help For more information, see the project at https://github.com/clearlinux/autospec
|
||||
autospec: pullrebase localreponotice clean-old-content
|
||||
autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
||||
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
||||
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
||||
exit 1; \
|
||||
@@ -406,6 +409,31 @@ install:
|
||||
done
|
||||
@$(MAKE) loop-down DEVICE=6
|
||||
|
||||
#help install-debuginfo-local: Install locally built debuginfo RPM to
|
||||
#help the automatic debuginfo cache location (/var/cache/debuginfo)
|
||||
install-debuginfo-local:
|
||||
tmpdir=$$(mktemp -d); \
|
||||
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u); \
|
||||
dest=/var/cache/debuginfo/lib; \
|
||||
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||
sudo cp -a "$$d" $$dest/; \
|
||||
done; \
|
||||
dest=/var/cache/debuginfo/src; \
|
||||
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||
sudo cp -a "$$d" $$dest/; \
|
||||
done; \
|
||||
sudo rm -rf $$tmpdir
|
||||
|
||||
#help install-local: Install locally built RPMs to the root filesystem. Note that the
|
||||
#help debuginfo RPM installs to /var/cache/debuginfo
|
||||
install-local:
|
||||
for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
|
||||
rpm2cpio $$r | (cd /; sudo cpio -i -d -u); \
|
||||
done
|
||||
$(MAKE) install-debuginfo-local
|
||||
|
||||
#help generateupstream: Run this rule to create or update the 'upstream' file
|
||||
#help by downloading the upstream source tarballs listed in the spec file and
|
||||
#help calculating their hashes. Autospec performs this step automatically, so
|
||||
|
||||
+3
-1
@@ -190,13 +190,15 @@ releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||
provides:
|
||||
@$(TOPLVL)/projects/common/provides.sh -f $(FP) -r $(RN)
|
||||
|
||||
preautospecnew-checks:
|
||||
|
||||
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
||||
#help with NAME=$(NAME). Several files used by autospec will be created in the
|
||||
#help process.
|
||||
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
||||
#help to autospec.
|
||||
#help For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
||||
autospecnew: localreponotice
|
||||
autospecnew: preautospecnew-checks localreponotice
|
||||
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
||||
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
||||
exit 1; \
|
||||
|
||||
@@ -41,6 +41,7 @@ Pint
|
||||
PyDispatcher
|
||||
PyJWT
|
||||
PyMySQL
|
||||
PyNaCl
|
||||
PyWavelets
|
||||
PyYAML
|
||||
Pygments
|
||||
@@ -785,6 +786,9 @@ Theano
|
||||
Thunar
|
||||
UkPostcodeParser
|
||||
Vertex-theme
|
||||
Vulkan-Headers
|
||||
Vulkan-Loader
|
||||
Vulkan-Tools
|
||||
WALinuxAgent
|
||||
WSGIProxy2
|
||||
WSME
|
||||
@@ -873,6 +877,7 @@ argparse
|
||||
ark
|
||||
artikulate
|
||||
asciidoc
|
||||
asciinema
|
||||
asio
|
||||
asn1crypto
|
||||
aspell
|
||||
@@ -927,6 +932,7 @@ bashdb
|
||||
bats
|
||||
bazel
|
||||
bc
|
||||
bcc
|
||||
bcrypt
|
||||
bdftopcf
|
||||
beautifulsoup4
|
||||
@@ -1012,6 +1018,7 @@ cgdb
|
||||
cgit
|
||||
chardet
|
||||
check
|
||||
check-manifest
|
||||
cheese
|
||||
cheroot
|
||||
chrome-gnome-shell
|
||||
@@ -1092,6 +1099,7 @@ commonmark
|
||||
compat-SDL2-soname1
|
||||
compat-cryptsetup-soname4
|
||||
compat-efivar-soname0
|
||||
compat-enchant-soname1
|
||||
compat-fuse-soname2
|
||||
compat-gegl
|
||||
compat-gegl-0.3
|
||||
@@ -1107,6 +1115,7 @@ compat-libpng-soname12
|
||||
compat-libwebp-soname6
|
||||
compat-llvm-soname4
|
||||
compat-llvm-soname5
|
||||
compat-llvm-soname6
|
||||
compat-mpfr-soname4
|
||||
compat-opencv-soname32
|
||||
compat-opencv-soname33
|
||||
@@ -1130,8 +1139,10 @@ cov-core
|
||||
coverage
|
||||
cpio
|
||||
cppcheck
|
||||
cpprestsdk
|
||||
cppunit
|
||||
cpuid
|
||||
cpuloadgen
|
||||
cracklib
|
||||
crcmod
|
||||
createrepo_c
|
||||
@@ -1156,6 +1167,7 @@ cyrus-sasl
|
||||
dapl
|
||||
darktable
|
||||
dask
|
||||
datefudge
|
||||
db
|
||||
dbus
|
||||
dbus-broker
|
||||
@@ -1191,6 +1203,7 @@ django-discover-runner
|
||||
django-nose
|
||||
django-pyscss
|
||||
django_compressor
|
||||
dlt-daemon
|
||||
dmenu
|
||||
dmidecode
|
||||
dnf
|
||||
@@ -1214,6 +1227,7 @@ dosfstools
|
||||
double-conversion
|
||||
dovecot
|
||||
doxygen
|
||||
dpcontracts
|
||||
dpdk
|
||||
dracut
|
||||
dragon
|
||||
@@ -1236,6 +1250,7 @@ efivar
|
||||
eigen
|
||||
elasticsearch
|
||||
elasticsearch-dep
|
||||
electric-fence
|
||||
elementary-xfce
|
||||
elfutils
|
||||
elixir
|
||||
@@ -1292,6 +1307,7 @@ flake8-docstrings
|
||||
flake8-import-order
|
||||
flake8-polyfill
|
||||
flatpak
|
||||
flatpak-builder
|
||||
fldigi
|
||||
flex
|
||||
flmsg
|
||||
@@ -1303,6 +1319,8 @@ font-adobe-75dpi
|
||||
font-bitstream-type1
|
||||
font-util
|
||||
fontconfig
|
||||
fontforge
|
||||
fonttools
|
||||
frameworkintegration
|
||||
freeglut
|
||||
freeipmi
|
||||
@@ -1523,6 +1541,7 @@ idna-ssl
|
||||
ifaddr
|
||||
iftop
|
||||
ilmbase
|
||||
image
|
||||
imagesize
|
||||
imapfilter
|
||||
imlib2
|
||||
@@ -1532,14 +1551,18 @@ influxdb
|
||||
iniparse
|
||||
init-rdahead
|
||||
inotify-tools
|
||||
intel-gmmlib
|
||||
intel-gpu-tools
|
||||
intel-hybrid-driver
|
||||
intel-media-driver
|
||||
intltool
|
||||
ioc-cbc-tools
|
||||
ioping
|
||||
iotop
|
||||
ipaddr
|
||||
ipaddress
|
||||
ipdb
|
||||
ipdbplugin
|
||||
iperf
|
||||
ipmctl
|
||||
ipmitool
|
||||
@@ -1596,6 +1619,7 @@ jupyter_console
|
||||
jupyter_core
|
||||
jupyterlab
|
||||
jupyterlab_launcher
|
||||
jupyterlab_server
|
||||
kactivities
|
||||
kactivities-stats
|
||||
kactivitymanagerd
|
||||
@@ -1768,6 +1792,7 @@ kqtquickcharts
|
||||
krb5
|
||||
krdc
|
||||
kreversi
|
||||
krita
|
||||
kross
|
||||
kruler
|
||||
krunner
|
||||
@@ -1884,6 +1909,7 @@ libe-book
|
||||
libepoxy
|
||||
libepubgen
|
||||
liberasurecode
|
||||
liberation-fonts
|
||||
libetonyek
|
||||
libev
|
||||
libevdev
|
||||
@@ -1997,9 +2023,11 @@ libsigc++
|
||||
libsmbios
|
||||
libsmi
|
||||
libsndfile
|
||||
libsodium
|
||||
libsolv
|
||||
libsoup
|
||||
libspectre
|
||||
libspiro
|
||||
libsrtp
|
||||
libssh
|
||||
libssh2
|
||||
@@ -2012,6 +2040,7 @@ libtirpc
|
||||
libtool
|
||||
libudev0-shim
|
||||
libuev
|
||||
libuninameslist
|
||||
libunistring
|
||||
libunwind
|
||||
libusb
|
||||
@@ -2049,6 +2078,8 @@ libyami-utils
|
||||
libzip
|
||||
libzmf
|
||||
libzmq
|
||||
lightdm
|
||||
lightdm-gtk-greeter
|
||||
linecache2
|
||||
links
|
||||
linux
|
||||
@@ -2059,6 +2090,8 @@ linux-gce
|
||||
linux-hyperv
|
||||
linux-hyperv-lts
|
||||
linux-hyperv-mini
|
||||
linux-iot-lts2017-preempt-rt
|
||||
linux-iot-lts2018
|
||||
linux-kata
|
||||
linux-kvm
|
||||
linux-libc-headers
|
||||
@@ -2132,6 +2165,7 @@ mistune
|
||||
mixer-tools
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
mkl-dnn
|
||||
mkosi
|
||||
mobile-broadband-provider-info
|
||||
mock
|
||||
@@ -2158,6 +2192,7 @@ mpfr
|
||||
mpg123
|
||||
mpi4py
|
||||
mpmath
|
||||
mraa
|
||||
msgpack
|
||||
msmtp
|
||||
msr-tools
|
||||
@@ -2229,8 +2264,10 @@ nrpe
|
||||
nspr
|
||||
nss
|
||||
nss-altfiles
|
||||
nss-pam-ldapd
|
||||
ntfs-3g
|
||||
ntlm-auth
|
||||
ntp
|
||||
ntplib
|
||||
numactl
|
||||
numatop
|
||||
@@ -2251,6 +2288,7 @@ olefile
|
||||
onig
|
||||
onnx
|
||||
opa-psm2
|
||||
opcodes
|
||||
open-iscsi
|
||||
open-isns
|
||||
open-lldp
|
||||
@@ -2322,6 +2360,9 @@ p11-kit
|
||||
p7zip
|
||||
packaging
|
||||
pacrunner
|
||||
paho-mqtt
|
||||
paho.mqtt.c
|
||||
paho.mqtt.cpp
|
||||
palapeli
|
||||
pandas
|
||||
pandoc
|
||||
@@ -2747,6 +2788,7 @@ perl-Net-IDN-Encode
|
||||
perl-Net-INET6Glue
|
||||
perl-Net-Ident
|
||||
perl-Net-MAC
|
||||
perl-Net-MQTT
|
||||
perl-Net-NTP
|
||||
perl-Net-OpenID-Common
|
||||
perl-Net-OpenID-Consumer
|
||||
@@ -3098,11 +3140,11 @@ pyflakes
|
||||
pygobject
|
||||
pyinotify
|
||||
pykerberos
|
||||
pylama
|
||||
pyliblzma
|
||||
pylint
|
||||
pymemcache
|
||||
pymongo
|
||||
pynacl
|
||||
pypandoc
|
||||
pyparsing
|
||||
pyperclip
|
||||
@@ -3110,6 +3152,7 @@ pypowervm
|
||||
pyquery
|
||||
pyreadline
|
||||
pyrfc3339
|
||||
pyroma
|
||||
pyroute2
|
||||
pyrsistent
|
||||
pysaml2
|
||||
@@ -3119,6 +3162,7 @@ pysnmp
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-forked
|
||||
pytest-randomly
|
||||
pytest-repeat
|
||||
pytest-rerunfailures
|
||||
pytest-runner
|
||||
@@ -3132,12 +3176,14 @@ python-barbicanclient
|
||||
python-ceilometerclient
|
||||
python-cinderclient
|
||||
python-dateutil
|
||||
python-dateutil-legacypython
|
||||
python-designateclient
|
||||
python-editor
|
||||
python-future
|
||||
python-gflags
|
||||
python-glanceclient
|
||||
python-heatclient
|
||||
python-hwinfo
|
||||
python-kconfiglib
|
||||
python-keystoneclient
|
||||
python-krbV
|
||||
@@ -3170,6 +3216,7 @@ python-urwid
|
||||
python-zaqarclient
|
||||
python-zeep
|
||||
python3
|
||||
pytools
|
||||
pytz
|
||||
pyudev
|
||||
pywbem
|
||||
@@ -3240,6 +3287,7 @@ redsocks
|
||||
reno
|
||||
reportlab
|
||||
repoze.lru
|
||||
repoze.sphinx.autointerface
|
||||
repoze.who
|
||||
requests
|
||||
requests-kerberos
|
||||
@@ -3310,6 +3358,7 @@ sg3_utils
|
||||
shadow
|
||||
shared-mime-info
|
||||
sharutils
|
||||
shell
|
||||
shim
|
||||
siege
|
||||
simg-tools
|
||||
@@ -3510,7 +3559,6 @@ voluptuous
|
||||
voluptuous-serialize
|
||||
vsqlite
|
||||
vte
|
||||
vulkan-sdk
|
||||
waffle
|
||||
waitress
|
||||
warlock
|
||||
@@ -3529,6 +3577,7 @@ weston
|
||||
wget
|
||||
wheel
|
||||
which
|
||||
whois
|
||||
widgetsnbextension
|
||||
winpdb
|
||||
wireless-regdb-master
|
||||
@@ -3628,7 +3677,6 @@ yelp-tools
|
||||
yelp-xsl
|
||||
yum
|
||||
yum-metadata-parser
|
||||
yum-utils
|
||||
zVMCloudConnector
|
||||
zake
|
||||
zc.lockfile
|
||||
|
||||
+12
-3
@@ -6,6 +6,7 @@ SERVERCA=""
|
||||
CLIENTCA=""
|
||||
WORKSPACE="clearlinux"
|
||||
PACKAGE_REPOS=
|
||||
NEEDS_KVM_GROUP=
|
||||
|
||||
help() {
|
||||
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
||||
@@ -115,6 +116,10 @@ required_progs() {
|
||||
|
||||
required_progs
|
||||
|
||||
if ! groups | grep -qw kvm; then
|
||||
NEEDS_KVM_GROUP=1
|
||||
fi
|
||||
|
||||
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
|
||||
|
||||
mkdir "$WORKSPACE"
|
||||
@@ -146,8 +151,10 @@ if [ "$USE_KOJI" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Adding user to kvm group . . ."
|
||||
sudo usermod -a -G kvm $USER
|
||||
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||
echo "Adding user to kvm group . . ."
|
||||
sudo usermod -a -G kvm $USER
|
||||
fi
|
||||
|
||||
echo "Cloning special project repositories . . ."
|
||||
make ${JOBS_ARG} clone-projects
|
||||
@@ -179,7 +186,9 @@ if [ -z "$PACKAGE_REPOS" ]; then
|
||||
echo "NOTE: To clone all package repos, run \"cd $WORKSPACE; make [-j NUM] clone-packages\""
|
||||
echo "NOTE: To clone a single package repo with NAME, run \"cd $WORKSPACE; make clone_NAME\""
|
||||
fi
|
||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||
fi
|
||||
|
||||
|
||||
# vi: ft=sh sw=2 et sts=2
|
||||
|
||||
Reference in New Issue
Block a user