Skip to content

Commit

Permalink
Merge pull request #147 from clumens/mock
Browse files Browse the repository at this point in the history
Add support for building with mock
  • Loading branch information
clumens authored Jul 5, 2024
2 parents 7f83c1b + 4f87eb5 commit a587739
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ TESTS = test/runtests.py

SUBDIRS = src docs conf

MOCK_DIR = $(abs_builddir)/mock
MOCK_OPTIONS ?= --resultdir="$(MOCK_DIR)" --no-cleanup-after

coverity:
cov-build --dir=cov make
cov-analyze --dir cov --concurrency --wait-for-license
Expand Down Expand Up @@ -121,6 +124,7 @@ lint:

clean-local:
rm -rf test/*.pyc test/__pycache__ test/runtests.py test/boothtestenv.py cov* $(SPEC)
-rm -rf booth-*.rpm $(TARFILE)

dist-clean-local:
rm -f autoconf automake autoheader
Expand Down Expand Up @@ -239,6 +243,14 @@ rpm: clean
$(MAKE) $(SPEC) $(TARFILE)
rpmbuild $(RPMBUILDOPTS) -ba $(SPEC)

mock-%: clean srpm
mock $(MOCK_OPTIONS) --root=$* --no-cleanup-after --rebuild \
"$(abs_top_builddir)"/*.src.rpm

.PHONY: mock-clean
mock-clean:
-rm -rf "$(MOCK_DIR)"

gen_start_date = 2000-01-01
.PHONY: gen-ChangeLog
gen-ChangeLog:
Expand Down
1 change: 1 addition & 0 deletions booth.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Source1: %name-rpmlintrc
BuildRequires: @asciidoc@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: pkgconfig
%if 0%{?suse_version}
BuildRequires: glib2-devel
Expand Down

0 comments on commit a587739

Please sign in to comment.