zlib.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## zlib.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: zlib
  26. Summary: Compression Library
  27. URL: http://www.zlib.net/
  28. Vendor: Jean-loup Gailly, Mark Adler
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: CORE
  32. Group: Compression
  33. License: BSD
  34. Version: 1.2.3
  35. Release: 20070505
  36. # list of sources
  37. Source0: http://www.zlib.net/zlib-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. ZLIB is designed to be a free, general-purpose, legally unencumbered
  47. - that is, not covered by any patents - lossless data-compression
  48. library for use on virtually any computer hardware and operating
  49. system. The zlib data format is itself portable across platforms.
  50. Unlike the LZW compression method used in Unix compress(1) and in
  51. the GIF image format, the compression method currently used in
  52. zlib essentially never expands the data. (LZW can double or triple
  53. the file size in extreme cases). ZLIB's memory footprint is also
  54. independent of the input data and can be reduced, if necessary, at
  55. some cost in compression.
  56. %track
  57. prog zlib = {
  58. version = %{version}
  59. url = http://www.zlib.net/
  60. regex = zlib-(__VER__)\.tar\.gz
  61. }
  62. %prep
  63. %setup -q
  64. %build
  65. cflags=""
  66. case "%{l_platform -t}" in
  67. sparc64-freebsd* ) cflags="-fPIC" ;;
  68. esac
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O} $cflags" \
  71. ./configure \
  72. --prefix=%{l_prefix}
  73. %{l_make} %{l_mflags -O}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
  77. %{l_make} %{l_mflags} install \
  78. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  79. mandir=$RPM_BUILD_ROOT%{l_prefix}/man
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT