]> git.pld-linux.org Git - packages/partysip.git/blob - partysip.spec
- missing dirs, fixed Group
[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.5.3
7 Release:        0.9
8 License:        LGPL
9 Group:          Networking/Daemons
10 Source0:        http://savannah.gnu.org/download/partysip/%{name}-%{version}.tar.gz
11 Source1:        %{name}.init
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)
22
23 %description
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.
27
28 %description -l pl
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.
33
34 %package devel
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}
39
40 %description devel
41 Header files for partysip.
42
43 %description devel -l pl
44 Pliki nag³ówkowe dla partysip.
45
46 %package static
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}
51
52 %description static
53 Static libraries for a modular SIP proxy server partysip.
54
55 %description static -l pl
56 Statyczne biblioteki dla modularnego serwera proxy SIP partysip.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 rm -f missing
65 %{__aclocal} -I scripts
66 %{__autoconf}
67 %{__automake}
68 %configure \
69         --sysconfdir=/etc/partysip \
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 DESTDIR=$RPM_BUILD_ROOT
80
81 # temporary useless
82 #install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
83 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post
89 /sbin/ldconfig
90 #/sbin/chkconfig --add %{name}
91 if [ -f /var/lock/subsys/%{name} ]; then
92         /etc/rc.d/init.d/%{name} restart 1>&2
93 else
94         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start partysip."
95 fi
96
97 %preun
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
102         fi
103 fi
104
105 %postun -p /sbin/ldconfig
106
107 %files
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}
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/partysip-config
123 %attr(755,root,root) %{_libdir}/libppl.so
124 %{_libdir}/libppl.la
125 %{_includedir}/partysip
126 %{_includedir}/ppl
127
128 %files static
129 %defattr(644,root,root,755)
130 %attr(644,root,root) %{_libdir}/*.a
131 %attr(644,root,root) %{_libdir}/partysip/*.a
This page took 0.102316 seconds and 3 git commands to generate.