# Generated by go2rpm %bcond_without check # https://github.com/mitchellh/go-homedir %global goipath github.com/mitchellh/go-homedir Version: 1.1.0 %gometa # Remove in F33: %global godevelheader %{expand: Obsoletes: golang-github-mitchellh-go-homedir-devel < 1.1.0-3 %pretrans devel # glide.lock used to wrongly be an empty directory [ -d "%{gopath}/src/%{goipath}/glide.lock" ] && rmdir "%{gopath}/src/%{goipath}/glide.lock" || : } %global common_description %{expand: This is a Go library for detecting the user's home directory without the use of cgo, so the library can be used in cross-compilation environments. Usage is incredibly simple, just call homedir.Dir() to get the home directory for a user, and homedir.Expand() to expand the ~ in a path to the home directory.} %global golicenses LICENSE %global godocs README.md %global gosupfiles glide.lock glide.yaml Name: %{goname} Release: %mkrel 6 Summary: Go library for detecting and expanding the user's home directory without cgo Group: Development/Other License: MIT URL: %{gourl} Source0: %{gosource} Source1: glide.yaml Source2: glide.lock BuildArch: noarch %description %{common_description} %gopkg %prep %goprep cp %{SOURCE1} %{SOURCE2} . %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Mon Mar 21 2022 umeabot <umeabot> 1.1.0-6.mga9 + Revision: 1815140 - Mageia 9 Mass Rebuild * Sat Nov 06 2021 guillomovitch <guillomovitch> 1.1.0-5.mga9 + Revision: 1754147 - rebuild for mageia 9 * Sun Sep 06 2020 pterjan <pterjan> 1.1.0-4.mga8 + Revision: 1622965 - Fix pretrans to not fail when there is no dir to cleanup * Fri Sep 04 2020 pterjan <pterjan> 1.1.0-3.mga8 + Revision: 1622211 - Add back glide.lock with a pretrans script to remove the old empty dir * Mon Aug 31 2020 pterjan <pterjan> 1.1.0-2.mga8 + Revision: 1620411 - Drop glide.lock for now as it used to be a directory in Mageia 7, preventing upgrade * Sat Aug 29 2020 guillomovitch <guillomovitch> 1.1.0-1.mga8 + Revision: 1619562 - renaming - new version 1.1.0 - renamed to golang-github-mitchellh-homedir * Mon Nov 26 2018 pterjan <pterjan> 0-0.1.mga7 + Revision: 1335387 - imported package golang-github-mitchellh-go-homedir