l2.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## l2.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: l2
  27. Summary: Flexible Logging Library
  28. URL: http://www.ossp.org/pkg/lib/l2/
  29. Vendor: The OSSP Project
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: System
  34. License: MIT-style
  35. Version: 0.9.8
  36. Release: 20040422
  37. # list of sources
  38. Source0: ftp://ftp.ossp.org/pkg/lib/l2/l2-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. OSSP l2 is a C library providing a very flexible and sophisticated
  48. Unix logging facility. It is based on the model of arbitrary number
  49. of channels, stacked together in a top-down data flow tree structure
  50. with filtering channels in internal nodes and output channels on the
  51. leave nodes.
  52. Channel trees can be either constructed manually through lower-level
  53. API functions or all at once with a single API function controlled by
  54. a compact syntactical description of the channel tree. For generating
  55. log messages a printf-style formatting engine is provided which can be
  56. extended through callback functions. The data flow inside the channel
  57. tree is controlled by (eight fixed and nine custom) logging message
  58. severity levels which are assigned to each individual channel.
  59. Channels are implemented by channel handlers which can be even
  60. customer supplied for creating own channels which seamlessly integrate
  61. into the framework. For convenience reasons, OSSP l2 already ships
  62. with pre-implemented filtering (noop, filter, prefix, buffer) and
  63. output (null, fd, file, pipe, socket, syslog, smtp) channels which
  64. already cover mostly all use cases of logging.
  65. %track
  66. prog l2 = {
  67. version = %{version}
  68. url = ftp://ftp.ossp.org/pkg/lib/l2/
  69. regex = l2-(__VER__)\.tar\.gz
  70. }
  71. %prep
  72. %setup -q
  73. %build
  74. CC="%{l_cc}" \
  75. CFLAGS="%{l_cflags -O}" \
  76. ./configure \
  77. --prefix=%{l_prefix} \
  78. --disable-shared
  79. %{l_make} %{l_mflags}
  80. %install
  81. rm -rf $RPM_BUILD_ROOT
  82. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  83. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  84. %files -f files
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT