/[smecontribs]/rpms/q/contribs10/q.spec
ViewVC logotype

Contents of /rpms/q/contribs10/q.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Aug 15 02:28:24 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
Changes since 1.2: +1 -1 lines
* Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-2.sme
- initial import in SME 10 contribs

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 Release: 2
8 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 go build -ldflags="-s -w -X main.version=%{version} -X main.commit=72fa909c3d5da33ba4ffc96920988a9b5873427f -X main.date='2022-08-02T05:04:02Z'"
38
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 * Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-2.sme
49 - initial import in SME 10 contribs
50

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed