]> git.pld-linux.org Git - packages/openslp.git/blob - openslp.spec
- updated to 1.0.1,
[packages/openslp.git] / openslp.spec
1 Summary:        OpenSLP implementation of Service Location Protocol V2
2 Name:           openslp
3 Version:        1.0.1
4 Release:        1
5 License:        LGPL
6 Group:          Networking/Daemons
7 Group(de):      Netzwerkwesen/Server
8 Group(pl):      Sieciowe/Serwery
9 Source0:        http://prdownloads.sourceforge.net/openslp/%{name}-%{version}.tar.gz
10 Source1:        %{name}.init
11 Patch0:         %{name}-ac25x.patch
12 URL:            http://www.openslp.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 Prereq:         rc-scripts
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _sysconfdir             /etc/openslp
20
21 %description
22 Service Location Protocol is an IETF standards track protocol that
23 provides a framework to allow networking applications to discover the
24 existence, location, and configuration of networked services in
25 enterprise networks.
26
27 OpenSLP is an open source implementation of the SLPv2 protocol as
28 defined by RFC 2608 and RFC 2614. This package include the daemon,
29 libraries, header files and documentation
30
31 %package devel
32 Summary:        OpenSLP develpment files
33 Group:          Development/Libraries
34 Group(de):      Entwicklung/Libraries
35 Group(es):      Desarrollo/Bibliotecas
36 Group(fr):      Development/Librairies
37 Group(pl):      Programowanie/Biblioteki
38 Group(pt_BR):   Desenvolvimento/Bibliotecas
39 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
40 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
41 Requires:       %{name} = %{version}
42
43 %description devel
44 OpenSLP develpment files.
45
46 %package static
47 Summary:        OpenSLP staic libraries
48 Group:          Development/Libraries
49 Group(de):      Entwicklung/Libraries
50 Group(es):      Desarrollo/Bibliotecas
51 Group(fr):      Development/Librairies
52 Group(pl):      Programowanie/Biblioteki
53 Group(pt_BR):   Desenvolvimento/Bibliotecas
54 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
55 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
56 Requires:       %{name}-devel = %{version}
57
58 %description static
59 OpenSLP staic libraries.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64
65 %build
66 rm -f missing
67 libtoolize --copy --force
68 aclocal
69 autoconf
70 automake -a -c
71 %configure \
72         --enable-slpv1 \
73         --enable-slpv2-security \
74         --disable-predicates
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/slpd
86
87 gzip -9nf AUTHORS NEWS README doc/rfc/*txt
88
89 %post
90 /sbin/ldconfig
91 /sbin/chkconfig --add slpd
92
93 if [ -r /var/lock/subsys/slpd ]; then
94         /etc/rc.d/init.d/slpd restart >&2
95 else
96         echo "Run \"/etc/rc.d/init.d/slpd start\" to start OpenSLP server."
97 fi
98
99
100 %preun
101 if [ "$1" = "0" ]; then
102         if [ -f /var/lock/subsys/slpd ]; then
103                 /etc/rc.d/init.d/slpd stop
104         fi
105         /sbin/chkconfig --del slpd
106 fi
107
108 %postun -p /sbin/ldconfig
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %files
114 %defattr(644,root,root,755)
115 %dir %{_sysconfdir}
116 %config %{_sysconfdir}/slp.conf
117 %config %{_sysconfdir}/slp.reg
118 %config %{_sysconfdir}/slp.spi
119 %attr(754,root,root) /etc/rc.d/init.d/slpd
120 %attr(755,root,root) %{_sbindir}/slpd
121 %attr(755,root,root) %{_bindir}/*
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %doc *.gz doc/*
127 %{_includedir}/*
128 %attr(755,root,root) %{_libdir}/lib*.so
129 %attr(755,root,root) %{_libdir}/lib*.la
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/lib*.a
This page took 0.090525 seconds and 4 git commands to generate.