Projects
home:Eustace:branches:Eulaceura:Factory
fast-https
_service:obs_scm:fast-https.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:fast-https.spec of Package fast-https
Name: fast-https Version: 1.0.0 Release: 1%{?dist} Summary: fast-https web server Group: Development/Tools License: GPLv2 URL: https://gitee.com/src-openeuler/fast-https Source0: %{name}-%{version}.tar.gz # BuildRequires: golang # Requires: %description fast-https web server %prep %setup -q -c -T %ifarch aarch64 wget https://gitee.com/emadel/golang/releases/download/1.0.0/go1.22.4.linux-arm64.tar.gz tar -zxvf go1.22.4.linux-arm64.tar.gz %endif %ifarch x86_64 wget https://gitee.com/emadel/golang/releases/download/1.0.0/go1.22.4.linux-amd64.tar.gz tar -zxvf go1.22.4.linux-amd64.tar.gz %endif export PATH=$PATH:`pwd`/go/bin tar -zxvf %{_sourcedir}/%{name}-%{version}.tar.gz go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct %build export PATH=$PATH:`pwd`/go/bin go build -ldflags="-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -tags=rpm . %install # //usr/bin # //share/fast-https install -d %{buildroot}/%{_bindir} install -d %{buildroot}/%{_datadir}/%{name}/config install -d %{buildroot}/%{_datadir}/%{name}/config/conf.d install -d %{buildroot}/%{_datadir}/%{name}/config/cert install -d %{buildroot}/%{_datadir}/%{name}/httpdoc/root install -d %{buildroot}/%{_datadir}/%{name}/logs # Installing the binary install -m 0755 %{name} %{buildroot}/%{_bindir}/%{name} # Installing additional files config install -m 0644 config/fast-https.json %{buildroot}/%{_datadir}/%{name}/config/fast-https.json install -m 0644 config/mime.json %{buildroot}/%{_datadir}/%{name}/config/mime.json # Installing additional files httpdoc install -m 0644 httpdoc/root/favicon.ico %{buildroot}/%{_datadir}/%{name}/httpdoc/root/favicon.ico install -m 0644 httpdoc/root/index.html %{buildroot}/%{_datadir}/%{name}/httpdoc/root/index.html %files %{_bindir}/%{name} %{_datadir}/%{name}/config/fast-https.json %{_datadir}/%{name}/config/mime.json %{_datadir}/%{name}/httpdoc/root/favicon.ico %{_datadir}/%{name}/httpdoc/root/index.html %dir %{_datadir}/%{name}/config/conf.d %dir %{_datadir}/%{name}/config/cert %dir %{_datadir}/%{name}/logs %doc README.md %license LICENSE %changelog * Wed Jun 26 2024 ajax <927068267@qq.com> - 1.0.0-1 - 梳理原仓库,和入master
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2