-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
subatomic.spec
53 lines (36 loc) · 1.2 KB
/
subatomic.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%define debug_package %{nil}
%define _build_id_links none
Name: subatomic
Version: 0.4.0.%{autogitversion}
Release: 1%{?dist}
Summary: A modern package delivery system
License: MIT
URL: https://github.com/FyraLabs/subatomic
Source0: https://github.com/FyraLabs/subatomic/archive/%{autogitcommit}.zip
BuildRequires: go-rpm-macros
BuildRequires: git-core
Requires: createrepo_c
%description
Subatomic is a package delivery system which supports multiple package formats.
It manages a repository of packages, handling updating, signing, and other tasks.
%package cli
Summary: Client for Subatomic repo manager
%description cli
Client for Subatomic repo manager
%files cli
%{_bindir}/subatomic-cli
%prep
%autosetup -n subatomic-%{autogitcommit}
%build
mkdir -p build/bin
go build -v -o build/bin/subatomic-cli ./subatomic-cli
go build -v -o build/bin/subatomic ./server
%install
mkdir -p %{buildroot}%{_bindir}/
install -pm 755 build/bin/subatomic-cli %{buildroot}%{_bindir}/
install -pm 755 build/bin/subatomic %{buildroot}%{_bindir}/
%files
%{_bindir}/subatomic
%changelog
* Fri Sep 30 2022 Cappy Ishihara <[email protected]>
- Intial release