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

Annotation of /rpms/q/contribs10/q.spec

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


Revision 1.1 - (hide annotations) (download)
Sun Aug 14 22:20:41 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: q-0_8_2-1
init

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     Release: 1
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     ls -al
38     go build -x
39    
40     %install
41     mkdir -p %{buildroot}/usr/bin/
42     install -m 0755 q %{buildroot}/usr/bin/q
43    
44     %files
45     %attr(0755, root, root) "/usr/bin/q"
46    
47    
48     %changelog
49     * Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-1.sme
50     - initial import in SME 10 contribs
51    

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