Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ph03nix
woodpecker
woodpecker.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File woodpecker.spec of Package woodpecker
# # spec file for package woodpecker # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define components agent cli server Name: woodpecker Version: 2.5.0 Release: 0 Summary: CI system License: Apache-2.0 Group: Productivity/Other URL: https://woodpecker-ci.org Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.gz Source2: node_modules.tgz BuildRequires: golang(API) >= 1.22 BuildRequires: golang-packaging BuildRequires: nodejs(abi) >= 20 BuildRequires: yarn %description Woodpecker is a community fork of the Drone CI system. %package www Summary: Static web content for Woodpecker %description www Static web content for Woodpecker for serving using a webserver. %package agent Summary: Woodpecker agent %description agent Woodpecker job executor and worker. %package cli Summary: Woodpecker command line interface %description cli Tool for interacting with Woodpecker using a command line interface %package server Summary: Woodpecker server %description server Main Woodpecker server %prep %autosetup -p1 -a 2 rm -rf vendor %setup -q -DTqa1 mv node_modules web %build mkdir yarn-cache pushd web yarn --offline --cache-folder ../yarn-cache build popd export CGO_ENABLED=0 for component in %{components} do go build -mod=vendor -buildmode=pie -ldflags '-s -w -extldflags "-static" -X go.woodpecker-ci.org/woodpecker/v2/version.Version=%{version}' -o dist/woodpecker-$component go.woodpecker-ci.org/woodpecker/v2/cmd/$component done %install install -dm 0755 %{buildroot}%{_bindir} %{buildroot}%{_sbindir} %{buildroot}%{_sysusersdir} %{buildroot}%{_unitdir} %{buildroot}/srv/www for component in %{components} do install -vm 0755 dist/%{name}-$component %{buildroot}%{_bindir} done cp -r web/dist %{buildroot}/srv/www/%{name} %post %postun %files %license LICENSE %doc README.md CHANGELOG.md %files agent %{_bindir}/woodpecker-agent %files cli %{_bindir}/woodpecker-cli %files server %{_bindir}/woodpecker-server %files www /srv/www/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor