commit 8abfa156b89c624e657c00391e5ce0f331a9ec1803c8d7a8cd1266a1f36bccd6 Author: Jeff Kowalczyk Date: Mon Oct 19 20:15:57 2020 +0000 Accepting request 842625 from home:xenonpk:go Build duf OBS-URL: https://build.opensuse.org/request/show/842625 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/duf?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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..971f745 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + git + https://github.com/muesli/duf.git + duf + @PARENT_TAG@ + v(.*) + enable + + + + *.tar + gz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..de57eb9 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/muesli/duf.git + ef3c542a44005cce3bcc62fefd644d826fd2cda2 \ No newline at end of file diff --git a/duf-0.4.0.tar.gz b/duf-0.4.0.tar.gz new file mode 100644 index 0000000..1d07207 --- /dev/null +++ b/duf-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c51f59421cfeb18ed050ead330efd4ea3b17a1d85c9533fe6e8b610d33df8d51 +size 130896 diff --git a/duf.changes b/duf.changes new file mode 100644 index 0000000..a13e801 --- /dev/null +++ b/duf.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Mon Oct 19 16:41:30 UTC 2020 - pousaduarte@gmail.com + +- Update to version 0.4.0~git20201018: + * Use EnvColorProfile + * Remove unnecessary type coversions + * Remove always nil error handling + * warning option + * [Linux] fix escaped type & filesystem + * Mention Alpine packages in README + * Update screenshot + * Improve version string display + * Builds apk packages with goreleaser + * Disable CGO and enable trimpath for goreleaser builds + diff --git a/duf.spec b/duf.spec new file mode 100644 index 0000000..89d4906 --- /dev/null +++ b/duf.spec @@ -0,0 +1,80 @@ +# +# Copyright (c) 2020, Duarte Pousa pousaduarte@gmail.com +# +# 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 http://bugs.opensuse.org/ +# + +%global provider github +%global provider_tld com +%global project muesli +%global repo duf +%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} +%global import_path %{provider_prefix} +%global debug_package %{nil} + +Name: duf +Version: 0.4.0 +Release: 0 +License: MIT +Summary: Disk Usage/Free Utility +Group: System/Management +Url: https://github.com/muesli/duf +Source: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: go >= 1.11 +BuildRequires: go-md2man +BuildRequires: fdupes +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Disk Usage/Free Utility (Linux, BSD, macOS & Windows) + +%prep +%setup -q +%setup -q T -D -a 1 +find . -iname "vendor" -type d + +%build +export VERSION=%{version} +export COMMIT=%{commit} +export CGO_ENABLED=0 +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags "-s -w -X main.CommitSHA=$COMMIT -X main.Version=$VERSION" \ + -o %{name} ; + +%install +# Install the binary. +install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}" + +# Build the man pages. +go-md2man -in README.md -out %{name}.1 + +# Install the man pages. +mkdir -p "%{buildroot}/%{_mandir}/man1" +install -D -m 0644 %{name}.1 "%{buildroot}/%{_mandir}/man1" + +#hardlink duplicated files +%fdupes %{buildroot} + +%files +%defattr(-,root,root) +%if 0%{?suse_version} < 1500 +%doc LICENSE +%else +%license LICENSE +%endif +%{_bindir}/%{name} +%{_mandir}/man1/%{name}*.1.gz + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..125c572 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83bd0cdbc9f25f6a3895463efa9bff2cfd1e554573e92c640899b51e5770bed1 +size 996617