2 # - separate plugin/libs packages
3 Summary: A modular SIP proxy server
4 Summary(pl): Modularny serwer proxy SIP
9 Group: Networking/Daemons
10 Source0: http://savannah.gnu.org/download/partysip/%{name}-%{version}.tar.gz
12 Source2: %{name}.sysconfig
13 Patch0: %{name}-DESTDIR_fix.patch
14 Patch1: %{name}-config_location.patch
15 URL: http://www.partysip.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libosip-devel >= 0.8.9
19 Requires(post): /sbin/ldconfig
20 #Requires(post,preun): /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Partysip is a modular SIP proxy server. It can be used as a registrar
25 and a stateless and stateful SIP server. New capabilities, such as
26 instant messaging and answering machines, can be added by plugins.
29 partysip jest modularnym serwerem proxy SIP. Mo¿e byæ u¿ywany jako
30 serwer rejestr oraz jako bezstanowy lub obs³uguj±cy stany serwer SIP.
31 Nowe mo¿liwo¶ci, takie jak przekazywanie wiadomo¶ci i automaty
32 odpowiadaj±ce, mog± byæ dodane przez wtyczki.
35 Summary: Header files for a modular SIP proxy server
36 Summary(pl): Pliki nag³ówkowe dla modularnego serwera proxy SIP
37 Group: Development/Libraries
38 Requires: %{name} = %{version}
41 Header files for partysip.
43 %description devel -l pl
44 Pliki nag³ówkowe dla partysip.
47 Summary: Static libraries for a modular SIP proxy server
48 Summary(pl): Statyczne biblioteki dla modularnego serwera proxy SIP
49 Group: Development/Libraries
50 Requires: %{name} = %{version}
53 Static libraries for a modular SIP proxy server partysip.
55 %description static -l pl
56 Statyczne biblioteki dla modularnego serwera proxy SIP partysip.
65 %{__aclocal} -I scripts
69 --sysconfdir=/etc/partysip \
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
79 %{__make} install DESTDIR=$RPM_BUILD_ROOT
82 #install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
83 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
86 rm -rf $RPM_BUILD_ROOT
90 #/sbin/chkconfig --add %{name}
91 if [ -f /var/lock/subsys/%{name} ]; then
92 /etc/rc.d/init.d/%{name} restart 1>&2
94 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start partysip."
98 #/sbin/chkconfig --del %{name}
99 if [ "$1" = "0" ]; then
100 if [ -f /var/lock/subsys/%{name} ]; then
101 /etc/rc.d/init.d/%{name} stop 1>&2
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
109 %doc AUTHORS NEWS README TODO
110 %dir %{_sysconfdir}/partysip
111 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/partysip/*.conf
112 %attr(755,root,root) %{_bindir}/partysip
113 %attr(755,root,root) %{_libdir}/libppl-*.so
114 %dir %{_libdir}/partysip
115 %attr(755,root,root) %{_libdir}/partysip/*.so
116 %attr(644,root,root) %{_libdir}/partysip/*.la
117 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
118 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/partysip-config
123 %attr(755,root,root) %{_libdir}/libppl.so
125 %{_includedir}/partysip
129 %defattr(644,root,root,755)
130 %attr(644,root,root) %{_libdir}/*.a
131 %attr(644,root,root) %{_libdir}/partysip/*.a