github.com/pelicanplatform/pelican@v1.0.5/.goreleaser.yml (about) 1 project_name: pelican 2 3 before: 4 hooks: 5 - go mod tidy 6 - go generate ./... 7 builds: 8 - env: 9 - CGO_ENABLED=0 10 goos: 11 - linux 12 - windows 13 - darwin 14 goarch: 15 - "amd64" 16 - "arm64" 17 - "ppc64le" 18 id: "pelican" 19 dir: ./cmd 20 binary: pelican 21 tags: 22 - forceposix 23 ignore: 24 - goos: windows 25 goarch: arm64 26 - goos: windows 27 goarch: ppc64le 28 - goos: darwin 29 goarch: ppc64le 30 31 archives: 32 - id: pelican 33 name_template: >- 34 {{ .ProjectName }}_ 35 {{- title .Os }}_ 36 {{- if eq .Arch "amd64" }}x86_64 37 {{- else }}{{ .Arch }}{{ end }} 38 format_overrides: 39 - goos: windows 40 format: zip 41 checksum: 42 name_template: 'checksums.txt' 43 snapshot: 44 name_template: "{{ incpatch .Version }}-next" 45 changelog: 46 sort: asc 47 filters: 48 exclude: 49 - '^docs:' 50 - '^test:' 51 - Merge pull request 52 - Merge branch 53 54 nfpms: 55 - package_name: pelican 56 builds: 57 - pelican 58 file_name_template: "{{ .ConventionalFileName }}" 59 id: pelican 60 vendor: OSG Consortium 61 homepage: https://github.com/PelicanPlatform/pelican 62 maintainer: Brian Bockelman <bbockelman@morgridge.org> 63 description: Command-line copy tool for the Open Science Data Federation 64 license: ASL 2.0 65 formats: 66 - apk 67 - deb 68 - rpm 69 bindir: /usr/bin 70 release: 1 71 section: default 72 priority: extra 73 overrides: 74 rpm: 75 contents: 76 - src: LICENSE 77 dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/LICENSE.txt" 78 file_info: 79 mode: 0644 80 type: doc 81 - src: README.md 82 dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/README.md" 83 file_info: 84 mode: 0644 85 type: doc 86 deb: 87 contents: 88 - src: LICENSE 89 dst: "/usr/share/doc/{{ .PackageName }}/LICENSE.txt" 90 file_info: 91 mode: 0644 92 type: doc 93 - src: README.md 94 dst: "/usr/share/doc/{{ .PackageName }}/README.md" 95 file_info: 96 mode: 0644 97 type: doc 98 # end package pelican 99 100 - package_name: pelican-osdf-compat 101 builds: [] 102 file_name_template: "{{ .ConventionalFileName }}" 103 id: pelican-osdf-compat 104 vendor: OSG Consortium 105 homepage: https://github.com/PelicanPlatform/pelican 106 maintainer: Brian Bockelman <bbockelman@morgridge.org> 107 description: OSDF compatibility files for Pelican 108 license: ASL 2.0 109 meta: true 110 formats: 111 - apk 112 - deb 113 - rpm 114 # bindir: /usr/bin 115 release: 1 116 section: default 117 priority: extra 118 dependencies: 119 - pelican 120 provides: 121 ## does not work: {{ .Version }} doesn't get substituted in this list 122 # - osdf-client = {{ .Version }} 123 # - stashcp = {{ .Version }} 124 # - condor-stash-plugin = {{ .Version }} 125 - "osdf-client = 7" 126 - "stashcp = 7" 127 - "condor-stash-plugin = 7" 128 overrides: 129 apk: 130 contents: 131 - src: "./pelican" 132 dst: "/usr/bin/osdf" 133 type: symlink 134 - src: "./pelican" 135 dst: "/usr/bin/stashcp" 136 type: symlink 137 rpm: 138 contents: 139 - src: "./pelican" 140 dst: "/usr/bin/osdf" 141 type: symlink 142 - src: "./pelican" 143 dst: "/usr/bin/stashcp" 144 type: symlink 145 - src: "../../bin/pelican" 146 dst: "/usr/libexec/condor/stash_plugin" 147 type: symlink 148 - src: "client/resources/10-stash-plugin.conf" 149 dst: "/etc/condor/config.d/10-stash-plugin.conf" 150 type: config|noreplace 151 replaces: 152 - "osdf-client < 7" 153 - "stashcp < 7" 154 - "condor-stash-plugin < 7" 155 ## rpm specific syntax: 156 ## also does not work: %{version} doesn't get expanded 157 # provides: 158 # - "osdf-client = %{version}" 159 # - "stashcp = %{version}" 160 # - "condor-stash-plugin = %{version}" 161 deb: 162 contents: 163 - src: "./pelican" 164 dst: "/usr/bin/osdf" 165 type: symlink 166 - src: "./pelican" 167 dst: "/usr/bin/stashcp" 168 type: symlink 169 - src: "../../bin/pelican" 170 dst: "/usr/libexec/condor/stash_plugin" 171 type: symlink 172 - src: "client/resources/10-stash-plugin.conf" 173 dst: "/etc/condor/config.d/10-stash-plugin.conf" 174 type: config|noreplace 175 # deb has different syntax 176 provides: 177 - "osdf-client (= 7)" 178 - "stashcp (= 7)" 179 - "condor-stash-plugin (= 7)" 180 replaces: 181 - "osdf-client (<< 7)" 182 - "stashcp (<< 7)" 183 - "condor-stash-plugin (<< 7)" 184 # end package pelican-osdf-compet