diff --git a/.tito/packages/.readme b/.tito/packages/.readme new file mode 100644 index 000000000..b9411e2d1 --- /dev/null +++ b/.tito/packages/.readme @@ -0,0 +1,3 @@ +the .tito/packages directory contains metadata files +named after their packages. Each file has the latest tagged +version and the project's relative directory. diff --git a/.tito/packages/gdu b/.tito/packages/gdu new file mode 100644 index 000000000..497b3fd3a --- /dev/null +++ b/.tito/packages/gdu @@ -0,0 +1 @@ +5.25.0-1 ./ diff --git a/.tito/tito.props b/.tito/tito.props new file mode 100644 index 000000000..eab3f190d --- /dev/null +++ b/.tito/tito.props @@ -0,0 +1,5 @@ +[buildconfig] +builder = tito.builder.Builder +tagger = tito.tagger.VersionTagger +changelog_do_not_remove_cherrypick = 0 +changelog_format = %s (%ae) diff --git a/INSTALL.md b/INSTALL.md index 69ef292cc..59f323ddb 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -51,7 +51,10 @@ You can either run it as `gdu_windows_amd64.exe` or scoop install gdu -## COPR builds +## [COPR builds](https://copr.fedorainfracloud.org/coprs/faramirza/gdu/) +COPR Builds exist for the the following Linux Distros. + +[How to enable a CORP Repo](https://docs.pagure.org/copr.copr/how_to_enable_repo.html) Amazon Linux 2023: ``` diff --git a/Makefile b/Makefile index ab1af5326..86bb739db 100644 --- a/Makefile +++ b/Makefile @@ -61,14 +61,14 @@ build-all: -ldflags="$(LDFLAGS)" \ $(PACKAGE)/$(CMD_GDU) - cd dist; GOFLAGS="$(GOFLAGS)" CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o gdu_linux_amd64 $(PACKAGE)/$(CMD_GDU) - cd dist; GOFLAGS="$(GOFLAGS_STATIC)" CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o gdu_linux_amd64_static $(PACKAGE)/$(CMD_GDU) - - cd dist; CGO_ENABLED=0 GOOS=linux GOARM=5 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o gdu_linux_armv5l $(PACKAGE)/$(CMD_GDU) - cd dist; CGO_ENABLED=0 GOOS=linux GOARM=6 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o gdu_linux_armv6l $(PACKAGE)/$(CMD_GDU) - cd dist; CGO_ENABLED=0 GOOS=linux GOARM=7 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o gdu_linux_armv7l $(PACKAGE)/$(CMD_GDU) - cd dist; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o gdu_linux_arm64 $(PACKAGE)/$(CMD_GDU) - cd dist; CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o gdu_android_arm64 $(PACKAGE)/$(CMD_GDU) + GOFLAGS="$(GOFLAGS)" CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_amd64 $(PACKAGE)/$(CMD_GDU) + GOFLAGS="$(GOFLAGS_STATIC)" CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_amd64_static $(PACKAGE)/$(CMD_GDU) + + CGO_ENABLED=0 GOOS=linux GOARM=5 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_armv5l $(PACKAGE)/$(CMD_GDU) + CGO_ENABLED=0 GOOS=linux GOARM=6 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_armv6l $(PACKAGE)/$(CMD_GDU) + CGO_ENABLED=0 GOOS=linux GOARM=7 GOARCH=arm go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_armv7l $(PACKAGE)/$(CMD_GDU) + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o dist/gdu_linux_arm64 $(PACKAGE)/$(CMD_GDU) + CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o dist/gdu_android_arm64 $(PACKAGE)/$(CMD_GDU) cd dist; for file in gdu_linux_* gdu_darwin_* gdu_netbsd_* gdu_openbsd_* gdu_freebsd_* gdu_android_*; do tar czf $$file.tgz $$file; done cd dist; for file in gdu_windows_*; do zip $$file.zip $$file; done diff --git a/gdu.spec b/gdu.spec index 68ef2cc4b..2bdd1333c 100644 --- a/gdu.spec +++ b/gdu.spec @@ -1,16 +1,16 @@ Name: gdu Version: 5.25.0 -Release: 1 +Release: 3%{?dist} Summary: Pretty fast disk usage analyzer written in Go -ExclusiveArch: x86_64 License: MIT URL: https://github.com/dundee/gdu Source0: %{name}-%{version}.tar.gz -#BuildRequires: golang -Requires: bash +BuildRequires: golang +BuildRequires: systemd-rpm-macros +BuildRequires: git Provides: %{name} = %{version} @@ -30,17 +30,17 @@ GO111MODULE=on CGO_ENABLED=0 go build \ -mod=readonly \ -modcacherw \ -ldflags \ -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?amzn} "-linkmode=external \ -s -w \ --X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \ +-X 'github.com/dundee/gdu/v5/build.Version=v%{version}' \ -X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \ -X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \ -o %{name} github.com/dundee/gdu/v5/cmd/gdu %endif %if 0%{?rhel} "-s -w \ --X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \ +-X 'github.com/dundee/gdu/v5/build.Version=v%{version}' \ -X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \ -X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)'" \ -o %{name} github.com/dundee/gdu/v5/cmd/gdu @@ -63,6 +63,8 @@ install -Dpm 0755 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdu.1 %{_mandir}/man1/gdu.1.gz %changelog +* Fri Dec 1 2023 Danie de Jager - 5.25.0-3 +- Improved SPEC to build on AL2023. * Tue Jun 6 2023 Danie de Jager - 5.25.0-1 - feat: use unicode block elements in size bar in #255 * Thu Jun 1 2023 Danie de Jager - 5.24.0-1