Compare commits

..

14 commits

Author SHA1 Message Date
Packit
16d9be38a5 Update to 1.5.1 upstream release
- Resolves: rhbz#2521650

Upstream tag: v1.5.1
Upstream commit: 9803fc95

Commit authored by Packit automation (https://packit.dev/)
2026-08-23 16:14:26 +00:00
Packit
c123e510a5 Update to 1.5.0 upstream release
- Resolves: rhbz#2514430

Upstream tag: v1.5.0
Upstream commit: e1abbb35

Commit authored by Packit automation (https://packit.dev/)
2026-08-11 22:17:21 +00:00
Fedora Release Engineering
7112a5f288 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:25:16 +00:00
Mikel Olasagasti Uranga
0e78a2c1e3 Update packit config to support vendorized builds
[skip changelog]
2026-03-03 17:40:44 +01:00
Packit
1d96596258 Update to 1.4.0 upstream release
- Resolves: rhbz#2443356

Upstream tag: v1.4.0
Upstream commit: 02a8c391

Commit authored by Packit automation (https://packit.dev/)
2026-02-27 16:12:17 +00:00
Maxwell G
327ac8b514 Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 2026-02-02 20:04:01 -06:00
Fedora Release Engineering
95d40b2fd7 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:52:32 +00:00
Alejandro Sáez
73e89ed39e rebuild 2025-10-10 16:39:47 +02:00
Maxwell G
435ce90bb0 Rebuild for golang-1.25.0 2025-08-15 18:47:17 -05:00
Mikel Olasagasti Uranga
4368278288 Miscellaneous packaging improvements
- Use GO111MODULE=on. This is the modern way to build Go applications
  and also includes extra dependency metadata in the binary.
- Use simpler %gotest macro instead of %gocheck script

Ref: 85a703ecae

[skip changelog]
2025-07-27 16:07:56 +02:00
Fedora Release Engineering
d5c13fdbf7 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:03:18 +00:00
Mikel Olasagasti Uranga
645981ad60 Adopt Go Vendor Tools 2025-07-10 11:12:51 +02:00
Fedora Release Engineering
8b14713674 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:15:22 +00:00
Packit
f1c63beb53 Update to 1.3.0 upstream release
- Resolves: rhbz#2333882

Upstream tag: v1.3.0
Upstream commit: 86a75557

Commit authored by Packit automation (https://packit.dev/)
2024-12-23 20:26:54 +00:00
6 changed files with 70 additions and 53 deletions

8
.gitignore vendored
View file

@ -12,3 +12,11 @@
/xq-1.2.3.tar.gz
/xq-1.2.4.tar.gz
/xq-1.2.5.tar.gz
/xq-1.3.0.tar.gz
/xq-1.3.0-vendor.tar.bz2
/xq-1.4.0.tar.gz
/xq-1.4.0-vendor.tar.bz2
/xq-1.5.0.tar.gz
/xq-1.5.0-vendor.tar.bz2
/xq-1.5.1.tar.gz
/xq-1.5.1-vendor.tar.bz2

View file

@ -1,19 +1,31 @@
specfile_path: xq.spec
upstream_package_name: xq
upstream_project_url: https://github.com/sibprogrammer/xq
---
downstream_package_name: xq
upstream_tag_template: v{version}
upstream_project_url: https://github.com/sibprogrammer/xq
upstream_tag_template: "v{version}"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
rawhide: {}
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-rawhide
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-rawhide
- job: koji_build
trigger: commit
dist_git_branches:
- rawhide
actions:
post-modifications:
- |
sh -xeuc "
cd $PACKIT_DOWNSTREAM_REPO
export GOTOOLCHAIN=local+auto
spec="$PACKIT_DOWNSTREAM_PACKAGE_NAME.spec"
go_vendor_archive create --config go-vendor-tools.toml "$spec"
go_vendor_license \
--config go-vendor-tools.toml \
--path "$spec" \
report \
--verify-spec \
--autofill=auto
"
create_sync_note: false

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.15.0.post1.dev2+g8f2adf816.

8
go-vendor-tools.toml Normal file
View file

@ -0,0 +1,8 @@
[archive]
[licensing]
detector = "askalono"
[[licensing.licenses]]
path = "vendor/gopkg.in/yaml.v3/LICENSE"
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
expression = "MIT AND (MIT AND Apache-2.0)"

View file

@ -1 +1,2 @@
SHA512 (xq-1.2.5.tar.gz) = 8e5dcb254087c6f043dc8ebb292b49c007048cf0b4928753df3bac57963d80a80220e47a3fed876069620922afd31b12bbf4ad1899629e54f28a1dbc84ec9659
SHA512 (xq-1.5.1.tar.gz) = 016b17a6e6e39819c3a309c173ff31a5e0ead2439fdd51766ec0ee5d8c789bc6f7fe65ee2f75252a0d493c594c4aa63f3fb3ea59f6054d4807a6c22d07e8a559
SHA512 (xq-1.5.1-vendor.tar.bz2) = 6df48b41d621c54328e860f49e9f4579fa5eaaa80262060d126c1a3f179039625f122851d418f0dd695b9e05ae5d3a3a143c6d4eac3011ef19343b1b7ad78356

59
xq.spec
View file

@ -1,79 +1,64 @@
# Generated by go2rpm 1.14.0
# Generated by go2rpm 1.17.1
%bcond check 1
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/sibprogrammer/xq
%global goipath github.com/sibprogrammer/xq
Version: 1.2.5
Version: 1.5.1
%gometa -L -f
%global common_description %{expand:
Command-line XML and HTML beautifier and content extractor, similar to jq.}
%global golicenses LICENSE
%global godocs README.md
Name: xq
Release: %autorelease
Summary: Command-line XML and HTML beautifier and content extractor
License: MIT
# Generated by go-vendor-tools
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
URL: %{gourl}
Source: %{gosource}
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
%description %{common_description}
BuildRequires: go-vendor-tools
%gopkg
%description
Command-line XML and HTML beautifier and content extractor.
%prep
%goprep -A
%setup -q -T -D -a1 %{forgesetupargs}
%autopatch -p1
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%go_vendor_license_buildrequires -c %{S:2}
%if %{without bootstrap}
%build
export LDFLAGS="-X main.commit=fedora \
%global gomodulesmode GO111MODULE=on
export GO_LDFLAGS="-X main.commit=fedora \
-X main.version=%{version} \
-X main.date=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d)"
%gobuild -o %{gobuilddir}/bin/xq %{goipath}/
%endif
%install
%if %{without bootstrap}
%go_vendor_license_install -c %{S:2}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
mv ./docs/%{name}.man ./docs/%{name}.1
install -Dpm 0644 ./docs/%{name}.1 -t %{buildroot}%{_mandir}/man1/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%go_vendor_license_check -c %{S:2}
%if %{with check}
%gotest ./...
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc README.md
%files -f %{go_vendor_license_filelist}
%license vendor/modules.txt
%doc docs README.md
%{_bindir}/xq
%{_mandir}/man1/%{name}.1*
%endif
%changelog
%autochangelog