Initial package (RHBZ#2176342)
This commit is contained in:
parent
ee9d9997b6
commit
2242bf8f20
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/yggdrasil-worker-package-manager-0.2.0.tar.gz
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (yggdrasil-worker-package-manager-0.2.0.tar.gz) = da1e015bcecca9d870eb1bf3cb37ed41a8bf02d7de3baf9b91c4fccdf27ea95681700bbb37828770479cce5b193b84335ab4a031e2552d6f9ecdc5596c45c5ab
|
69
yggdrasil-worker-package-manager.spec
Normal file
69
yggdrasil-worker-package-manager.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
# https://github.com/redhatinsights/yggdrasil-worker-package-manager
|
||||||
|
%global goipath github.com/redhatinsights/yggdrasil-worker-package-manager
|
||||||
|
Version: 0.2.0
|
||||||
|
%global tag 0.2.0
|
||||||
|
|
||||||
|
%gometa -f
|
||||||
|
|
||||||
|
%global common_description %{expand:
|
||||||
|
yggdrasil-worker-package-manager is a simple package manager yggd worker. It
|
||||||
|
knows how to install and remove packages, add, remove, enable and disable
|
||||||
|
repositories, and does rudimentary detection of the host it is running on to
|
||||||
|
guess the package manager to use. It only installs packages that match one of
|
||||||
|
the provided allow-pattern regular expressions.}
|
||||||
|
|
||||||
|
%global golicenses LICENSE
|
||||||
|
%global godocs README.md
|
||||||
|
|
||||||
|
Name: yggdrasil-worker-package-manager
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Package manager worker for yggdrasil
|
||||||
|
|
||||||
|
License: GPL-3.0-only
|
||||||
|
URL: %{gourl}
|
||||||
|
Source: %{gosource}
|
||||||
|
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
|
|
||||||
|
%description %{common_description}
|
||||||
|
|
||||||
|
%gopkg
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%goprep
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%go_generate_buildrequires
|
||||||
|
|
||||||
|
%build
|
||||||
|
%undefine _auto_set_build_flags
|
||||||
|
export %gomodulesmode
|
||||||
|
%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"}
|
||||||
|
%meson "-Dgobuildflags=[%(echo %{expand:%gocompilerflags} | sed -e s/"^"/"'"/ -e s/" "/"', '"/g -e s/"$"/"'"/), '-tags', '"rpm_crashtraceback\ ${BUILDTAGS:-}"', '-a', '-v', '-x']" -Dgoldflags='%{?currentgoldflags} -B 0x%(head -c20 /dev/urandom|od -An -tx1|tr -d " \n") -compressdwarf=false -linkmode=external -extldflags "%{build_ldflags} %{?__golang_extldflags}"'
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
%gopkginstall
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%gocheck
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_libexecdir}/*
|
||||||
|
%config(noreplace) %{_sysconfdir}/%{name}
|
||||||
|
%{_datadir}/dbus-1/system-services/*
|
||||||
|
|
||||||
|
%gopkgfiles
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
Loading…
Reference in New Issue
Block a user