Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:apps
gotosocial
gotosocial.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gotosocial.spec of Package gotosocial
# # spec file for package gotosocial # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: gotosocial Version: 0 Release: 0 Summary: An ActivityPub social network server, written in Golang License: AGPL-3.0-only Url: https://docs.gotosocial.org/en/latest/ #Source: %{name}-%{version}.tar.zst #Source1: vendor.tar.xz Source2: gotosocial.sysusers Source3: series Patch: fix-paths.patch BuildRequires: golang(API) = 1.19 BuildRequires: go1.19 >= 1.19.5 BuildRequires: golang-packaging BuildRequires: pkgconfig(systemd) BuildRequires: apparmor-profiles BuildRequires: apparmor-rpm-macros BuildRequires: sysuser-shadow BuildRequires: sysuser-tools BuildRequires: rsync %{?systemd_ordering} %sysusers_requires %{go_nostrip} %description With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles. All without being tracked or advertised to! %prep mv %{_sourcedir}/%{name}-%{version} %{_builddir}/%{name}-%{version} %autosetup -p1 -D -T 0 #autosetup -p1 #-a 1 %build CGO_ENABLED=0 go build -trimpath -mod=vendor -buildmode=pie \ -tags "netgo osusergo static_build kvformat" \ -ldflags="-w -extldflags '-static' -X 'main.Version=%{version}'"\ ./cmd/gotosocial %sysusers_generate_pre %{SOURCE2} %{name} %{name}.conf %install install -D -m 0755 gotosocial %{buildroot}%{_sbindir}/gotosocial install -D -m 0750 -d %{buildroot}/var/lib/%{name} %{buildroot}/var/log/%{name} %{buildroot}/etc/%{name}/ install -D -m 0755 -d %{buildroot}%{_datadir}/%{name}/ install -D -m 0644 example/gotosocial.service %{buildroot}%{_unitdir}/gotosocial.service install -D -m 0644 example/apparmor/gotosocial %{buildroot}/etc/apparmor.d/gotosocial install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf install -m 0640 example/config.yaml %{buildroot}/etc/%{name}/config.yaml rsync -av --chmod=u=rwX,go=rX web/ %{buildroot}%{_datadir}/%{name}/web/ %pre -f %{name}.pre %service_add_pre %{name}.service %preun %service_del_preun %{name}.service %post %apparmor_reload /etc/apparmor.d/%{name} %service_add_post %{name}.service %postun %service_del_postun %{name}.service %files %doc *.md %license LICENSE %{_sbindir}/gotosocial %{_datadir}/%{name}/ %{_unitdir}/gotosocial.service %config /etc/apparmor.d/gotosocial %{_sysusersdir}/%{name}.conf %dir %attr(0750, %{name},%{name}) /var/lib/%{name} %dir %attr(0750, %{name},%{name}) /var/log/%{name} %config(noreplace) %attr(-,root,%{name}) /etc/%{name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor