]> git.pld-linux.org Git - packages/partysip.git/blob - partysip.spec
- partially added init scripts (useless temporary...)
[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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Partysip is a modular SIP proxy server. It can be used as a registrar
23 and a stateless and stateful SIP server. New capabilities, such as
24 instant messaging and answering machines, can be added by plugins.
25
26 %description -l pl
27 partysip jest modularnym serwerem proxy SIP. Mo¿e byæ u¿ywany jako
28 serwer rejestr oraz jako bezstanowy lub obs³uguj±cy stany serwer SIP.
29 Nowe mo¿liwo¶ci, takie jak przekazywanie wiadomo¶ci i automaty
30 odpowiadaj±ce, mog± byæ dodane przez wtyczki.
31
32 %package devel
33 Summary:        Header files for a modular SIP proxy server
34 Summary(pl):    Pliki nag³ówkowe dla modularnego serwera proxy SIP
35 Group:          Developement
36 Requires:       %{name} = %{version}
37
38 %description devel
39 Header files for partysip.
40
41 %description -l pl devel
42 Pliki nag³ówkowe dla partysip.
43
44 %package static
45 Summary:        Static libraries for a modular SIP proxy server
46 Summary(pl):    Statyczne biblioteki dla modularnego serwera proxy SIP
47 Group:          Developement
48 Requires:       %{name} = %{version}
49
50 %description static
51 Static libraries for a modular SIP proxy server partysip.
52
53 %description -l pl static
54 Statyczne biblioteki dla modularnego serwera proxy SIP partysip.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 %patch1 -p1
60
61 %build
62 rm -f missing
63 #%{__aclocal}
64 #%{__autoconf}
65 %{__automake}
66 %configure \
67         --sysconfdir=/etc/partysip \
68         --disable-debug \
69         --disable-trace
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
76
77 %{__make} install DESTDIR=$RPM_BUILD_ROOT
78
79 # temporary useless
80 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
81 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 /sbin/ldconfig
88 #/sbin/chkconfig --add %{name}
89 if [ -f /var/lock/subsys/%{name} ]; then
90         /etc/rc.d/init.d/%{name} restart 1>&2
91 else
92         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start partysip."
93 fi
94
95 %preun
96 #/sbin/chkconfig --del %{name}
97 if [ "$1" = "0" ]; then
98         if [ -f /var/lock/subsys/%{name} ]; then
99                 /etc/rc.d/init.d/%{name} stop 1>&2
100         fi
101 fi
102
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS NEWS README TODO
108 %config(noreplace) %{_sysconfdir}/partysip/*.conf
109 %attr(755,root,root) %{_libdir}/*.so
110 %attr(644,root,root) %{_libdir}/*.la
111 %attr(755,root,root) %{_libdir}/partysip/*.so
112 %attr(644,root,root) %{_libdir}/partysip/*.la
113 %attr(755,root,root) %{_bindir}/partysip
114 %config(noreplace) /etc/sysconfig/%{name}
115 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/partysip-config
120 %{_includedir}/partysip/*.h
121 %{_includedir}/ppl/*.h
122
123 %files static
124 %defattr(644,root,root,755)
125 %attr(644,root,root) %{_libdir}/*.a
126 %attr(644,root,root) %{_libdir}/partysip/*.a
This page took 0.067087 seconds and 4 git commands to generate.