val.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ##
  2. ## val.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 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: val
  26. Summary: Value Access Library
  27. URL: http://www.ossp.org/pkg/lib/val/
  28. Vendor: The OSSP Project
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: PLUS
  32. Group: System
  33. License: MIT/X11-style
  34. Version: 0.9.3
  35. Release: 20050610
  36. # package options
  37. %option with_ex no
  38. # list of sources
  39. Source0: ftp://ftp.ossp.org/pkg/lib/val/val-%{version}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. %if "%{with_ex}" == "yes"
  46. BuildPreReq: ex
  47. PreReq: ex
  48. %endif
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. OSSP val is a flexible name to value mapping library for ISO-C
  53. variables. It allows one to access ISO-C variables through name
  54. strings, although the ISO-C language does neither provide such a
  55. dedicated facility nor an evaluation construct (which could be used
  56. to implement such a facility easily).
  57. In general, this is used for accessing ISO-C variables without
  58. having to know the actual symbol/address. The typical use cases are
  59. in combination with flexible configuration parsing and supporting
  60. loosly-coupled DSO-based module architectures.
  61. %track
  62. prog val = {
  63. version = %{version}
  64. url = ftp://ftp.ossp.org/pkg/lib/val/
  65. regex = val-(__VER__)\.tar\.gz
  66. }
  67. %prep
  68. %setup -q
  69. %{l_shtool} subst \
  70. -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
  71. configure
  72. %build
  73. CC="%{l_cc}" \
  74. CFLAGS="%{l_cflags -O}" \
  75. ./configure \
  76. --prefix=%{l_prefix} \
  77. %if "%{with_ex}" == "yes"
  78. --with-ex=%{l_prefix} \
  79. %endif
  80. --disable-shared
  81. %{l_make} %{l_mflags -O}
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  85. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT