Compare commits

...

13 Commits

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

View File

@ -1,2 +1,3 @@
# renovate: datasource=github-releases depName=OpenPrinting/cups versioning=loose # 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, name: 'build-el' + version,
image: 'thegeeklab/rpmbuild:' + version, image: 'thegeeklab/rpmbuild:' + version,
commands: [ commands: [
'source /drone/src/.drone.env', 'make all',
'rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec',
'ls -l /drone/src/dist/RPMS/x86_64/', 'ls -l /drone/src/dist/RPMS/x86_64/',
], ],
}; };
@ -108,7 +107,7 @@ local PipelineNotifications = {
settings: { settings: {
homeserver: { from_secret: 'matrix_homeserver' }, homeserver: { from_secret: 'matrix_homeserver' },
roomid: { from_secret: 'matrix_roomid' }, 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' }, username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' }, password: { from_secret: 'matrix_password' },
}, },

View File

@ -30,15 +30,13 @@ steps:
- name: build-el7 - name: build-el7
image: thegeeklab/rpmbuild:7 image: thegeeklab/rpmbuild:7
commands: commands:
- source /drone/src/.drone.env - make all
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/ - ls -l /drone/src/dist/RPMS/x86_64/
- name: build-el8 - name: build-el8
image: thegeeklab/rpmbuild:8 image: thegeeklab/rpmbuild:8
commands: commands:
- source /drone/src/.drone.env - make all
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/ - ls -l /drone/src/dist/RPMS/x86_64/
- name: checksum - name: checksum
@ -101,7 +99,7 @@ steps:
from_secret: matrix_password from_secret: matrix_password
roomid: roomid:
from_secret: matrix_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: username:
from_secret: matrix_username from_secret: matrix_username
when: when:
@ -122,6 +120,6 @@ depends_on:
--- ---
kind: signature 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. 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 ## 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. 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 Summary: CUPS
Name: cups Name: cups
Version: %{version_} Version: %{version_}
Release: 0%{?dist} Release: %{release_}%{?dist}
Epoch: 1 Epoch: 1
License: GPL License: GPL
Group: System Environment/Daemons Group: System Environment/Daemons
Source: https://github.com/OpenPrinting/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz Source: https://github.com/OpenPrinting/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz
Url: http://www.cups.org Url: http://www.cups.org
Packager: Anonymous <anonymous@example.com> Packager: Robert Kaussow <mail@thegeeklab.de>
Vendor: OpenPrinting Vendor: OpenPrinting
# Package names are as defined for Red Hat (and clone) distributions # Package names are as defined for Red Hat (and clone) distributions
@ -132,7 +132,7 @@ make
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make BUILDROOT=$RPM_BUILD_ROOT install make BUILDROOT=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/data rm -rf $RPM_BUILD_ROOT/usr/share/cups/data
%post %post
%if %{?_with_systemd:1}%{!?_with_systemd:0} %if %{?_with_systemd:1}%{!?_with_systemd:0}
@ -262,6 +262,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/sbin/* /usr/sbin/*
%dir /usr/share/cups %dir /usr/share/cups
%dir /usr/share/cups/banners
%dir /usr/share/cups/drv %dir /usr/share/cups/drv
/usr/share/cups/drv/* /usr/share/cups/drv/*
%dir /usr/share/cups/ipptool %dir /usr/share/cups/ipptool

0
patches/.keep Normal file
View File