Package golang-tools: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | %global import_path golang.org/x/tools %global commit 24acc66eabead631b4e856255a9ad925549cee80 %global abbrev %(c=%{commit}; echo ${c:0:8}) %global __find_debuginfo_files %nil %global _unpackaged_files_terminate_build 1 %set_verify_elf_method unresolved=no %add_debuginfo_skiplist %go_root %_bindir %brp_strip_none %_bindir/* %go_root/bin/* %go_tooldir/* Name: golang-tools Version: 0 Release: alt7.git%abbrev Summary: Supplementary tools and packages for Go Group: Development/Other License: BSD URL: https://go.googlesource.com/tools Packager: Alexey Gladkov <legion@altlinux.ru> Source0: %name-%version.tar ExclusiveArch: %go_arches BuildRequires(pre): rpm-build-golang Requires: golang %description The collection of developer tools. %package devel Summary: %summary Group: Development/Other BuildArch: noarch Requires: golang %description devel %summary This package contains library source intended for building other packages which use the supplementary Go tools libraries with golang.org/x/ imports. %prep %setup -q %build export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" %golang_prepare rm -rf -- .build/src/%import_path/cmd/html2article rm -rf -- .build/src/%import_path/cmd/present rm -rf -- .build/src/%import_path/cmd/cover rm -rf -- .build/src/%import_path/cmd/vet cd .build/src/%import_path %golang_build cmd/* ||: %install export BUILDDIR="$PWD/.build" export GOPATH="%go_path" %golang_install mkdir -p -- %buildroot/%go_root/bin for f in %buildroot/%_bindir/*; do [ -x "$f" ] || continue f="${f##*/}" what="$(relative %_bindir/$f %go_root/bin/$f)" ln -s -- "$what" %buildroot/%go_root/bin/$f done # upstream commit 734737930440fc305a816e577cab457fbbc807c1 (rename oracle to guru) rm -f -- %buildroot/%_bindir/oracle ln -s -- guru %buildroot/%_bindir/oracle # remove testdata, tests, and non-go files find \ %buildroot/%go_path/src \ \( \ \( -type d -name 'testdata' \) -o \ \( -type f -name 'Makefile' \) -o \ \( -type f -name '*_test.go' \) -o \ \( -type f -name 'test_*' \) -o \ \( -type f -name '*test.bash' \) -o \ \( -type f -name 'test.' \) \ \) \ -print0 | xargs -0 rm -rfv -- %files %_bindir/* %go_root/bin/* %files devel %go_path/src/* %changelog * Tue Jan 22 2019 Alexey Gladkov <legion@altlinux.ru> 0-alt7.git24acc66e - Hide build error. * Sat Apr 08 2017 Alexey Gladkov <legion@altlinux.ru> 0-alt6.git24acc66e - New snapshot. * Fri Feb 12 2016 Alexey Gladkov <legion@altlinux.ru> 0-alt5.git78926538 - New snapshot. * Fri Jan 22 2016 Alexey Gladkov <legion@altlinux.ru> 0-alt4.gitf3a63969 - New snapshot. * Fri Jan 22 2016 Alexey Gladkov <legion@altlinux.ru> 0-alt3.gitd02228d1 - Use rpm-build-golang * Sat Sep 26 2015 Alexey Gladkov <legion@altlinux.ru> 0-alt2.gitd02228d1 - New snapshot. - The vet and cover tools have been moved to golang. * Mon Jul 06 2015 Alexey Gladkov <legion@altlinux.ru> 0-alt1.git7e09e072 - First build for ALTLinux. |