1 |
jpp |
1.1 |
# Something that need for rpm-4.1 |
2 |
|
|
%define _missing_doc_files_terminate_build 0 |
3 |
|
|
%undefine _missing_build_ids_terminate_build |
4 |
|
|
%define debug_package %{nil} |
5 |
|
|
Name: q |
6 |
|
|
Version: 0.8.2 |
7 |
jpp |
1.2 |
Release: 2 |
8 |
jpp |
1.1 |
License: GNU GPL-3.0 |
9 |
|
|
Group: DNS |
10 |
|
|
Summary: A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ. |
11 |
|
|
URL: https://natesales.net/ |
12 |
|
|
Vendor: Nate Sales |
13 |
|
|
Packager: Jeam-Philippe Pialasse <jpp@koozali.org> |
14 |
|
|
Source: %{name}-%{version}.tar.gz |
15 |
|
|
Source1: vendor.tar.gz |
16 |
|
|
Provides: q = 0.8.2-1 |
17 |
|
|
BuildRequires: golang |
18 |
|
|
BuildArch: x86_64 |
19 |
|
|
AutoProv: no |
20 |
|
|
AutoReq: no |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ. |
24 |
|
|
|
25 |
|
|
%prep |
26 |
|
|
%setup -a 1 |
27 |
|
|
# NB to prepare new package first download the q tar.gz |
28 |
|
|
# then uncompress |
29 |
|
|
# then go inside and do |
30 |
|
|
# cd %{name}-%{version}/ |
31 |
|
|
# go vendor |
32 |
|
|
# tar -czf ../vendor.tar.gz vendor |
33 |
|
|
# then make new-source FILES="%{name}-%{version}.tar.gz vendor.tar.gz" |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
%build |
37 |
jpp |
1.3 |
go build -ldflags="-s -w -X main.version=%{version} -X main.commit=72fa909c3d5da33ba4ffc96920988a9b5873427f -X main.date='2022-08-02T05:04:02Z'" |
38 |
jpp |
1.1 |
|
39 |
|
|
%install |
40 |
|
|
mkdir -p %{buildroot}/usr/bin/ |
41 |
|
|
install -m 0755 q %{buildroot}/usr/bin/q |
42 |
|
|
|
43 |
|
|
%files |
44 |
|
|
%attr(0755, root, root) "/usr/bin/q" |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
%changelog |
48 |
jpp |
1.2 |
* Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-2.sme |
49 |
jpp |
1.1 |
- initial import in SME 10 contribs |
50 |
|
|
|