Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
c6c276c67d | |||
762a37e435 | |||
60dab77699 | |||
42ed17d3c0 | |||
2496398ac9 | |||
e833e3adfa | |||
b8a918b250 | |||
3f1a71062a | |||
5cc623361c |
@ -15,8 +15,8 @@ pipeline:
|
|||||||
image: debian
|
image: debian
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y build-essential
|
- apt update && apt install -y build-essential fakeroot devscripts wget
|
||||||
- debuild -us -uc
|
- make package
|
||||||
- ls -la
|
- ls -la
|
||||||
when:
|
when:
|
||||||
event: tag/.vagrant
|
event: tag
|
||||||
|
25
Makefile
25
Makefile
@ -1,12 +1,16 @@
|
|||||||
PKGNAME := mdg-test
|
PKGNAME := mdg-test
|
||||||
UPSTREAM_VERSION := 3.9.2
|
UPSTREAM_VERSION := 3.9.2
|
||||||
PKG_SUB_RELEASE := 1.0
|
PKG_SUB_RELEASE := 1.0
|
||||||
PKG_FULL_VERSION := $(UPSTREAM_VERSION)-$(PKG_SUB_RELEASE)
|
|
||||||
|
|
||||||
SOURCE := https://www.python.org/ftp/python/$(UPSTREAM_VERSION)/python-$(UPSTREAM_VERSION)-amd64.exe
|
SOURCE := https://www.python.org/ftp/python/$(UPSTREAM_VERSION)/python-$(UPSTREAM_VERSION)-amd64.exe
|
||||||
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/
|
||||||
|
|
||||||
|
#Variables below are set automatically
|
||||||
|
PKG_FULL_VERSION := $(UPSTREAM_VERSION)-$(PKG_SUB_RELEASE)
|
||||||
|
DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog -S Version | sed -rne 's|((-*[^-]+)+)(-[^-]+)|\1|p')
|
||||||
|
DEB_ORIG_FILE := $(PKGNAME)_$(PKG_FULL_VERSION).orig.tar.gz
|
||||||
|
|
||||||
default: download
|
default: download
|
||||||
|
|
||||||
all: | clean install
|
all: | clean install
|
||||||
@ -14,8 +18,8 @@ all: | clean install
|
|||||||
download: setversion
|
download: setversion
|
||||||
[ -d "data" ] || mkdir data
|
[ -d "data" ] || mkdir data
|
||||||
wget -nc -P data $(SOURCE)
|
wget -nc -P data $(SOURCE)
|
||||||
echo "$(CHECKSUM) data/python-$(UPSTREAM_VERSION)-amd64.exe" | \
|
echo "$(CHECKSUM) data/python-$(UPSTREAM_VERSION)-amd64.exe" | md5sum -c && \
|
||||||
md5sum -c && echo "SUCCESS: Checksums match" || \
|
echo "SUCCESS: Checksums match" || \
|
||||||
{ ec=$$?; echo "ERROR: Checksum mismatch" >&2; rm -rf data >&2; exit $$ec; }
|
{ ec=$$?; echo "ERROR: Checksum mismatch" >&2; rm -rf data >&2; exit $$ec; }
|
||||||
|
|
||||||
data: download
|
data: download
|
||||||
@ -38,5 +42,18 @@ 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
|
||||||
|
|
||||||
.PHONY: default all download install uninstall clean setversion
|
package-check:
|
||||||
|
@if [ "$(DEB_CHANGELOG_VERSION)" != "$(PKG_FULL_VERSION)" ]; then \
|
||||||
|
echo "Mismatch between debian changelog file and Makefile version"; \
|
||||||
|
echo "Debian changelog version: $(DEB_CHANGELOG_VERSION)"; \
|
||||||
|
echo "Makefile version: $(PKG_FULL_VERSION)"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
package: package-check
|
||||||
|
tar cavzf ../$(DEB_ORIG_FILE) --exclude="debian" --exclude="**/.*" .
|
||||||
|
debuild -us -uc --diff-ignore="\.\S+" -I
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: default all download install uninstall clean setversion package-check package
|
||||||
|
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
mdg-test (1.1.1-2.2-1) unstable; urgency=medium
|
mdg-test (3.9.2-1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Initial release. (Closes: #XXXXXX)
|
* Initial release. (Closes: #XXXXXX)
|
||||||
|
|
||||||
|
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