]> git.pld-linux.org Git - packages/partysip.git/blob - partysip.spec
d35149dbe1434472727a1ca0f7d86f4e7f57582a
[packages/partysip.git] / partysip.spec
1 # TODO:
2 # - separate plugin/libs packages
3 Summary:        A modular SIP proxy server
4 Summary(pl):    Modularny serwer proxy SIP
5 Name:           partysip
6 Version:        0.6.0
7 Release:        1
8 License:        LGPL
9 Group:          Networking/Daemons
10 Source0:        http://savannah.gnu.org/download/partysip/%{name}-%{version}.tar.gz
11 # Source0-md5:  55a0bbf61df281393a093513e9a44808
12 Source1:        %{name}.init
13 Source2:        %{name}.sysconfig
14 Patch0:         %{name}-DESTDIR_fix.patch
15 URL:            http://www.partysip.org/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libosip-devel >= 0.8.9
19 BuildRequires:  libtool
20 Requires(post): /sbin/ldconfig
21 #Requires(post,preun):  /sbin/chkconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Partysip is a modular SIP proxy server. It can be used as a registrar
26 and a stateless and stateful SIP server. New capabilities, such as
27 instant messaging and answering machines, can be added by plugins.
28
29 %description -l pl
30 partysip jest modularnym serwerem proxy SIP. Mo¿e byæ u¿ywany jako
31 serwer rejestr oraz jako bezstanowy lub obs³uguj±cy stany serwer SIP.
32 Nowe mo¿liwo¶ci, takie jak przekazywanie wiadomo¶ci i automaty
33 odpowiadaj±ce, mog± byæ dodane przez wtyczki.
34
35 %package devel
36 Summary:        Header files for a modular SIP proxy server
37 Summary(pl):    Pliki nag³ówkowe dla modularnego serwera proxy SIP
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}
40
41 %description devel
42 Header files for partysip.
43
44 %description devel -l pl
45 Pliki nag³ówkowe dla partysip.
46
47 %package static
48 Summary:        Static libraries for a modular SIP proxy server
49 Summary(pl):    Statyczne biblioteki dla modularnego serwera proxy SIP
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}
52
53 %description static
54 Static libraries for a modular SIP proxy server partysip.
55
56 %description static -l pl
57 Statyczne biblioteki dla modularnego serwera proxy SIP partysip.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62
63 %build
64 rm -f missing
65 %{__libtoolize}
66 %{__aclocal} -I scripts
67 %{__autoconf}
68 %{__automake}
69 %configure \
70         --disable-debug \
71         --disable-trace
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 # temporary useless
83 #install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
85
86 rm -f $RPM_BUILD_ROOT%{_libdir}/partysip/*.a
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 /sbin/ldconfig
93 #/sbin/chkconfig --add %{name}
94 if [ -f /var/lock/subsys/%{name} ]; then
95         /etc/rc.d/init.d/%{name} restart 1>&2
96 else
97         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start partysip."
98 fi
99
100 %preun
101 #/sbin/chkconfig --del %{name}
102 if [ "$1" = "0" ]; then
103         if [ -f /var/lock/subsys/%{name} ]; then
104                 /etc/rc.d/init.d/%{name} stop 1>&2
105         fi
106 fi
107
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS NEWS README TODO
113 %dir %{_sysconfdir}/partysip
114 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/partysip/*.conf
115 %attr(755,root,root) %{_bindir}/partysip
116 %attr(755,root,root) %{_libdir}/libppl.so.*.*.*
117 %dir %{_libdir}/partysip
118 %attr(755,root,root) %{_libdir}/partysip/*.so
119 # needed or not?
120 %{_libdir}/partysip/*.la
121 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
122 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/partysip-config
127 %attr(755,root,root) %{_libdir}/libppl.so
128 %{_libdir}/libppl.la
129 %{_includedir}/partysip
130 %{_includedir}/ppl
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/*.a
This page took 0.047358 seconds and 2 git commands to generate.