l2.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## l2.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: l2
  26. Summary: Flexible Logging Library
  27. URL: http://www.ossp.org/pkg/lib/l2/
  28. Vendor: The OSSP Project
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: PLUS
  32. Group: Libraries
  33. License: MIT-style
  34. Version: 0.9.13
  35. Release: 20070608
  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 >= 20050615, make
  42. PreReq: OpenPKG, openpkg >= 20050615
  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 convenience 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. %track
  65. prog l2 = {
  66. version = %{version}
  67. url = ftp://ftp.ossp.org/pkg/lib/l2/
  68. regex = l2-(__VER__)\.tar\.gz
  69. }
  70. %prep
  71. %setup -q
  72. %{l_shtool} subst \
  73. -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
  74. configure
  75. %build
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. GREP="grep" \
  79. ./configure \
  80. --prefix=%{l_prefix} \
  81. --disable-shared
  82. %{l_make} %{l_mflags}
  83. %install
  84. rm -rf $RPM_BUILD_ROOT
  85. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  86. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  87. %files -f files
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT