Sisyphus repository
Last update: 17 october 2019 | SRPMs: 17500 | Visits: 15284853
en ru br
ALT Linux repos
S:0.11.3-alt1

Group :: System/Servers
RPM: prosody

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: prosody
Version: 0.11.1
Release: alt1

Summary: Modern XMPP communication server

Group: System/Servers
License: GPL
Url: https://prosody.im/

BuildRequires: openssl lua5 liblua5-devel libidn-devel libssl-devel

Requires: openssl lua-module-luaexpat lua-module-luasocket lua-module-luafilesystem lua-module-luasec

Source0: %name-%version.tar
Source1: %name.cfg.lua
Source2: %name.service

%description
%summary

%prep
%setup

%build
./configure --prefix=/usr
%make_build

%install
%makeinstall_std
mkdir -p %buildroot/%systemd_unitdir
mkdir -p %buildroot/%_localstatedir/%name
mv %buildroot/%_sysconfdir/%name/%name.cfg.lua %buildroot/%_sysconfdir/%name/%name.cfg.example.lua
cp %SOURCE1 %buildroot/%_sysconfdir/%name
cp %SOURCE2 %buildroot/%systemd_unitdir

%pre
/usr/sbin/groupadd -r -f _%name
/usr/sbin/useradd -r -g _%name -d /var/empty -s /sbin/nologin -n -c "%summary" _%name >/dev/null 2>&1 ||:

%preun
%preun_service %name

%post
%post_service %name

%files
%_bindir/*
%_libexecdir/%name
%config(noreplace) %_sysconfdir/%name
%systemd_unitdir/%name.service
%attr(0755,_%name,_%name) %dir %_localstatedir/%name
%_man1dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin