spec file changes
This commit is contained in:
parent
f8ad932e33
commit
69b9e41129
@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: autogits
|
Name: autogits
|
||||||
Version: 0.0.1
|
Version: 0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GitWorkflow utilities
|
Summary: GitWorkflow utilities
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
URL: https://src.opensuse.org/adamm/autogits
|
URL: https://src.opensuse.org/adamm/autogits
|
||||||
Source: https://src.opensuse.org/adamm/autogits/0.0.1.tar.zst
|
Source: autogits-%{version}.tar.zst
|
||||||
Source1: vendor.tar.zst
|
Source1: vendor.tar.zst
|
||||||
BuildRequires: golang-packaging
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
@ -43,6 +43,7 @@ with a topic
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
cd gitea-events-rabbitmq-publisher && tar x --zstd -f %{SOURCE1}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
go build \
|
go build \
|
||||||
@ -51,8 +52,20 @@ go build \
|
|||||||
-buildmode=pie
|
-buildmode=pie
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -m0755 gitea-events-rabbitmq-publisher/gitea-events-rabbitmq-publisher %{buildroot}%{_bindir}
|
install -D -m0755 gitea-events-rabbitmq-publisher/gitea-events-rabbitmq-publisher %{buildroot}%{_bindir}/gitea-events-rabbitmq-publisher
|
||||||
install -D -m0755 systemd/gitea-events-rabbitmq-publisher.service %{buildroot}%{_unitdir}
|
install -D -m0644 systemd/gitea-events-rabbitmq-publisher.service %{buildroot}%{_unitdir}/gitea-events-rabbitmq-publisher.service
|
||||||
|
|
||||||
|
%pre -n gitea-events-rabbitmq-publisher
|
||||||
|
%service_add_pre gitea-events-rabbitmq-publisher.service
|
||||||
|
|
||||||
|
%post -n gitea-events-rabbitmq-publisher
|
||||||
|
%service_add_post gitea-events-rabbitmq-publisher.service
|
||||||
|
|
||||||
|
%preun -n gitea-events-rabbitmq-publisher
|
||||||
|
%service_del_preun gitea-events-rabbitmq-publisher.service
|
||||||
|
|
||||||
|
%postun -n gitea-events-rabbitmq-publisher
|
||||||
|
%service_del_postun gitea-events-rabbitmq-publisher.service
|
||||||
|
|
||||||
%files -n gitea-events-rabbitmq-publisher
|
%files -n gitea-events-rabbitmq-publisher
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user