diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a229227 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dep-0.4.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 7c7d78f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# dep - -The dep package \ No newline at end of file diff --git a/dep.spec b/dep.spec new file mode 100644 index 0000000..6718371 --- /dev/null +++ b/dep.spec @@ -0,0 +1,101 @@ +# https://github.com/golang/dep +%global goipath github.com/golang/dep +%global gcommit 37d9ea0ac16f0e0a05afc3b60e1ac8c364b6c329 + +Version: 0.4.1 + +%gometa + +Name: dep +Release: 1%{?dist} +Summary: Go dependency management tool +# Detected licences +# - BSD (3 clause) at 'LICENSE' +License: BSD +URL: %{gourl} +Source0: %{gosource} + +# cmd/dep/root_analyzer.go +BuildRequires: golang(golang.org/x/sync/errgroup) + +# cmd/dep/prune.go +# cmd/dep/init.go +# cmd/dep/hash_in.go +# cmd/dep/status.go +# cmd/dep/gopath_scanner.go +# cmd/dep/failures.go +# cmd/dep/ensure.go +BuildRequires: golang(github.com/pkg/errors) + +# Remaining dependencies not included in main packages +BuildRequires: golang(github.com/sdboyer/constext) +BuildRequires: golang(github.com/golang/protobuf/proto) +BuildRequires: golang(github.com/Masterminds/vcs) +BuildRequires: golang(github.com/jmank88/nuts) +BuildRequires: golang(github.com/go-yaml/yaml) +BuildRequires: golang(github.com/pelletier/go-toml) +BuildRequires: golang(github.com/Masterminds/semver) +BuildRequires: golang(github.com/nightlyone/lockfile) +BuildRequires: golang(github.com/armon/go-radix) + + +%description +%{summary} + +%package devel +Summary: %{summary} +BuildArch: noarch + +BuildRequires: golang(github.com/Masterminds/semver) +BuildRequires: golang(github.com/Masterminds/vcs) +BuildRequires: golang(github.com/armon/go-radix) +BuildRequires: golang(github.com/boltdb/bolt) +BuildRequires: golang(github.com/go-yaml/yaml) +BuildRequires: golang(github.com/golang/protobuf/proto) +BuildRequires: golang(github.com/jmank88/nuts) +BuildRequires: golang(github.com/nightlyone/lockfile) +BuildRequires: golang(github.com/pelletier/go-toml) +BuildRequires: golang(github.com/pkg/errors) +BuildRequires: golang(golang.org/x/sync/errgroup) + +%description devel +%{summary} + +This package contains library source intended for +building other packages which use import path with +%{goipath} prefix. + +%prep +%gosetup -q + +%build +%gobuildroot +%gobuild -o _bin/cmd/dep %{goipath}/cmd/dep +%gobuild -o _bin/gps %{goipath}/gps + + +%install +install -d -p %{buildroot}%{_bindir} +install -p -m 0755 _bin/cmd/dep %{buildroot}%{_bindir}/dep +install -p -m 0755 _bin/gps %{buildroot}%{_bindir}/gps + +%goinstall + +%check +# Requires internet access +%gochecks -d . -d cmd/dep -d gps -t internal/importers + +%files +%license LICENSE PATENTS +%doc README.md CONTRIBUTING.md AUTHORS CODE_OF_CONDUCT.md CHANGELOG.md CONTRIBUTORS MAINTAINERS.md +%{_bindir}/dep +%{_bindir}/gps + +%files devel -f devel.file-list +%license LICENSE PATENTS +%doc README.md CONTRIBUTING.md AUTHORS CODE_OF_CONDUCT.md CHANGELOG.md CONTRIBUTORS MAINTAINERS.md + +%changelog +* Tue Mar 20 2018 Jan Chaloupka - 0.4.1-1 +- First package for Fedora + resolves: #1559388 diff --git a/sources b/sources new file mode 100644 index 0000000..3c4ceab --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dep-0.4.1.tar.gz) = 29caef5dbbb21020f4ba4024b9c8601da5c7f9f8caa5ab63c6dfa927be2140d33037473600246f35a6e58f94bad592b1974c38b8b9fec6f4d1d68ec8324db3d2