From 6b34a9647aaf507a97d0ed06a4585fbb7fc99c8e Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Aug 06 2015 15:20:22 +0000 Subject: Update to 1.9.9 --- diff --git a/.gitignore b/.gitignore index 2f4e159..9a117e8 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ sipwitch-0.9.0.tar.gz /sipwitch-1.8.7.tar.gz /sipwitch-1.9.0.tar.gz /sipwitch-1.9.1.tar.gz +/v1.9.9.tar.gz diff --git a/sipwitch.spec b/sipwitch.spec index 9fc3e6f..9458d60 100644 --- a/sipwitch.spec +++ b/sipwitch.spec @@ -10,54 +10,27 @@ %global _hardened_build 1 -Name: sipwitch -Summary: A secure peer-to-peer VoIP server for the SIP protocol -Version: 1.9.1 -Release: 7%{?dist} -License: GPLv3+ -URL: http://www.gnu.org/software/sipwitch -Group: Applications/Communications -Source: http://dev.gnutelephony.org/dist/tarballs/sipwitch-%{version}.tar.gz +Name: sipwitch +Summary: A secure peer-to-peer VoIP server for the SIP protocol +Version: 1.9.9 +Release: 1%{?dist} + +License: GPLv3+ +URL: http://www.gnu.org/software/sipwitch +Source: https://github.com/dyfet/sipwitch/archive/v%{version}.tar.gz + BuildRequires: ucommon-devel >= 6.0.0 BuildRequires: libeXosip2-devel >= 3.0.0 BuildRequires: avahi-devel BuildRequires: openssl-devel BuildRequires: cmake + Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Requires: %{name}-runtime%{?_isa} = %{version}-%{release} - -%package runtime -Group: Development/Libraries -Summary: Runtime library support for sipwitch - -%package devel -Requires: ucommon-devel%{?_isa} >= 6.0.0 -Requires: %{name}-runtime%{?_isa} = %{version}-%{release} -Group: Development/Libraries -Summary: Headers for building sipwitch plugins - -%package cgi -Requires: %{name}%{?_isa} = %{version}-%{release} -Group: Applications/CGI -Summary: cgi web interface to control sipwitch server -%package plugin-zeroconf -Requires: %{name}%{?_isa} = %{version}-%{release} -Summary: Zeroconf plugin for sipwitch - -%package plugin-scripting -Requires: %{name}%{?_isa} = %{version}-%{release} -Summary: Scripting plugin for sipwitch +Requires: %{name}-runtime%{?_isa} = %{version}-%{release} -%package plugin-forward -Requires: %{name}%{?_isa} = %{version}-%{release} -Summary: Forward registration and routing plugin - -%package plugin-subscriber -Requires: %{name}%{?_isa} = %{version}-%{release} -Summary: Subscriber gateway plugin for sipwitch %description GNU SIP Witch is a secure peer-to-peer VoIP server. Calls can be made even @@ -67,6 +40,22 @@ free software alternative to Skype. SIP Witch can also be used as a stand- alone SIP-based office telephone server, or to create secure VoIP networks for an existing IP-PBX such as Asterisk, FreeSWITCH, or Yate. + +%package runtime +Summary: Runtime library support for sipwitch + +%description runtime +Runtime library required for sipwitch development and for using the server. +This is available as a separate package so that one building sipwitch plugins +with the required devel package does not also require installing a server +image. + + +%package devel +Summary: Headers for building sipwitch plugins +Requires: ucommon-devel%{?_isa} >= 6.0.0 +Requires: %{name}-runtime%{?_isa} = %{version}-%{release} + %description devel Header files for building plugins that interface with sipwitch. This might be used for externally creating sipwitch modules, though normally modules are @@ -74,11 +63,10 @@ found or added to the core distribution directly. This may also be for developing external application services which need to communicate with a running sipwitch daemon instance. -%description runtime -Runtime library required for sipwitch development and for using the server. -This is available as a separate package so that one building sipwitch plugins -with the required devel package does not also require installing a server -image. + +%package cgi +Summary: cgi web interface to control sipwitch server +Requires: %{name}%{?_isa} = %{version}-%{release} %description cgi This package offers a means to perform remote management of a sipwitch @@ -86,19 +74,39 @@ server using the cgi interface of an installed web server. The primary service this offers is xmlrpc access to sipwitch shared memory and control interfaces in a manner analgolous to the sipwitch command utility. + +%package plugin-zeroconf +Summary: Zeroconf plugin for sipwitch +Requires: %{name}%{?_isa} = %{version}-%{release} + %description plugin-zeroconf This plugin activates zeroconf network services for sipwitch and publishes sipwitch as a sip server. + +%package plugin-scripting +Summary: Scripting plugin for sipwitch +Requires: %{name}%{?_isa} = %{version}-%{release} + %description plugin-scripting This plugin enables shell scripting in connection with specific sipwitch events. + +%package plugin-forward +Summary: Forward registration and routing plugin +Requires: %{name}%{?_isa} = %{version}-%{release} + %description plugin-forward This plugin enables forwarding of registration requests and destination routes for unknown numbers so that one can create a "secure" peer to peer media domain managed by sipwitch and still access an "insecure" b2bua based ip-pbx. + +%package plugin-subscriber +Summary: Subscriber gateway plugin for sipwitch +Requires: %{name}%{?_isa} = %{version}-%{release} + %description plugin-subscriber This module is meant to eventually offer generic support for premise routers when used by providers to offer sip/voip service to a subscriber. @@ -109,36 +117,47 @@ this would be deployed in an isp supplied premise router to enable a local user to subscribe a series of local softphone/sip devices with a remote voip service provider. + %prep %setup -q %build %cmake \ - -DSYSCONFDIR=%{_sysconfdir} \ - -DINSTALL_MANDIR=%{_mandir} \ - -DINSTALL_INCLUDEDIR=%{_includedir} \ - -DINSTALL_BINDIR=%{_bindir} \ - -DINSTALL_SBINDIR=%{_sbindir} \ - -DINSTALL_LIBEXEC=%{_libexecdir} \ - -DINSTALL_LIBDIR=%{_libdir} \ - -DINSTALL_CGIBIN=/var/www/cgi-bin \ + -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \ + -DCMAKE_INSTALL_CGIBINDIR=/var/www/cgi-bin \ -DSYSTEM_CONFIG:BOOL=TRUE \ . +make %{?_smp_mflags} -%{__make} %{?_smp_mflags} %install -%{__make} DESTDIR=%{buildroot} INSTALL="install -p" install +%make_install + + +%post +%systemd_post sipwitch.service + +%preun +%systemd_preun sipwitch.service + +%postun +%systemd_postun_with_restart sipwitch.service + +%post runtime -p /sbin/ldconfig + +%postun runtime -p /sbin/ldconfig + %files -%doc README COPYING NEWS FEATURES SUPPORT TODO NOTES AUTHORS MODULES ChangeLog -%{_mandir}/man1/sipwitch.1* +%license COPYING +%doc README NEWS FEATURES SUPPORT TODO NOTES AUTHORS MODULES ChangeLog +%{_mandir}/man1/sipcontrol.1* %{_mandir}/man1/sippasswd.1* %{_mandir}/man1/sipquery.1* %{_mandir}/man8/sipw.8* %{_sbindir}/sipw +%{_bindir}/sipcontrol %{_bindir}/sipquery -%{_bindir}/sipwitch %attr(04755,root,root) %{_bindir}/sippasswd %dir %{_libdir}/sipwitch %config(noreplace) %{_sysconfdir}/logrotate.d/sipwitch @@ -149,6 +168,11 @@ remote voip service provider. %attr(0664,root,root) %config(noreplace) %{_sysconfdir}/default/sipwitch %attr(0664,root,root) %config(noreplace) %{_sysconfdir}/sipwitch.d/*.xml* +%files devel +%{_libdir}/*.so +%{_includedir}/sipwitch/ +%{_libdir}/pkgconfig/*.pc + %files cgi %{_mandir}/man8/sipwitch.cgi.8* /var/www/cgi-bin/sipwitch.cgi @@ -168,27 +192,11 @@ remote voip service provider. %files plugin-subscriber %{_libdir}/sipwitch/subscriber.so -%files devel -%{_libdir}/*.so -%{_includedir}/sipwitch/ -%{_libdir}/pkgconfig/*.pc - -%post runtime -/sbin/ldconfig - -%postun runtime -/sbin/ldconfig - -%post -%systemd_post sipwitch.service - -%preun -%systemd_preun sipwitch.service - -%postun -%systemd_postun_with_restart sipwitch.service %changelog +* Wed Aug 05 2015 Sandro Mani - 1.9.9-1 +- Update to 1.9.9 + * Fri Jun 19 2015 Fedora Release Engineering - 1.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 94c00c7..3d47418 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d36765431cb435db8e2f46e2d2a3993a sipwitch-1.9.1.tar.gz +c9083ae9fabcc4f963d40b3d3c39b840 v1.9.9.tar.gz