-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (26 loc) · 964 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
build:
python3 setup.py build
install:
python3 setup.py install
sdist: build
python3 setup.py sdist
rpm: sdist
@mkdir -p rpm-build
@cp dist/*.tar.gz rpm-build/
rpmbuild \
--define='_topdir %(pwd)/rpm-build' \
--define='_builddir %{_topdir}' \
--define='_rpmdir %{_topdir}' \
--define='_srcrpmdir %{_topdir}' \
--define='_specdir %{_topdir}' \
--define='_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \
--define='_sourcedir %{_topdir}' \
-ba sle-prjmgr-tools.spec
clean:
@rm -r rpm-build build dist *.egg-info
podman-rpm-builder:
@podman build -f docker/build.dockerfile -t localhost/sle-prjmgr-tools-builder:latest .
@podman run -it --rm -v $(CURDIR):/code localhost/sle-prjmgr-tools-builder:latest
podman-rpm-install-check:
@podman build -f docker/install-check.dockerfile -t localhost/sle-prjmgr-tools-install-check:latest .
@podman run -it --rm -v $(CURDIR)/rpm-build:/rpms localhost/sle-prjmgr-tools-install-check:latest