openslp-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. Summary: Open implementation of Service Location Protocol V2
  2. Summary(ja): SLP (Service Location Protocol) V2 のオープンな実装
  3. Name: openslp
  4. Version: 1.2.1
  5. Release: 3%{_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://sourceforge.net/projects/openslp/
  9. Source: http://dl.sourceforge.net/sourceforge/openslp/openslp-1.2.1.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. Source1: slpd.init
  12. Patch1: openslp-1.2.1-optflags.patch
  13. BuildRequires: automake
  14. BuildRequires: libtool
  15. BuildRequires: bison
  16. BuildRequires: flex
  17. BuildRequires: openssl-devel
  18. %description
  19. Service Location Protocol is an IETF standards track protocol that
  20. provides a framework to allow networking applications to discover the
  21. existence, location, and configuration of networked services in
  22. enterprise networks.
  23. OpenSLP is an open source implementation of the SLPv2 protocol as defined
  24. by RFC 2608 and RFC 2614.
  25. %description -l ja
  26. SLP (Service Location Protocol) は IETF ドキュメントによって標準化された、
  27. ネットワーク上の各種サービス発見のためのプロトコルです。
  28. この OpenSLP は、RFC 2608 および RFC 2614 で規定された SLP バージョン 2
  29. のオープンソース版実装です。
  30. %package devel
  31. Summary: OpenSLP headers and libraries
  32. Summary(ja): OpenSLP ヘッダファイルとライブラリ
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description devel
  36. OpenSLP header files and libraries.
  37. %description devel -l ja
  38. OpenSLP のヘッダファイルとライブラリファイルが収録されています。
  39. %package server
  40. Summary: OpenSLP server daemon
  41. Summary(ja): OpenSLP サーバデーモン
  42. Group: System Environment/Daemons
  43. Requires: %{name} = %{version}-%{release}
  44. Requires(preun): chkconfig, /sbin/service
  45. Requires(post): chkconfig
  46. Requires(postun): /sbin/service
  47. %description server
  48. OpenSLP server daemon to dynamically register services.
  49. %description server -l ja
  50. OpenSLP サーバデーモンが収録されています。
  51. %prep
  52. %setup -q
  53. %patch1 -p1 -b .optflags
  54. # tarball goof (?), it wants to re-automake anyway, so let's do it right.
  55. libtoolize --force
  56. aclocal
  57. autoconf
  58. automake --add-missing
  59. # remove CVS leftovers...
  60. find . -name "CVS" | xargs rm -rf
  61. %build
  62. # for x86_64
  63. export CFLAGS="-fPIC $RPM_OPT_FLAGS"
  64. # for slpd
  65. export LDFLAGS="-pie"
  66. %configure \
  67. --disable-dependency-tracking \
  68. --disable-static \
  69. --enable-slpv2-security
  70. # --enable-async-api
  71. make %{?_smp_mflags}
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. make install DESTDIR=$RPM_BUILD_ROOT
  75. install -p -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/slpd
  76. # nuke unpackaged/unwanted files
  77. rm -rf $RPM_BUILD_ROOT/usr/doc
  78. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post -p /sbin/ldconfig
  82. %postun -p /sbin/ldconfig
  83. %post server
  84. /sbin/chkconfig --add slpd
  85. %preun server
  86. # on remove
  87. if [ $1 -eq 0 ]; then
  88. /sbin/service slpd stop >/dev/null 2>&1 ||:
  89. /sbin/chkconfig --del slpd
  90. fi
  91. %postun server
  92. # on upgrade
  93. if [ $1 -gt 0 ]; then
  94. /sbin/service slpd condrestart >/dev/null 2>&1 ||:
  95. fi
  96. %files
  97. %defattr(-,root,root)
  98. %doc AUTHORS COPYING FAQ NEWS README THANKS
  99. %config(noreplace) %{_sysconfdir}/slp.conf
  100. %{_bindir}/*
  101. %{_libdir}/lib*.so.*
  102. %files server
  103. %defattr(-,root,root)
  104. %doc doc/html/IntroductionToSLP
  105. %doc doc/html/UsersGuide
  106. %doc doc/html/faq*
  107. %{_sbindir}/*
  108. %config(noreplace) %{_sysconfdir}/slp.reg
  109. %config(noreplace) %{_sysconfdir}/slp.spi
  110. %config(noreplace) %{_initrddir}/slpd
  111. %files devel
  112. %defattr(-,root,root)
  113. %doc doc/html/ProgrammersGuide
  114. %doc doc/rfc
  115. %{_includedir}/*
  116. %{_libdir}/lib*.so
  117. %changelog
  118. * Thu Jan 13 2011 Shu KONNO <owa@bg.wakwak.com> 1.2.1-3
  119. - rebuilt with openssl-1.0.0c
  120. * Fri Feb 13 2009 Shu KONNO <owa@bg.wakwak.com> 1.2.1-2
  121. - spec in utf-8
  122. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.1-1
  123. - initial build for Vine Linux (based on FC8 1.2.1-7)
  124. - add Japanese summary and description
  125. * Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.2.1-7
  126. - respin (buildID)
  127. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-6
  128. - fc6 respin
  129. * Wed Aug 09 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-5
  130. - fc6 respin
  131. * Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  132. - fc5: gcc/glibc respin
  133. * Mon Dec 19 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-4
  134. - make %%postun safer
  135. * Wed Nov 16 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-3
  136. - rebuild (for new openssl)
  137. - make %%postun safer
  138. * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-2
  139. - -fPIC (for x86_64)
  140. * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-1
  141. - 1.2.1
  142. - move most docs to -server
  143. - --enable-slpv2-security
  144. - --disable-dependency-tracking
  145. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.2.0
  146. - rebuild on all arches
  147. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  148. - rebuilt
  149. * Mon Jul 19 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.4
  150. - BR: flex
  151. * Fri Jul 16 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.3
  152. - BR: bison
  153. * Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.2
  154. - fix/add condrestart to init script
  155. * Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.1
  156. - 1.2.0
  157. - use -pie
  158. - don't use Requires(post,postun)
  159. * Fri Oct 24 2003 Rex Dieter <rexdieter af sf.net> 0:1.0.11-0.fdr.7
  160. - fix for Fedora Core
  161. - fix description (main package does *not* include daemon and header files).
  162. * Fri May 30 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.6
  163. - -server: Requires(preun,postun): /sbin/service
  164. - add a few more %%doc files to base pkg.
  165. - initscript: add (real) 'reload' action.
  166. - initscript: use $prog instead of hardcoded slpd.
  167. * Fri May 16 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.5
  168. - -server: fix %postun on uninstall
  169. * Thu May 2 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.4
  170. - *really* do %%config(noreplace) slp.conf
  171. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.3
  172. - capitalize Summary's.
  173. - %%config(noreplace) slp.conf
  174. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.2
  175. - docs: remove CVS files, include rfc, move ProgrammersGuide to -devel.
  176. - improve sub-pkg descriptions.
  177. - improve server %%preun,%%postun scripts: condrestart on upgrade,
  178. suppress output of server shutdown,restarts.
  179. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.1
  180. - specfile cleanups for fedora packaging.
  181. * Tue Apr 29 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.0
  182. - 1.0.11 release.
  183. - fedorize things
  184. * Mon Feb 03 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.10-1.0
  185. - sanitize specfile
  186. - -devel,-server subpkgs.