Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
c6c276c67d | |||
762a37e435 | |||
60dab77699 |
@ -15,7 +15,7 @@ pipeline:
|
|||||||
image: debian
|
image: debian
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y build-essential fakeroot devscripts
|
- apt update && apt install -y build-essential fakeroot devscripts wget
|
||||||
- make package
|
- make package
|
||||||
- ls -la
|
- ls -la
|
||||||
when:
|
when:
|
||||||
|
13
Makefile
13
Makefile
@ -6,7 +6,7 @@ SOURCE := https://www.python.org/ftp/python/$(UPSTREAM_VERSION)/python-$(UPSTREA
|
|||||||
CHECKSUM := efb20aa1b648a2baddd949c142d6eb06
|
CHECKSUM := efb20aa1b648a2baddd949c142d6eb06
|
||||||
## Download Link and Checksums can be found on https://www.python.org/downloads/windows/
|
## Download Link and Checksums can be found on https://www.python.org/downloads/windows/
|
||||||
|
|
||||||
#Automatically set variables
|
#Variables below are set automatically
|
||||||
PKG_FULL_VERSION := $(UPSTREAM_VERSION)-$(PKG_SUB_RELEASE)
|
PKG_FULL_VERSION := $(UPSTREAM_VERSION)-$(PKG_SUB_RELEASE)
|
||||||
DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
|
DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
|
||||||
DEB_ORIG_FILE := $(PKGNAME)_$(PKG_FULL_VERSION).orig.tar.gz
|
DEB_ORIG_FILE := $(PKGNAME)_$(PKG_FULL_VERSION).orig.tar.gz
|
||||||
@ -42,7 +42,7 @@ setversion:
|
|||||||
-e "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: $(PKG_SUB_RELEASE)/" \
|
-e "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: $(PKG_SUB_RELEASE)/" \
|
||||||
-i control
|
-i control
|
||||||
|
|
||||||
check-before-package:
|
package-check:
|
||||||
@if [ "$(DEB_CHANGELOG_VERSION)" != "$(PKG_FULL_VERSION)" ]; then \
|
@if [ "$(DEB_CHANGELOG_VERSION)" != "$(PKG_FULL_VERSION)" ]; then \
|
||||||
echo "Mismatch between debian changelog file and Makefile version"; \
|
echo "Mismatch between debian changelog file and Makefile version"; \
|
||||||
echo "Debian changelog version: $(DEB_CHANGELOG_VERSION)"; \
|
echo "Debian changelog version: $(DEB_CHANGELOG_VERSION)"; \
|
||||||
@ -50,9 +50,10 @@ check-before-package:
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
package: check-before-package
|
package: package-check
|
||||||
tar cavzf ../mdg-test_3.9.2-1.0.orig.tar.gz --exclude="debian" --exclude="**/.*" .
|
tar cavzf ../$(DEB_ORIG_FILE) --exclude="debian" --exclude="**/.*" .
|
||||||
debuild -us -uc
|
debuild -us -uc --diff-ignore="\.\S+" -I
|
||||||
|
|
||||||
.PHONY: default all download install uninstall clean setversion check-berfore-package package
|
|
||||||
|
.PHONY: default all download install uninstall clean setversion package-check package
|
||||||
|
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -8,7 +8,7 @@ Vcs-Git: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python.git
|
|||||||
Vcs-Browser: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python
|
Vcs-Browser: https://gitea.mdg-hamburg.de/MDG-Packages/winst-mdg-python
|
||||||
|
|
||||||
|
|
||||||
Package: winst-mdg-python
|
Package: mdg-test
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: winst-microsoft-windows-10-64
|
Depends: winst-microsoft-windows-10-64
|
||||||
Provides: winst-python
|
Provides: winst-python
|
||||||
|
2
debian/files
vendored
2
debian/files
vendored
@ -1,2 +0,0 @@
|
|||||||
mdg-test_1.1.1-2.2-1_amd64.buildinfo misc optional
|
|
||||||
winst-mdg-python_1.1.1-2.2-1_all.deb misc optional
|
|
Reference in New Issue
Block a user