SHA256
1
0
forked from pool/doh
doh/doh.spec
Martin Hauke 9f172e604f Accepting request 731594 from home:mnhauke
- Update to initial upstream release 0.1:
  * doh.1: initial man page
  * doh: sort the -h options alphabetically
  * version: add header file, support -V and call it version 0.1 now
  * README: show the current cloudflare URL in the example output
  * Update Google Public DNS DoH endpoint in example
  * doh_encode: fix the comparison for long host names
  * doh: added -k for insecure mode - skips server cert validation

OBS-URL: https://build.opensuse.org/request/show/731594
OBS-URL: https://build.opensuse.org/package/show/network:utilities/doh?expand=0&rev=3
2019-09-21 20:33:42 +00:00

55 lines
1.6 KiB
RPMSpec

#
# spec file for package doh
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: doh
Version: 0.1
Release: 0
Summary: Simple DoH (DNS-over-HTTPS) client
License: MIT
Group: Productivity/Networking/DNS/Utilities
URL: https://github.com/curl/doh
#Git-Clone: https://github.com/curl/doh.git
Source: https://github.com/curl/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)
%description
A libcurl-using application that resolves a host name using
DNS-over-HTTPS (DOH).
This code uses POST requests unconditionally for this.
%prep
%setup -q -n doh-doh-%{version}
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
install -Dm 0755 doh %{buildroot}%{_bindir}/doh
install -Dm 0644 doh.1 %{buildroot}%{_mandir}/man1/%{name}.1
%files
%license LICENSE
%doc README.md
%{_bindir}/doh
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog