Learn more about these different git repos.
Other Git URLs
fe102b1
e02fc12
6dee30e
@@ -9,7 +9,7 @@
ifeq ($(PYVER_MAJOR),2)
SUBDIRS = builder koji cli plugins vm
else
- SUBDIRS = kojihub builder koji cli util www plugins vm
+ SUBDIRS = kojihub builder koji cli util www plugins vm schemas
endif
@@ -0,0 +1,1 @@
+ SQL schema and updates were moved to ../schemas (/usr/share/koji)
@@ -428,7 +428,7 @@
popd
%endif
%if 0%{py3_support} > 1
- for D in kojihub builder plugins util www vm ; do
+ for D in kojihub builder plugins util www vm schemas ; do
pushd $D
make DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3} install
@@ -516,6 +516,7 @@
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}.*-info
%{python3_sitelib}/koji_cli
+ %{_datadir}/koji/*.sql
%if 0%{py2_support}
@@ -0,0 +1,18 @@
+ BUILDDIR = build
+ SQLFILES = $(wildcard *.sql)
+ SQLDIR = /usr/share/koji
+
+ clean:
+ rm -rf $(BUILDDIR)/*
+ install:
+ @if [ "$(DESTDIR)" = "" ]; then \
+ echo " "; \
+ echo "ERROR: A destdir is required"; \
+ exit 1; \
+ fi
+ mkdir -p $(DESTDIR)/$(SQLDIR)
+ for p in $(SQLFILES) ; do \
+ install -p -m 644 $$p $(DESTDIR)/$(SQLDIR)/$$p; \
+ done
Related: https://pagure.io/koji/issue/3899
rebased onto 6dee30e
Pull-Request has been closed by tkopecek
Related: https://pagure.io/koji/issue/3899