l2.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ##
  2. ## l2.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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 [PLUS]
  32. Group: System
  33. License: MIT-style
  34. Version: 0.9.3
  35. Release: 20030915
  36. # list of sources
  37. Source0: ftp://ftp.ossp.org/pkg/lib/l2/l2-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, make
  42. PreReq: OpenPKG, openpkg >= 20020206
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. OSSP l2 is a C library providing a very flexible and sophisticated
  47. Unix logging facility. It is based on the model of arbitrary number
  48. of channels, stacked together in a top-down data flow tree structure
  49. with filtering channels in internal nodes and output channels on the
  50. leave nodes.
  51. Channel trees can be either constructed manually through lower-level
  52. API functions or all at once with a single API function controlled by
  53. a compact syntactical description of the channel tree. For generating
  54. log messages a printf-style formatting engine is provided which can be
  55. extended through callback functions. The data flow inside the channel
  56. tree is controlled by (eight fixed and nine custom) logging message
  57. severity levels which are assigned to each individual channel.
  58. Channels are implemented by channel handlers which can be even
  59. customer supplied for creating own channels which seamlessly integrate
  60. into the framework. For convinience reasons, OSSP l2 already ships
  61. with pre-implemented filtering (noop, filter, prefix, buffer) and
  62. output (null, fd, file, pipe, socket, syslog, smtp) channels which
  63. already cover mostly all use cases of logging.
  64. %prep
  65. %setup -q
  66. %build
  67. CC="%{l_cc}" \
  68. CFLAGS="%{l_cflags -O}" \
  69. ./configure \
  70. --prefix=%{l_prefix} \
  71. --disable-shared
  72. %{l_make} %{l_mflags}
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  77. %files -f files
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT