openslp-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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: 2%{_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. * Fri Feb 13 2009 Shu KONNO <owa@bg.wakwak.com> 1.2.1-2
  119. - spec in utf-8
  120. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.1-1
  121. - initial build for Vine Linux (based on FC8 1.2.1-7)
  122. - add Japanese summary and description
  123. * Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.2.1-7
  124. - respin (buildID)
  125. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-6
  126. - fc6 respin
  127. * Wed Aug 09 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-5
  128. - fc6 respin
  129. * Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  130. - fc5: gcc/glibc respin
  131. * Mon Dec 19 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-4
  132. - make %%postun safer
  133. * Wed Nov 16 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-3
  134. - rebuild (for new openssl)
  135. - make %%postun safer
  136. * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-2
  137. - -fPIC (for x86_64)
  138. * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-1
  139. - 1.2.1
  140. - move most docs to -server
  141. - --enable-slpv2-security
  142. - --disable-dependency-tracking
  143. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.2.0
  144. - rebuild on all arches
  145. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  146. - rebuilt
  147. * Mon Jul 19 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.4
  148. - BR: flex
  149. * Fri Jul 16 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.3
  150. - BR: bison
  151. * Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.2
  152. - fix/add condrestart to init script
  153. * Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.1
  154. - 1.2.0
  155. - use -pie
  156. - don't use Requires(post,postun)
  157. * Fri Oct 24 2003 Rex Dieter <rexdieter af sf.net> 0:1.0.11-0.fdr.7
  158. - fix for Fedora Core
  159. - fix description (main package does *not* include daemon and header files).
  160. * Fri May 30 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.6
  161. - -server: Requires(preun,postun): /sbin/service
  162. - add a few more %%doc files to base pkg.
  163. - initscript: add (real) 'reload' action.
  164. - initscript: use $prog instead of hardcoded slpd.
  165. * Fri May 16 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.5
  166. - -server: fix %postun on uninstall
  167. * Thu May 2 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.4
  168. - *really* do %%config(noreplace) slp.conf
  169. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.3
  170. - capitalize Summary's.
  171. - %%config(noreplace) slp.conf
  172. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.2
  173. - docs: remove CVS files, include rfc, move ProgrammersGuide to -devel.
  174. - improve sub-pkg descriptions.
  175. - improve server %%preun,%%postun scripts: condrestart on upgrade,
  176. suppress output of server shutdown,restarts.
  177. * Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.1
  178. - specfile cleanups for fedora packaging.
  179. * Tue Apr 29 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.0
  180. - 1.0.11 release.
  181. - fedorize things
  182. * Mon Feb 03 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.10-1.0
  183. - sanitize specfile
  184. - -devel,-server subpkgs.