Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fl4nn:server
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.17.1 Release: 0 Summary: An ActivityPub social network server, written in Golang License: AGPL-3.0-only Url: https://docs.gotosocial.org/en/latest/ Source0: https://github.com/superseriousbusiness/%{name}/releases/download/v%{version}/%{name}-%{version}-source-code.tar.gz#/%{name}-%{version}.tar.gz Source1: https://github.com/superseriousbusiness/%{name}/releases/download/v%{version}/%{name}_%{version}_web-assets.tar.gz#/%{name}-%{version}_web-assets.tar.gz Source2: gotosocial.sysusers Patch0: default-settings.patch BuildRequires: golang(API) = 1.22 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 %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 %autosetup -p1 -a1 -c %build GO_BUILDTAGS="${GO_BUILDTAGS-} netgo osusergo static_build kvformat timetzdata" GO_LDFLAGS="${GO_LDFLAGS-} -s -w -extldflags '-static' -X 'main.Version=%{version}'" GO_GCFLAGS=${GO_GCFLAGS-} CGO_ENABLED=0 go build -trimpath -mod=vendor -buildmode=pie \ -tags "${GO_BUILDTAGS}" \ -ldflags="${GO_LDFLAGS}" \ -gcflags="${GO_GCFLAGS}" \ ./cmd/gotosocial %sysusers_generate_pre %{SOURCE2} %{name} %install install -D -m 0755 gotosocial %{buildroot}%{_sbindir}/gotosocial install -D -m 0750 -d %{buildroot}/var/lib/%{name}/{,.cache/} %{buildroot}/etc/%{name}/ install -D -m 0755 -d %{buildroot}%{_datadir}/%{name}/ %{buildroot}%{_docdir}/%{name}/ install -D -m 0644 example/gotosocial.service %{buildroot}%{_unitdir}/%{name}.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 -qa --chmod=u=rwX,go=rX web/template %{buildroot}/var/lib/%{name}/ rsync -qa --chmod=u=rwX,go=rX web/assets %{buildroot}%{_datadir}/%{name}/ rsync -qa --exclude=**/.cache docs %{buildroot}%{_docdir}/%{name}/ tar -xzf %{SOURCE1} -C %{buildroot}%{_datadir}/%{name}/assets/ web/assets/dist --strip-components=2 %pre -f %{name}.pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %apparmor_reload /etc/apparmor.d/%{name} %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %doc *.md %license LICENSE %{_sbindir}/gotosocial %{_unitdir}/%{name}.service %config /etc/apparmor.d/gotosocial %{_sysusersdir}/%{name}.conf %dir %attr(-,%{name},%{name}) /var/lib/%{name}/{,.cache/} %config(noreplace) %attr(-,%{name},%{name}) /var/lib/%{name}/template %config(noreplace) %attr(-,%{name},%{name}) /etc/%{name}/ %dir %attr(-,%{name},%{name}) %{_datadir}/%{name}/ %attr(-,%{name},%{name}) %{_datadir}/%{name}/assets %{_docdir}/%{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