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
This commit is contained in:
commit
8abfa156b8
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
17
_service
Normal file
17
_service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files" mode="localonly"/>
|
||||||
|
<service name="tar_scm" mode="localonly">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/muesli/duf.git</param>
|
||||||
|
<param name="filename">duf</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="localonly"/>
|
||||||
|
<service name="recompress" mode="localonly">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="go_modules" mode="localonly"/>
|
||||||
|
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/muesli/duf.git</param>
|
||||||
|
<param name="changesrevision">ef3c542a44005cce3bcc62fefd644d826fd2cda2</param></service></servicedata>
|
3
duf-0.4.0.tar.gz
Normal file
3
duf-0.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c51f59421cfeb18ed050ead330efd4ea3b17a1d85c9533fe6e8b610d33df8d51
|
||||||
|
size 130896
|
15
duf.changes
Normal file
15
duf.changes
Normal file
@ -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
|
||||||
|
|
80
duf.spec
Normal file
80
duf.spec
Normal file
@ -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
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:83bd0cdbc9f25f6a3895463efa9bff2cfd1e554573e92c640899b51e5770bed1
|
||||||
|
size 996617
|
Loading…
Reference in New Issue
Block a user