Compare commits

...

11 Commits

Author SHA1 Message Date
b388a6a2d8 chore(deps): update dependency openprinting/cups to v2.4.7 (#15)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #15
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-10-09 14:20:57 +02:00
e42d325030 chore(deps): update dependency openprinting/cups to v2.4.6 (#13)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #13
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-06-22 13:31:50 +02:00
d37f7eed35 chore(deps): update dependency openprinting/cups to v2.4.5 (#12)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #12
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-06-14 13:16:09 +02:00
30216648f2 chore(deps): update dependency openprinting/cups to v2.4.4 (#11)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #11
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-06-06 16:15:59 +02:00
5c2befe23d chore(deps): update dependency openprinting/cups to v2.4.3 (#10)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #10
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-06-05 10:47:16 +02:00
28a0e262bd
fix drone-matrix template
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-08 21:29:04 +01:00
b21fd31898 chore(deps): update dependency openprinting/cups to v2.4.2 (#9)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2022-05-26 15:45:31 +02:00
267805319b
fix suffix splitting
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-01-28 14:24:16 +01:00
dae9026410
fix: auto-detect release version from git tag
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-01-28 13:36:47 +01:00
4556772ee8 chore(deps): update dependency openprinting/cups to v2.4.1 (#8)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2022-01-28 12:05:10 +01:00
10b9674a06 fix: fix german localization template (#7)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-12-16 11:22:09 +01:00
7 changed files with 36 additions and 12 deletions

View File

@ -1,2 +1,3 @@
# renovate: datasource=github-releases depName=OpenPrinting/cups versioning=loose
export CUPS_VERSION="${CUPS_VERSION:-v2.4.0}"
export CUPS_VERSION="${CUPS_VERSION:-v2.4.7}"
export CUPS_RELEASE="$(awk -F"-" '{print $2}' <<< $DRONE_TAG)"

View File

@ -23,8 +23,7 @@ local DistVersion(version='7') = {
name: 'build-el' + version,
image: 'thegeeklab/rpmbuild:' + version,
commands: [
'source /drone/src/.drone.env',
'rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec',
'make all',
'ls -l /drone/src/dist/RPMS/x86_64/',
],
};
@ -108,7 +107,7 @@ local PipelineNotifications = {
settings: {
homeserver: { from_secret: 'matrix_homeserver' },
roomid: { from_secret: 'matrix_roomid' },
template: 'Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}',
template: 'Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}',
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},

View File

@ -30,15 +30,13 @@ steps:
- name: build-el7
image: thegeeklab/rpmbuild:7
commands:
- source /drone/src/.drone.env
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- make all
- ls -l /drone/src/dist/RPMS/x86_64/
- name: build-el8
image: thegeeklab/rpmbuild:8
commands:
- source /drone/src/.drone.env
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- make all
- ls -l /drone/src/dist/RPMS/x86_64/
- name: checksum
@ -101,7 +99,7 @@ steps:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
@ -122,6 +120,6 @@ depends_on:
---
kind: signature
hmac: e3a4496149a9d12470fe6ccf27240160f1a52e62320541e0828c1bc65e2696e1
hmac: ae411b705b8d3e347ad85503dac21d286bffe6a0aa69949ed86617b9e23d581b
...

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
WORKDIR := /drone/src
BASEDIR := dist
.PHONY: all
all: prepare build
.PHONY: prepare
prepare:
mkdir -p $(WORKDIR)/$(BASEDIR)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}; \
rsync -avHAX -q --ignore-missing-args $(WORKDIR)/patches/ $(WORKDIR)/$(BASEDIR)/SOURCES/
.PHONY: build
build:
source $(WORKDIR)/.drone.env && \
rpmbuild -ba --without libusb1 --define "release_ $${CUPS_RELEASE:-0}" --define "version_ $${CUPS_VERSION##v}" cups.spec
.PHONY: clean
clean:
rm -rf $(WORKDIR)/$(BASEDIR)

View File

@ -7,6 +7,13 @@
This repository is a simple wrapper to provide CI driven RMP builds from upstream releases.
## Build
```Shell
docker run -v $(pwd):/drone/src --workdir /drone/src -it thegeeklab/rpmbuild:7 make all
docker run -v $(pwd):/drone/src --workdir /drone/src -it thegeeklab/rpmbuild:8 make all
```
## License
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/rpmbuild/cups/src/branch/master/LICENSE) file for details.

View File

@ -44,13 +44,13 @@
Summary: CUPS
Name: cups
Version: %{version_}
Release: 1%{?dist}
Release: %{release_}%{?dist}
Epoch: 1
License: GPL
Group: System Environment/Daemons
Source: https://github.com/OpenPrinting/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz
Url: http://www.cups.org
Packager: Anonymous <anonymous@example.com>
Packager: Robert Kaussow <mail@thegeeklab.de>
Vendor: OpenPrinting
# Package names are as defined for Red Hat (and clone) distributions

0
patches/.keep Normal file
View File