scribus.spec 3.8 KB

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