Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ojkastl_buildservice:Branch_devel_tools_building
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 __arch_install_post export NO_BRP_STRIP_DEBUG=true %define cli_package_name woodpecker-cli %define cli_executable_name woodpecker-cli %define agent_package_name woodpecker-agent %define agent_executable_name woodpecker-agent %define server_package_name woodpecker-server %define server_executable_name woodpecker-server Name: woodpecker Version: 2.6.0 Release: 0 Summary: Simple yet powerful CI/CD engine with great extensibility License: Apache-2.0 URL: https://github.com/woodpecker-ci/woodpecker Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source2: web-%{version}.tar.gz BuildRequires: go >= 1.22 %description Woodpecker is a simple yet powerful CI/CD engine with great extensibility %package -n %{cli_package_name} Summary: CLI for the Woodpecker CI system %description -n %{cli_package_name} Woodpecker command line utility %package -n %{agent_package_name} Summary: CLI for the Woodpecker CI system %description -n %{agent_package_name} Woodpecker command line utility %package -n %{server_package_name} Summary: CLI for the Woodpecker CI system %description -n %{server_package_name} Woodpecker command line utility %prep %autosetup -p 1 -a 1 rm -rf web/ tar xvf %{SOURCE2} %build # CLI executable go build \ -mod=vendor \ -buildmode=pie \ -ldflags="-X go.woodpecker-ci.org/woodpecker/v2/version.Version=v%{version}" \ -o bin/%{cli_executable_name} ./cmd/cli # Agent executable go build \ -mod=vendor \ -buildmode=pie \ -ldflags="-X go.woodpecker-ci.org/woodpecker/v2/version.Version=v%{version}" \ -o bin/%{agent_executable_name} ./cmd/agent # Server go build \ -mod=vendor \ -buildmode=pie \ -ldflags="-X go.woodpecker-ci.org/woodpecker/v2/version.Version=v%{version}" \ -o bin/%{server_executable_name} ./cmd/server %install install -D -m 0755 bin/%{cli_executable_name} %{buildroot}/%{_bindir}/%{cli_executable_name} install -D -m 0755 bin/%{agent_executable_name} %{buildroot}/%{_bindir}/%{agent_executable_name} install -D -m 0755 bin/%{server_executable_name} %{buildroot}/%{_bindir}/%{server_executable_name} %files -n %{cli_package_name} %doc README.md %license LICENSE %{_bindir}/%{cli_executable_name} %files -n %{agent_package_name} %doc README.md %license LICENSE %{_bindir}/%{agent_executable_name} %files -n %{server_package_name} %doc README.md %license LICENSE %{_bindir}/%{server_executable_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