jabberd/jabberd.spec

202 lines
5.9 KiB
RPMSpec

Name: jabberd
Version: 2.3.2
Release: 1mamba
Summary: JabberD XMPP Server
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://jabberd2.org/
Source: https://github.com/jabberd2/jabberd2/releases/download/jabberd-%{version}/jabberd-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libexpat-devel
BuildRequires: libgsasl-devel
BuildRequires: libidn-devel
BuildRequires: libntlm-devel
BuildRequires: libopenssl-devel
BuildRequires: libudns-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
JabberD XMPP Server.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%debug_package
%prep
%setup -q
%build
%configure \
--sysconfdir=%{_sysconfdir}/jabberd
%make \
systemddir=%{_unitdir} \
initdir=%{_sysconfdir}/jabberd/init
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
systemddir=%{_unitdir} \
initdir=%{_sysconfdir}/jabberd/init
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post jabberd-c2s
%systemd_post jabberd-router
%systemd_post jabberd-s2s
%systemd_post jabberd-sm
%systemd_post jabberd
:
%preun
%systemd_preun jabberd-c2s
%systemd_preun jabberd-router
%systemd_preun jabberd-s2s
%systemd_preun jabberd-sm
%systemd_preun jabberd
:
%postun
%systemd_postun_with_restart jabberd-c2s
%systemd_postun_with_restart jabberd-router
%systemd_postun_with_restart jabberd-s2s
%systemd_postun_with_restart jabberd-sm
%systemd_postun_with_restart jabberd
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/jabberd/c2s.xml
%config(noreplace) %{_sysconfdir}/jabberd/c2s.xml
%config(noreplace) %{_sysconfdir}/jabberd/jabberd.cfg
%config(noreplace) %{_sysconfdir}/jabberd/templates/roster.xml.dist
%config(noreplace) %{_sysconfdir}/jabberd/router-filter.xml
%config(noreplace) %{_sysconfdir}/jabberd/router-users.xml
%config(noreplace) %{_sysconfdir}/jabberd/router.xml
%config(noreplace) %{_sysconfdir}/jabberd/s2s.xml
%config(noreplace) %{_sysconfdir}/jabberd/sm.xml
%config(noreplace) %{_sysconfdir}/jabberd/templates/roster.xml
%{_sysconfdir}/jabberd/*.dist
%dir %{_sysconfdir}/jabberd/init
%config(noreplace) %{_sysconfdir}/jabberd/init/jabberd-c2s.conf
%config(noreplace) %{_sysconfdir}/jabberd/init/jabberd-router.conf
%config(noreplace) %{_sysconfdir}/jabberd/init/jabberd-s2s.conf
%config(noreplace) %{_sysconfdir}/jabberd/init/jabberd-sm.conf
%{_bindir}/c2s
%{_bindir}/jabberd
%{_bindir}/router
%{_bindir}/s2s
%{_bindir}/sm
%{_unitdir}/jabberd-c2s.service
%{_unitdir}/jabberd-router.service
%{_unitdir}/jabberd-s2s.service
%{_unitdir}/jabberd-sm.service
%{_unitdir}/jabberd.service
%{_mandir}/man8/c2s.8*
%{_mandir}/man8/jabberd.8*
%{_mandir}/man8/router.8*
%{_mandir}/man8/s2s.8*
%{_mandir}/man8/sm.8*
%files -n lib%{name}
%defattr(-,root,root)
%dir %{_libdir}/jabberd
%{_libdir}/jabberd/libstorage.la
%{_libdir}/jabberd/libstorage.so
%{_libdir}/jabberd/libstorage.so.*
%{_libdir}/jabberd/mod_active.la
%{_libdir}/jabberd/mod_active.so
%{_libdir}/jabberd/mod_active.so.*
%{_libdir}/jabberd/mod_amp.la
%{_libdir}/jabberd/mod_amp.so
%{_libdir}/jabberd/mod_amp.so.*
%{_libdir}/jabberd/mod_announce.la
%{_libdir}/jabberd/mod_announce.so
%{_libdir}/jabberd/mod_announce.so.*
%{_libdir}/jabberd/mod_deliver.la
%{_libdir}/jabberd/mod_deliver.so
%{_libdir}/jabberd/mod_deliver.so.*
%{_libdir}/jabberd/mod_disco.la
%{_libdir}/jabberd/mod_disco.so
%{_libdir}/jabberd/mod_disco.so.*
%{_libdir}/jabberd/mod_echo.la
%{_libdir}/jabberd/mod_echo.so
%{_libdir}/jabberd/mod_echo.so.*
%{_libdir}/jabberd/mod_help.la
%{_libdir}/jabberd/mod_help.so
%{_libdir}/jabberd/mod_help.so.*
%{_libdir}/jabberd/mod_iq-last.la
%{_libdir}/jabberd/mod_iq-last.so
%{_libdir}/jabberd/mod_iq-last.so.*
%{_libdir}/jabberd/mod_iq-ping.la
%{_libdir}/jabberd/mod_iq-ping.so
%{_libdir}/jabberd/mod_iq-ping.so.*
%{_libdir}/jabberd/mod_iq-private.la
%{_libdir}/jabberd/mod_iq-private.so
%{_libdir}/jabberd/mod_iq-private.so.*
%{_libdir}/jabberd/mod_iq-time.la
%{_libdir}/jabberd/mod_iq-time.so
%{_libdir}/jabberd/mod_iq-time.so.*
%{_libdir}/jabberd/mod_iq-vcard.la
%{_libdir}/jabberd/mod_iq-vcard.so
%{_libdir}/jabberd/mod_iq-vcard.so.*
%{_libdir}/jabberd/mod_iq-version.la
%{_libdir}/jabberd/mod_iq-version.so
%{_libdir}/jabberd/mod_iq-version.so.*
%{_libdir}/jabberd/mod_offline.la
%{_libdir}/jabberd/mod_offline.so
%{_libdir}/jabberd/mod_offline.so.*
%{_libdir}/jabberd/mod_pep.la
%{_libdir}/jabberd/mod_pep.so
%{_libdir}/jabberd/mod_pep.so.*
%{_libdir}/jabberd/mod_presence.la
%{_libdir}/jabberd/mod_presence.so
%{_libdir}/jabberd/mod_presence.so.*
%{_libdir}/jabberd/mod_privacy.la
%{_libdir}/jabberd/mod_privacy.so
%{_libdir}/jabberd/mod_privacy.so.*
%{_libdir}/jabberd/mod_roster-publish.la
%{_libdir}/jabberd/mod_roster-publish.so
%{_libdir}/jabberd/mod_roster-publish.so.*
%{_libdir}/jabberd/mod_roster.la
%{_libdir}/jabberd/mod_roster.so
%{_libdir}/jabberd/mod_roster.so.*
%{_libdir}/jabberd/mod_session.la
%{_libdir}/jabberd/mod_session.so
%{_libdir}/jabberd/mod_session.so.*
%{_libdir}/jabberd/mod_status.la
%{_libdir}/jabberd/mod_status.so
%{_libdir}/jabberd/mod_status.so.*
%{_libdir}/jabberd/mod_template-roster.la
%{_libdir}/jabberd/mod_template-roster.so
%{_libdir}/jabberd/mod_template-roster.so.*
%{_libdir}/jabberd/mod_vacation.la
%{_libdir}/jabberd/mod_vacation.so
%{_libdir}/jabberd/mod_vacation.so.*
%{_libdir}/jabberd/mod_validate.la
%{_libdir}/jabberd/mod_validate.so
%{_libdir}/jabberd/mod_validate.so.*
%doc AUTHORS COPYING
%changelog
* Tue Mar 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-1mamba
- package created using the webbuild interface