lzma.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## lzma.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 version
  25. %define V_dist 452
  26. %define V_opkg 4.52
  27. # package information
  28. Name: lzma
  29. Summary: Lempel-Ziv-Markov Algorithm (LZMA) Compression
  30. URL: http://www.7-zip.org/
  31. Vendor: Igor Pavlov
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: Compression
  36. License: LGPL
  37. Version: %{V_opkg}
  38. Release: 20070803
  39. # list of sources
  40. Source0: http://switch.dl.sourceforge.net/sevenzip/7z%{V_dist}.tar.bz2
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, gcc::with_cxx = yes
  45. PreReq: OpenPKG, openpkg >= 20060823
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Simple command line implementation of LZMA compression algorithm.
  50. This tool uses raw LZMA format as opposed to 7z container format,
  51. which uses LZMA as the default compression algorithm, but has
  52. many additional features and a header incompatible to that of raw
  53. LZMA streams. If you need to create highly-compatible archives,
  54. you probably want to use p7zip(1). lzma(1) is taken from the LZMA
  55. SDK. Compression ratio is about 25-30% better than bzip2(1) and
  56. decompression speed is about two times faster. The downside is
  57. higher CPU and RAM requirements for compression.
  58. %track
  59. prog lzma = {
  60. version = %{V_dist}
  61. url = http://prdownloads.sourceforge.net/sevenzip/
  62. regex = 7z(__VER__)\.tar\.bz2
  63. }
  64. %prep
  65. %setup -q -c
  66. %build
  67. ( cd CPP/7zip/Compress/LZMA_Alone
  68. %{l_make} %{l_mflags} -f makefile.gcc \
  69. CXX="%{l_cxx} %{l_cxxflags -O} -D_LZMA_SYSTEM_SIZE_T" \
  70. CXX_C="%{l_cc} %{l_cflags -O} -D_LZMA_SYSTEM_SIZE_T"
  71. ) || exit $?
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. %{l_shtool} mkdir -f -p -m 755 \
  75. $RPM_BUILD_ROOT%{l_prefix}/bin
  76. %{l_shtool} install -c -s -m 755 \
  77. CPP/7zip/Compress/LZMA_Alone/lzma \
  78. $RPM_BUILD_ROOT%{l_prefix}/bin/
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT