kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
experimental rpm build (works on a debian system)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>pull/566/head
rodzic
10d786e787
commit
ad14650fc5
|
@ -16,6 +16,7 @@ settings.json
|
||||||
/nanovna-saver.exe.spec
|
/nanovna-saver.exe.spec
|
||||||
/deb_dist/
|
/deb_dist/
|
||||||
*.deb
|
*.deb
|
||||||
|
*.rpm
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*~
|
*~
|
||||||
.*~
|
.*~
|
||||||
|
|
18
Makefile
18
Makefile
|
@ -1,6 +1,7 @@
|
||||||
.PHONY: info
|
.PHONY: info
|
||||||
info:
|
info:
|
||||||
@echo "- type 'make deb' to build a debian package"
|
@echo "- type 'make deb' to build a debian package"
|
||||||
|
@echo "- type 'make rpm' to build an (experimental) rpm package"
|
||||||
@echo "- you need the debian packages"
|
@echo "- you need the debian packages"
|
||||||
@echo " fakeroot python3-setuptools python3-stdeb dh-python"
|
@echo " fakeroot python3-setuptools python3-stdeb dh-python"
|
||||||
@echo
|
@echo
|
||||||
|
@ -8,18 +9,31 @@ info:
|
||||||
|
|
||||||
# build a new debian package and create a link in the current directory
|
# build a new debian package and create a link in the current directory
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: distclean
|
deb: clean
|
||||||
@# build the deb package
|
@# build the deb package
|
||||||
PYBUILD_DISABLE=test python3 setup.py \
|
PYBUILD_DISABLE=test python3 setup.py \
|
||||||
--command-packages=stdeb.command \
|
--command-packages=stdeb.command \
|
||||||
sdist_dsc --compat 10 --package3 nanovnasaver --section electronics \
|
sdist_dsc --compat 10 --package3 nanovnasaver --section electronics \
|
||||||
bdist_deb
|
bdist_deb
|
||||||
@# create a link in the main directory
|
@# create a link in the main directory
|
||||||
|
-@ rm nanovnasaver_*_all.deb
|
||||||
-@ln `ls deb_dist/nanovnasaver_*.deb | tail -1` .
|
-@ln `ls deb_dist/nanovnasaver_*.deb | tail -1` .
|
||||||
@# and show the result
|
@# and show the result
|
||||||
@ls -l nanovnasaver_*.deb
|
@ls -l nanovnasaver_*.deb
|
||||||
|
|
||||||
|
|
||||||
|
# build a new rpm package and create a link in the current directory
|
||||||
|
.PHONY: rpm
|
||||||
|
rpm: clean
|
||||||
|
@# build the rpm package
|
||||||
|
PYBUILD_DISABLE=test python3 setup.py bdist_rpm
|
||||||
|
@# create a link in the main directory
|
||||||
|
-@ rm NanoVNASaver-*.noarch.rpm
|
||||||
|
@ln `ls dist/NanoVNASaver-*.noarch.rpm | tail -1` .
|
||||||
|
@# and show the result
|
||||||
|
@ls -l NanoVNASaver-*.noarch.rpm
|
||||||
|
|
||||||
|
|
||||||
# remove all package build artifacts (keep the *.deb)
|
# remove all package build artifacts (keep the *.deb)
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@ -30,7 +44,7 @@ clean:
|
||||||
# remove all package build artefacts
|
# remove all package build artefacts
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
-rm -f *.deb
|
-rm -f *.deb *.rpm
|
||||||
|
|
||||||
|
|
||||||
# build and install a new debian package
|
# build and install a new debian package
|
||||||
|
|
|
@ -11,7 +11,8 @@ version = attr: NanoVNASaver.About.VERSION
|
||||||
platforms= all
|
platforms= all
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = find_namespace:
|
# do not use "find_namespace:" because this may recursively include "build"
|
||||||
|
packages = find:
|
||||||
install_requires=
|
install_requires=
|
||||||
pyserial>=3.5
|
pyserial>=3.5
|
||||||
PyQt5>=5.15.0
|
PyQt5>=5.15.0
|
||||||
|
@ -24,3 +25,6 @@ python_requires = >=3.8, <4
|
||||||
console_scripts =
|
console_scripts =
|
||||||
NanoVNASaver = NanoVNASaver.__main__:main
|
NanoVNASaver = NanoVNASaver.__main__:main
|
||||||
|
|
||||||
|
# without this option the rpm-build includes also the "test" directory
|
||||||
|
[options.packages.find]
|
||||||
|
exclude = test
|
||||||
|
|
Ładowanie…
Reference in New Issue