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