sam2p.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## sam2p.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.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: sam2p
  27. Summary: Bitmap Image to PDF/PS Conversion
  28. URL: http://www.inf.bme.hu/~pts/sam2p/
  29. Vendor: Peter Szabo
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Graphics
  33. License: GPL
  34. Version: 0.41
  35. Release: 20030103
  36. # list of sources
  37. Source0: http://www.inf.bme.hu/~pts/sam2p-%{version}.tar.gz
  38. Patch0: sam2p.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20030103, ghostscript, jpeg, gzip, infozip, make, gcc, perl
  43. PreReq: OpenPKG, openpkg >= 20030103, ghostscript, jpeg, gzip, infozip
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. sam2p is a UNIX command line utility written in ANSI C++ that
  48. converts many raster (bitmap) image formats into Adobe PostScript
  49. or PDF files. The images are not vectorized. sam2p gives full
  50. control to the user to specify standards-compliance, compression,
  51. and bit depths. It is common that sam2p can compress an image down
  52. to an 50kB Level1 PostScript file without quality loss, while other
  53. popular converters produce multi-megabyte output. sam2p provides
  54. some Level3 compression filters even on Level1 devices.
  55. %prep
  56. %setup -q
  57. %patch -p0
  58. %build
  59. CC="%{l_cc}" \
  60. CXX="%{l_cxx}" \
  61. CFLAGS="%{l_cflags -O}" \
  62. CXXFLAGS="%{l_cxxflags -O}" \
  63. CPPFLAGS="%{l_cppflags}" \
  64. LDFLAGS="%{l_ldflags}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --disable-debug \
  68. --enable-lzw \
  69. --enable-zip \
  70. --enable-fax \
  71. --enable-gif
  72. %{l_make} %{l_mflags -O}
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_shtool} mkdir -f -p -m 755 \
  76. $RPM_BUILD_ROOT%{l_prefix}/bin
  77. %{l_shtool} install -c -s -m 755 \
  78. sam2p $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