commit 2d28d4ea5a2f70b5bc318060f7d5733385ad23af45e5b28b92ed02a5d0341b6b Author: Marcus Meissner Date: Fri Dec 10 09:38:58 2021 +0000 Accepting request 937752 from home:dspinella I want to maintain dog in Factory and would like to use network:utilities as the devel/feeder project. OBS-URL: https://build.opensuse.org/request/show/937752 OBS-URL: https://build.opensuse.org/package/show/network:utilities/dog?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..0bf5867 --- /dev/null +++ b/_service @@ -0,0 +1,28 @@ + + + https://github.com/ogham/dog.git + @PARENT_TAG@~git@TAG_OFFSET@.%h + git + v0.1.0 + * + v(\d+\.\d+\.\d+) + \1 + enable + danilo.spinella@suse.com + + + + *.tar + xz + + + + dog + xz + true + + + dog + + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..814fa75 --- /dev/null +++ b/cargo_config @@ -0,0 +1,9 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source."https://github.com/llogiq/mutagen"] +git = "https://github.com/llogiq/mutagen" +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/dog-0.1.0~git0.445ed98.tar.xz b/dog-0.1.0~git0.445ed98.tar.xz new file mode 100644 index 0000000..e3e938d --- /dev/null +++ b/dog-0.1.0~git0.445ed98.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bdb33270189fceabb7cc44448abe5908795549903097b9eaf5883fc5dc31ada +size 436776 diff --git a/dog.changes b/dog.changes new file mode 100644 index 0000000..d3faba4 --- /dev/null +++ b/dog.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Dec 2 14:03:46 UTC 2021 - Danilo Spinella + +- Initial packaging of version 0.1.0 + diff --git a/dog.spec b/dog.spec new file mode 100644 index 0000000..bedb95d --- /dev/null +++ b/dog.spec @@ -0,0 +1,75 @@ +# +# spec file for package dog +# +# Copyright (c) 2021 SUSE LLC +# +# 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: dog +Version: 0.1.0~git0.445ed98 +Release: 0 +Summary: A command-line DNS client +License: EUPL-1.2 +URL: https://github.com/ogham/dog +Source0: %{name}-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +Source3: install.yml +BuildRequires: cargo-packaging +BuildRequires: git +BuildRequires: pandoc +BuildRequires: pkgconfig +BuildRequires: rinstall +BuildRequires: pkgconfig(openssl) +ExclusiveArch: %{rust_tier1_arches} + +%description +A command-line DNS client, like dig. It has colourful output, understands normal +command-line argument syntax, supports the DNS-over-TLS and DNS-over-HTTPS protocols, +and can emit JSON. + +%prep +%autosetup -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config +cp %{SOURCE3} . + +%build +%{cargo_build} +# Generate manpage +pandoc --standalone -f markdown -t man man/dog.1.md > man/dog.1 + +%install +%{rinstall} + +%check +%{cargo_test} + +%files +%doc %{_datadir}/doc/dog/README.md +%dir %{_datadir}/doc/dog +%license %{_datadir}/licenses/dog/LICENCE +%dir %{_datadir}/licenses/dog +%{_bindir}/dog +%{_mandir}/man1/dog.1%{?ext_man} +%{_datadir}/bash-completion/completions/dog.bash +%dir %{_datadir}/fish +%dir %{_datadir}/fish/vendor_completions.d +%{_datadir}/fish/vendor_completions.d/dog.fish +%dir %{_datadir}/zsh +%dir %{_datadir}/zsh/site-functions +%dir %{_datadir}/zsh/site-functions/completions +%{_datadir}/zsh/site-functions/completions/_dog + +%changelog diff --git a/install.yml b/install.yml new file mode 100644 index 0000000..f6eeb87 --- /dev/null +++ b/install.yml @@ -0,0 +1,20 @@ +rinstall: 0.1.0 +pkgs: + dog: + type: rust + exe: + - dog + man: + - man/dog.1 + completions: + bash: + - completions/dog.bash + fish: + - completions/dog.fish + zsh: + - src: completions/dog.zsh + dst: completions/_dog + licenses: + - LICENCE + docs: + - README.md \ No newline at end of file diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..e143d13 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bcaecbb2c75f62ed90170032b8f5f175b090da958e3109ae6422058d293129a +size 7549236