# Copyright (C) 2024 Maxwell G # SPDX-License-Identifier: MIT # License text: https://spdx.org/licenses/MIT %global forgeurl https://gitlab.com/fedora/sigs/go/go-vendor-tools %define tag v%{version} Name: go-vendor-tools Version: 0.3.0^9.20240403.e837d3d %forgemeta Release: 1%{?dist} Summary: Tools for handling Go library vendoring in Fedora # BSD-3-Clause: src/go_vendor_tools/archive.py License: MIT AND BSD-3-Clause URL: %{forgeurl} Source0: go-vendor-tools-0.3.0^9.20240403.e837d3d.tar.gz BuildArch: noarch BuildRequires: python3-devel Recommends: (askalono-cli or trivy) %global common_description %{expand: go-vendor-tools provides tools and macros for handling Go library vendoring in Fedora.} %description %common_description %package doc Summary: Documentation for go-vendor-tools Enhances: go-vendor-tools %description doc %common_description %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install # TODO(anyone): Use -l flag once supported by EL 9. %pyproject_save_files go_vendor_tools # Install RPM macros install -Dpm 0644 rpm/macros.go_vendor_tools -t %{buildroot}%{_rpmmacrodir} # Install documentation mkdir -p %{buildroot}%{_docdir}/go-vendor-tools-doc cp -rL doc/* %{buildroot}%{_docdir}/go-vendor-tools-doc %check %pytest %files -f %{pyproject_files} # Install top-level markdown files %doc *.md %license LICENSES/* %{_bindir}/go_vendor* %{_rpmmacrodir}/macros.go_vendor_tools %files doc %doc %{_docdir}/go-vendor-tools-doc/ %pyproject_extras_subpkg -n go-vendor-tools all %changelog * Wed Apr 03 2024 Maxwell G - 0.3.0^9.20240403.e837d3d-1 - go_vendor_license install: own intermediate directories (take 2) * Wed Apr 03 2024 Maxwell G - 0.3.0^8.20240403.0cbc161-1 - packaging: switch to new upstream URL * Wed Apr 03 2024 Maxwell G - 0.3.0^7.20240403.2e3e46b-1 - go_vendor_license install: properly own intermediate directories * Sat Mar 30 2024 Maxwell G - 0.3.0^6.20240330.cfa5fea-1 - .gitignore: add site/ entry for mkdocs * Sat Mar 30 2024 Maxwell G - 0.3.0^5.20240330.df3bcc5-1 - lint: add reuse license entry for manpages * Fri Mar 29 2024 Maxwell G - 0.3.0^4.20240329.41f528c-1 - doc: add manpages for go_vendor_archive commands * Fri Mar 29 2024 Maxwell G - 0.3.0^3.20240329.a929337-1 - doc config: fix markdown syntax error * Fri Mar 29 2024 Maxwell G - 0.3.0^2.20240329.1ebf176-1 - go_vendor_archive: add missing --no-use-module-proxy * Thu Mar 28 2024 Maxwell G - 0.3.0^1.20240328.cc0d38f-1 - Post-release version bump * Thu Mar 28 2024 Maxwell G - 0.3.0-1 - Release 0.3.0. * Sat Mar 16 2024 Maxwell G - 0.2.0-1 - Release 0.2.0. * Sat Mar 09 2024 Maxwell G - 0.1.0-1 - Release 0.1.0. * Tue Mar 05 2024 Maxwell G - 0.0.1-1 - Release 0.0.1.