!2 初始化仓库
From: @wangtaozhi Reviewed-by: @tangjie02 Signed-off-by: @tangjie02
This commit is contained in:
commit
6ca078a49d
BIN
default.png
Normal file
BIN
default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 710 B |
BIN
gendesk-1.0.9.tar.xz
Normal file
BIN
gendesk-1.0.9.tar.xz
Normal file
Binary file not shown.
46
gendesk.spec
Normal file
46
gendesk.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Name: gendesk
|
||||||
|
Version: 1.0.9
|
||||||
|
Release: 1
|
||||||
|
Summary: Utility for generating desktop files
|
||||||
|
Group: Development/Tools
|
||||||
|
License: MIT
|
||||||
|
URL: http://gendesk.roboticoverlords.org/
|
||||||
|
Source0: http://roboticoverlords.org/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
Source1: http://roboticoverlords.org/images/default.png
|
||||||
|
#-------------------------------------
|
||||||
|
BuildRequires: golang
|
||||||
|
BuildRequires: git
|
||||||
|
#-------------------------------------
|
||||||
|
|
||||||
|
%description
|
||||||
|
Utility for generating desktop files
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version}
|
||||||
|
|
||||||
|
#GOPATH=`pwd` go get -d -v
|
||||||
|
|
||||||
|
%build
|
||||||
|
#GOPATH=`pwd` go build
|
||||||
|
#GOPATH=`pwd`
|
||||||
|
go build -mod=vendor -buildmode=pie -gccgoflags="-s -w $LDFLAGS"
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
|
||||||
|
install -Dm755 "%{name}" "$RPM_BUILD_ROOT/usr/bin/%{name}"
|
||||||
|
install -Dm644 %{S:1} "$RPM_BUILD_ROOT/usr/share/pixmaps/"
|
||||||
|
install -Dm644 "%{name}.1.gz" "$RPM_BUILD_ROOT/usr/share/man/man1/%{name}.1.gz"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/gendesk
|
||||||
|
%{_mandir}/man1/gendesk.1.gz
|
||||||
|
%{_datadir}/pixmaps/default.png
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue May 16 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 1.0.9-1
|
||||||
|
- Package init
|
||||||
4
gendesk.yaml
Normal file
4
gendesk.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: https://github.com/xyproto/gendesk
|
||||||
|
tag_prefix: "v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user