/[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.5 - (show annotations) (download)
Tue Aug 16 03:20:41 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: q-0_8_2-2, HEAD
Changes since 1.4: +1 -1 lines
Error occurred while calculating annotation data.
* 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 %define use_date %(date "+%F")
6
7 Name: q
8 Version: 0.8.2
9 Release: 2
10 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 go build -ldflags="-s -w -X main.version=%{version} -X main.commit=Koozali_SME_Server -X main.date=${use_date}"
40
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 * Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-2.sme
51 - initial import in SME 10 contribs
52

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