Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:telephony
resiprocate
resiprocate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File resiprocate.spec of Package resiprocate
# # spec file for package resiprocate # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: resiprocate Version: 1.9.10 Release: 0 Summary: SIP and TURN stacks, with SIP proxy and TURN server implementations License: VSL Group: Productivity/Telephony/SIP/Servers Url: http://www.resiprocate.org Source: https://www.resiprocate.org/files/pub/reSIProcate/releases/%{name}-%{version}.tar.gz Source1: repro.init Source2: resiprocate-turn-server.init Source3: reTurnServer-users.txt Patch0: reTurnServer-config.patch Patch1: repro-config.patch BuildRequires: asio-devel BuildRequires: boost-devel BuildRequires: cajun-jsonapi-devel BuildRequires: db-devel BuildRequires: freeradius-client-devel BuildRequires: gcc-c++ BuildRequires: libcares-devel BuildRequires: libtool BuildRequires: libxerces-c-devel BuildRequires: mysql-devel BuildRequires: openssl-devel >= 0.9.8 BuildRequires: pcre-devel BuildRequires: perl BuildRequires: pkg-config BuildRequires: popt-devel %if %suse_version > 1140 BuildRequires: systemd %endif %description The reSIProcate components, particularly the SIP stack, are in use in both commercial and open-source products. The project is dedicated to maintaining a complete, correct, and commercially usable implementation of SIP and a few related protocols. %package libs Summary: Shared libraries http://www.resiprocate.org Group: System/Libraries %description libs reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. This package provides the core libraries: librutil (utilities), libresip (SIP stack/RFC compliant message parsing) and libdum (SIP Dialog Usage Manager, a state machine for SIP dialogs). %package devel Summary: reSIProcate development files Group: Development/Libraries/C and C++ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Resiprocate SIP Stack development files. %package repro Summary: SIP proxy Group: Productivity/Telephony/SIP/Servers Requires(pre): pwdutils %if %suse_version > 1140 %{?systemd_requires} %else Requires(pre): %insserv_prereq %fillup_prereq %endif %description repro repro is the SIP proxy developed as part of the reSIProcate project. It provides a high-quality, low maintenance solution for serving small and large IP telephony installations. reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. %package turn-server Summary: ICE/STUN/TURN server Group: Productivity/Telephony/SIP/Servers Requires(pre): pwdutils %if %suse_version > 1140 %{?systemd_requires} %else Requires(pre): %insserv_prereq %fillup_prereq %endif %description turn-server reTurn is the TURN server developed as part of the reSIProcate project. TURN (RFC 5766) provides a standardised solution for VoIP applications to find the most efficient way to route media streams when NAT and firewall devices may be present. reTurn provides a high-quality, low maintenance solution for serving small and large IP telephony installations. It has been used successfully with a variety of SIP and Jabber applications, including Lumicall, Jitsi, Empathy and Psi. reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. %package sipdialer Summary: Click-to-call utility Group: Productivity/Telephony/SIP/Utilities %description sipdialer sipdialer is a click-to-call application that uses the SIP REFER method to force a SIP phone (for example, the phone on your desk) to dial another number. It can be registered in GConf to handle clicks on sip:, sips: and tel: URIs in other applications and the web browser. reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. %package clicktocall Summary: Click-to-call server process Group: Productivity/Telephony/SIP/Utilities %description clicktocall Provides a simple SIP click-to-call service. reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. %package presence-server Summary: Basic SIP presence server Group: Productivity/Telephony/SIP/Servers %description presence-server Provides a simple SIP presence server. reSIProcate is a framework that aims to fully implement the SIP protocol in first class C++. It is intended for use in other applications, such as the repro SIP proxy. %prep %setup -q %patch0 -p1 %patch1 -p1 %build CXXFLAGS="%{optflags} -fno-strict-aliasing" \ %configure \ --with-c-ares \ --with-ssl \ --with-popt \ --with-freeradius \ --with-mysql \ --with-repro \ --enable-repro-plugins \ --enable-dtls \ --with-apps \ --enable-ipv6 make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} %if 0%{?suse_version} > 1140 install -p -D -m644 repro/pkg/fedora/repro.service %{buildroot}%{_unitdir}/repro.service install -p -D -m644 reTurn/pkg/fedora/resiprocate-turn-server.service %{buildroot}%{_unitdir}/resiprocate-turn-server.service %if %suse_version >= 1310 ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcrepro ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcresiprocate-turn-server %else ln -s /sbin/service %{buildroot}%{_sbindir}/rcrepro ln -s /sbin/service %{buildroot}%{_sbindir}/rcresiprocate-turn-server %endif %else install -p -D -m755 %{S:1} %{buildroot}%{_initddir}/repro install -p -D -m755 %{S:2} %{buildroot}%{_initddir}/resiprocate-turn-server ln -sf %{_initddir}/repro %{buildroot}%{_sbindir}/rcrepro ln -sf %{_initddir}/resiprocate-turn-server %{buildroot}%{_sbindir}/rcresiprocate-turn-server %endif install -m 0755 -d %{buildroot}%{_sysconfdir}/repro install -p -D -m644 repro/repro.config %{buildroot}%{_sysconfdir}/repro/repro.config sed -i -e 's!^DatabasePath = ./$!DatabasePath = %{_localstatedir}/lib/repro!' %{buildroot}%{_sysconfdir}/repro/repro.config install -p -D -m644 reTurn/reTurnServer.config %{buildroot}%{_sysconfdir}/reTurnServer.config install -p -m644 %{S:3} %{buildroot}%{_sysconfdir}/ install -m 0755 -d %{buildroot}%{_localstatedir}/lib/repro find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.a" -delete -print mkdir %{buildroot}%{_sysconfdir}/repro/ssl touch %{buildroot}%{_sysconfdir}/repro/users.txt %pre repro getent group repro >/dev/null || groupadd -r repro getent passwd repro >/dev/null || \ useradd -r -g repro -d %{_localstatedir}/lib/repro -s /sbin/nologin \ -c "repro SIP proxy" repro %if %suse_version > 1140 %service_add_pre repro.service %endif %pre turn-server getent group return >/dev/null || groupadd -r return getent passwd return >/dev/null || \ useradd -r -g return -d / -s /sbin/nologin \ -c "reTurn TURN server" return %if %suse_version > 1140 %service_add_pre resiprocate-turn-server.service %endif %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post repro %if %suse_version > 1140 %service_add_post repro.service %else %fillup_and_insserv repro %endif %post turn-server %if %suse_version > 1140 %service_add_post resiprocate-turn-server.service %else %fillup_and_insserv resiprocate-turn-server %endif %preun repro %if %suse_version > 1140 %service_del_preun repro.service %else %stop_on_removal repro %endif %preun turn-server %if %suse_version > 1140 %service_del_preun resiprocate-turn-server.service %else %stop_on_removal resiprocate-turn-server %endif %postun repro %if %suse_version > 1140 %service_del_postun repro.service %else %restart_on_update repro %insserv_cleanup %endif %postun turn-server %if %suse_version > 1140 %service_del_postun resiprocate-turn-server.service %else %restart_on_update resiprocate-turn-server %insserv_cleanup %endif %files libs %defattr(-,root,root) %doc COPYING %{_libdir}/libdum-*.so %{_libdir}/librepro-*.so %{_libdir}/libresip-*.so %{_libdir}/libreTurnClient-*.so %{_libdir}/librutil-*.so %{_libdir}/libsipdial-*.so %files devel %defattr(-,root,root) %_includedir/* %{_libdir}/libdum.so %{_libdir}/librepro.so %{_libdir}/libresip.so %{_libdir}/libreTurnClient.so %{_libdir}/librutil.so %{_libdir}/libsipdial.so %files repro %defattr(-,root,root) %attr(0755,repro,repro) %dir %{_localstatedir}/lib/repro %dir %{_sysconfdir}/repro %dir %{_sysconfdir}/repro/ssl %config(noreplace) %{_sysconfdir}/repro/repro.config %config(noreplace) %{_sysconfdir}/repro/users.txt %{_sbindir}/repro %{_sbindir}/reprocmd %{_sbindir}/queuetostream %{_mandir}/man8/repro*.8* %dir %{_libdir}/resiprocate %dir %{_libdir}/resiprocate/repro %dir %{_libdir}/resiprocate/repro/plugins %{_libdir}/resiprocate/repro/plugins/*.so %{_sbindir}/rcrepro %if 0%{?suse_version} > 1140 %{_unitdir}/repro.service %else %{_initddir}/repro %endif %files turn-server %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/reTurnServer.config %config(noreplace) %{_sysconfdir}/reTurnServer-users.txt %{_sbindir}/rcresiprocate-turn-server %if 0%{?suse_version} > 1140 %{_unitdir}/resiprocate-turn-server.service %else %{_initddir}/resiprocate-turn-server %endif %{_sbindir}/reTurnServer %{_mandir}/man8/reTurnServer.8* %files sipdialer %defattr(-,root,root) %{_bindir}/sipdialer %{_mandir}/man1/sipdialer.1* %files clicktocall %defattr(-,root,root) %{_sbindir}/clicktocall %files presence-server %defattr(-,root,root) %{_sbindir}/presSvr %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