Package init

- 初始化提交
This commit is contained in:
wangtaozhi 2023-05-25 09:45:44 +08:00
parent 7e5155e183
commit 6eec63aa85
4 changed files with 50 additions and 0 deletions

BIN
default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

BIN
gendesk-1.0.9.tar.xz Normal file

Binary file not shown.

46
gendesk.spec Normal file
View 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
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: https://github.com/xyproto/gendesk
tag_prefix: "v"
separator: "."