generated from smedev/Template-for-SMEServer-Core-upstream
* Thu Jan 02 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.19.2-1.sme
- bump version and initial import to SME 11 core
This commit is contained in:
parent
5c72071f3f
commit
ed35ca4867
BIN
q-0.19.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
q-0.19.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
80
q.spec
80
q.spec
@ -1,54 +1,54 @@
|
|||||||
%define name q
|
# Something that need for rpm-4.1
|
||||||
%define version 1.0
|
%define _missing_doc_files_terminate_build 0
|
||||||
%define release 1
|
%undefine _missing_build_ids_terminate_build
|
||||||
Summary: This is what q does.
|
%define debug_package %{nil}
|
||||||
Name: %{name}
|
%define use_date %(date "+%F")
|
||||||
Version: %{version}
|
|
||||||
Release: %{release}%{?dist}
|
Name: q
|
||||||
Source: %{name}-%{version}.tar.gz
|
Version: 0.19.2
|
||||||
License: GNU GPL version 2
|
Release: 1
|
||||||
Group: SMEserver/addon
|
License: GNU GPL-3.0
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
Group: DNS
|
||||||
Prefix: %{_prefix}
|
Summary: A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ.
|
||||||
BuildArchitectures: noarch
|
URL: https://natesales.net/
|
||||||
BuildRequires: smeserver-devtools
|
Vendor: Nate Sales
|
||||||
Requires: smeserver-release >= 11.0
|
Packager: Jeam-Philippe Pialasse <jpp@koozali.org>
|
||||||
AutoReqProv: no
|
Source: q-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.gz
|
||||||
|
Provides: q = %{version}
|
||||||
|
BuildRequires: golang
|
||||||
|
BuildArch: x86_64
|
||||||
|
AutoProv: no
|
||||||
|
AutoReq: no
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A tiny and feature-rich command line DNS client with support for UDP, TCP, DoT, DoH, DoQ, and ODoH
|
A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ.
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
|
||||||
- Initial code - create RPM [SME:99999]
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -a 1
|
||||||
|
# NB to prepare new package first download the q tar.gz
|
||||||
|
# then uncompress
|
||||||
|
# then go inside and do
|
||||||
|
# cd %{name}-%{version}/
|
||||||
|
# go mod vendor
|
||||||
|
# tar -czf ../vendor.tar.gz vendor
|
||||||
|
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
go build -ldflags="-s -w -X main.version=%{version} -X main.commit=Koozali_SME_Server -X main.date=${use_date}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
mkdir -p %{buildroot}/usr/bin/
|
||||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
install -m 0755 q %{buildroot}/usr/bin/q
|
||||||
rm -f %{name}-%{version}-filelist
|
|
||||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
||||||
> %{name}-%{version}-filelist
|
|
||||||
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
|
||||||
#--dir <dir> 'attr(755,user,grp)' \
|
|
||||||
#--file <file> 'attr(755,root,root)' \
|
|
||||||
|
|
||||||
%clean
|
%files
|
||||||
cd ..
|
%attr(0755, root, root) "/usr/bin/q"
|
||||||
rm -rf %{name}-%{version}
|
|
||||||
|
|
||||||
%pre
|
|
||||||
|
|
||||||
%preun
|
%changelog
|
||||||
|
* Thu Jan 02 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.19.2-1.sme
|
||||||
|
- bump version and initial import to SME 11 core
|
||||||
|
|
||||||
%post
|
* Sun Aug 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.2-2.sme
|
||||||
|
- initial import in SME 10 contribs
|
||||||
|
|
||||||
%postun
|
|
||||||
#uninstall
|
|
||||||
%files -f %{name}-%{version}-filelist
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
BIN
vendor.tar.gz
(Stored with Git LFS)
Normal file
BIN
vendor.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user