working build 3.5.0
This commit is contained in:
parent
0bb81239e0
commit
50c9c2a262
1 changed files with 37 additions and 3 deletions
40
akkoma.spec
40
akkoma.spec
|
@ -6,17 +6,26 @@ License: AGPL-3
|
||||||
URL: https://akkoma.dev
|
URL: https://akkoma.dev
|
||||||
%undefine _disable_source_fetch
|
%undefine _disable_source_fetch
|
||||||
Source0: https://akkoma.dev/AkkomaGang/akkoma/archive/v%{version}.tar.gz
|
Source0: https://akkoma.dev/AkkomaGang/akkoma/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: git gcc g++ make cmake file-devel elixir erlang-os_mon erlang-eldap erlang-xmerl erlang-erl_interface erlang-syntax_tools openssl-devel erlang-crypto
|
BuildRequires: git gcc g++ make cmake file-devel elixir erlang-os_mon erlang-eldap erlang-xmerl erlang-erl_interface erlang-syntax_tools openssl-devel erlang-crypto
|
||||||
Requires: postgresql-server postgresql-contrib file
|
Requires: postgresql-server postgresql-contrib file
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
|
Suggests: caddy varnish
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Magically expressive social media
|
Magically expressive social media
|
||||||
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
%global _build_id_links none
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n akkoma
|
%setup -n akkoma
|
||||||
|
rm -rf installation/init.d
|
||||||
|
rm -rf installation/freebsd
|
||||||
|
rm -rf installation/openbsd
|
||||||
|
rm -rf installation/netbsd
|
||||||
|
rm -rf installation/akkoma.supervisord
|
||||||
|
rm -rf rel/files/installation/init.d/
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group akkoma >/dev/null || groupadd -r akkoma
|
getent group akkoma >/dev/null || groupadd -r akkoma
|
||||||
|
@ -34,14 +43,39 @@ MIX_ENV=prod mix release --path=release
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/usr/lib/akkoma/
|
mkdir -p %{buildroot}/usr/lib/akkoma/
|
||||||
mkdir -p %{buildroot}/usr/lib/akkoma/
|
mkdir -p %{buildroot}/usr/lib/akkoma/
|
||||||
|
mkdir -p %{buildroot}/usr/local/share/akkoma/
|
||||||
|
mkdir -p %{buildroot}/var/lib/akkoma/static/
|
||||||
|
mkdir -p %{buildroot}/var/lib/akkoma/uploads/
|
||||||
|
install -m 755 installation/akkoma.vcl %{buildroot}/usr/local/share/akkoma/akkoma.vcl
|
||||||
|
mkdir -p %{buildroot}/etc/systemd/system/
|
||||||
|
install -m 755 installation/akkoma.service %{buildroot}/etc/systemd/system/akkoma.service
|
||||||
cp -r release/* %{buildroot}/usr/lib/akkoma/
|
cp -r release/* %{buildroot}/usr/lib/akkoma/
|
||||||
|
mkdir -p %{buildroot}/etc/akkoma/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(777,akkoma,akkoma,777)
|
%defattr(760,akkoma,akkoma,777)
|
||||||
%dir /usr/lib/akkoma/
|
# src
|
||||||
/usr/lib/akkoma/
|
/usr/lib/akkoma/bin/
|
||||||
|
/usr/lib/akkoma/erts-13.1.2/
|
||||||
|
/usr/lib/akkoma/releases/%{version}
|
||||||
|
%defattr(600,akkoma,akkoma,777)
|
||||||
|
/usr/lib/akkoma/installation/
|
||||||
|
/usr/lib/akkoma/lib/
|
||||||
|
/usr/lib/akkoma/releases/start_erl.data
|
||||||
|
/usr/lib/akkoma/OTP_VERSION
|
||||||
|
/etc/akkoma/
|
||||||
|
/var/lib/akkoma/
|
||||||
%config(noreplace) /usr/lib/akkoma/releases/COOKIE
|
%config(noreplace) /usr/lib/akkoma/releases/COOKIE
|
||||||
|
|
||||||
|
%defattr(600,root,root,777)
|
||||||
|
# helpy stuff
|
||||||
|
/usr/local/share/akkoma/akkoma.vcl
|
||||||
|
/etc/systemd/system/akkoma.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
ln -sf /usr/lib/akkoma/bin/pleroma %{_bindir}/pleroma
|
||||||
|
ln -sf /usr/lib/akkoma/bin/pleroma_ctl %{_bindir}/pleroma_ctl
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 16 2022 FloatingGhost <hannah@coffee-and-dreams.uk> - 3.5.0
|
* Fri Dec 16 2022 FloatingGhost <hannah@coffee-and-dreams.uk> - 3.5.0
|
||||||
- Initial build
|
- Initial build
|
||||||
|
|
Loading…
Reference in a new issue