File golaps.spec of Package golaps

#
# spec file for package golaps
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


Name:           golaps
Version:        0.1.1
Release:        0
Summary:        Tool to retrieve LAPS passwords from a windows domain
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Diagnostic
URL:            https://sensepost.com/blog/2025/golaps/
#Git-Clone:     https://github.com/sensepost/goLAPS.git
Source:         https://github.com/sensepost/goLAPS/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  go1.23
BuildRequires:  golang-packaging
%{go_provides}

%description
Retrieve LAPS passwords from a windows domain.

%prep
%autosetup -a 1 -n goLAPS-%{version}

%build
cd src
go build \
  -mod=vendor \
  -buildmode=pie \
  -o golaps .

%install
install -D -m0755 src/golaps %{buildroot}%{_bindir}/golaps

%files
%license LICENSE
%doc README.md
%{_bindir}/golaps

%changelog
openSUSE Build Service is sponsored by