openslp-vl.spec 6.6 KB

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