Compare commits

..

No commits in common. "master" and "v2.4.0-1" have entirely different histories.

7 changed files with 12 additions and 36 deletions

View File

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

View File

@ -23,7 +23,8 @@ local DistVersion(version='7') = {
name: 'build-el' + version,
image: 'thegeeklab/rpmbuild:' + version,
commands: [
'make all',
'source /drone/src/.drone.env',
'rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec',
'ls -l /drone/src/dist/RPMS/x86_64/',
],
};
@ -107,7 +108,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 }}){{ end }} 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 }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}',
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},

View File

@ -30,13 +30,15 @@ steps:
- name: build-el7
image: thegeeklab/rpmbuild:7
commands:
- make all
- source /drone/src/.drone.env
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/
- name: build-el8
image: thegeeklab/rpmbuild:8
commands:
- make all
- source /drone/src/.drone.env
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/
- name: checksum
@ -99,7 +101,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 }}){{ end }} 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 }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
username:
from_secret: matrix_username
when:
@ -120,6 +122,6 @@ depends_on:
---
kind: signature
hmac: ae411b705b8d3e347ad85503dac21d286bffe6a0aa69949ed86617b9e23d581b
hmac: e3a4496149a9d12470fe6ccf27240160f1a52e62320541e0828c1bc65e2696e1
...

View File

@ -1,19 +0,0 @@
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,13 +7,6 @@
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: %{release_}%{?dist}
Release: 1%{?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: Robert Kaussow <mail@thegeeklab.de>
Packager: Anonymous <anonymous@example.com>
Vendor: OpenPrinting
# Package names are as defined for Red Hat (and clone) distributions

View File