scribus.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ##
  2. ## scribus.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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. # FIXME: ms: Has JUNK status, it locks up during a fcntl(2) on FreeBSD.
  26. # FIXME: ms: Missing TIFF and JPEG logic, because of faulty configure.
  27. # package version
  28. %define V_dist 1.0
  29. %define V_opkg 1.0
  30. # package information
  31. Name: scribus
  32. Summary: Desktop Publishing Application
  33. URL: http://web2.altmuehlnet.de/fschmid/
  34. Vendor: Franz Schmid
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG [JUNK]
  37. Group: Misc
  38. License: GPL
  39. Version: %{V_opkg}
  40. Release: 20030731
  41. # list of sources
  42. Source0: http://scribus.planetmirror.com/scribus-%{V_dist}.tar.gz
  43. Patch0: scribus.patch
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20030103, qt, freetype, ghostscript, png, jpeg, tiff, zlib
  48. PreReq: OpenPKG, openpkg >= 20030103, qt, freetype, ghostscript, png, jpeg, tiff, zlib
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Scribus is a Layout program similar to QuarkXPress, Adobe® PageMaker,
  53. or Adobe® InDesign. It has the ability to layout newsletters, create
  54. corporate stationery, small posters and other documents which need
  55. flexible layout and/or the ability to output to professional quality
  56. imagesetting equipment. Graphic formats which can be placed include
  57. EPS, JPEG, PNG, and XPM. Scribus also offers more advanced professional
  58. publishing features, such as CMYK color, easy PDF creation, Encapsulated
  59. Postscript import/export and creation of color separations.
  60. %prep
  61. %setup -q -n scribus-%{V_dist}
  62. %patch -p0
  63. %{l_shtool} subst \
  64. -e 's; ! -f $libstdcpp;;g' \
  65. configure
  66. %build
  67. case "%{l_target}" in
  68. *-freebsd*)
  69. LIBS="$LIBS -lX11 -lXext -lGL"
  70. ;;
  71. *-solaris* )
  72. LIBS="$LIBS -lrt"
  73. ;;
  74. esac
  75. X11INC=`%{l_prefix}/etc/rc --query x11_incdir`
  76. X11LIB=`%{l_prefix}/etc/rc --query x11_libdir`
  77. CC="%{l_cc}" \
  78. CXX="%{l_cxx}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. CXXFLAGS="%{l_cxxflags -O}" \
  81. CPPFLAGS="%{l_cppflags tiff qt freetype2}" \
  82. LDFLAGS="%{l_ldflags} -L$X11LIB" \
  83. LIBS="$LIBS" \
  84. ./configure \
  85. --prefix=%{l_prefix} \
  86. --disable-shared \
  87. --enable-static \
  88. --with-x \
  89. --x-includes=$X11INC \
  90. --x-libraries=$X11LIB \
  91. --with-qt-dir=%{l_prefix} \
  92. --with-qt-includes=%{l_prefix}/include/qt/ \
  93. --with-qt-libraries=%{l_prefix}/lib/
  94. %{l_make} %{l_mflags -O} LIBS="$LIBS"
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  98. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  99. %files -f files
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT