scribus.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. ##
  2. ## scribus.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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. # package information
  26. Name: scribus
  27. Summary: Desktop Publishing Application
  28. URL: http://www.scribus.org.uk/
  29. Vendor: Franz Schmid
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Editor
  34. License: GPL
  35. Version: 1.1.7
  36. Release: 20040606
  37. # package options
  38. %option with_python no
  39. # list of sources
  40. Source0: http://web2.altmuehlnet.de/fschmid/scribus-%{version}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, qt, freetype, libart
  45. BuildPreReq: ghostscript, png, jpeg, tiff, zlib, pkgconfig
  46. PreReq: OpenPKG, openpkg >= 20040130, qt, freetype, libart
  47. PreReq: ghostscript, png, jpeg, tiff, zlib
  48. %if "%{with_python}" == "yes"
  49. BuildPreReq: python
  50. PreReq: python
  51. %endif
  52. AutoReq: no
  53. AutoReqProv: no
  54. %description
  55. Scribus is a Layout program similar to QuarkXPress, Adobe® PageMaker,
  56. or Adobe® InDesign. It has the ability to layout newsletters, create
  57. corporate stationery, small posters and other documents which need
  58. flexible layout and/or the ability to output to professional quality
  59. imagesetting equipment. Graphic formats which can be placed include
  60. EPS, JPEG, PNG, and XPM. Scribus also offers more advanced professional
  61. publishing features, such as CMYK color, easy PDF creation, Encapsulated
  62. Postscript import/export and creation of color separations.
  63. %track
  64. prog scribus = {
  65. version = %{version}
  66. url = http://web2.altmuehlnet.de/fschmid/download.html
  67. regex = scribus-(\d+\.\d+\.\d+).tar.gz
  68. }
  69. %prep
  70. %setup -q
  71. %{l_shtool} subst \
  72. -e 's;$(prefix);$(DESTDIR)$(prefix);' \
  73. scribus/Makefile.in \
  74. scribus/dicts/Makefile.in \
  75. scribus/icons/Makefile.in \
  76. scribus/profiles/Makefile.in \
  77. scribus/qm/Makefile.in \
  78. scribus/plugins/psimport/Makefile.in \
  79. scribus/plugins/fontpreview/Makefile.in
  80. %{l_shtool} subst \
  81. -e 's;\([^=] *\)$(prefix);\1$(DESTDIR)$(prefix);' \
  82. scribus/libpostscript/Makefile.in \
  83. scribus/libpdf/Makefile.in
  84. %{l_shtool} subst \
  85. -e 's; ! -f $libstdcpp;;g' \
  86. -e 's;^\(jpeg_incdirs="\)[^"]*\("\);\1%{l_prefix}/include\2;' \
  87. configure
  88. %build
  89. CC="%{l_cc}" \
  90. CXX="%{l_cxx}" \
  91. CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pkg-config --cflags-only-other qt`" \
  92. CXXFLAGS="%{l_cxxflags -O} `%{l_prefix}/bin/pkg-config --cflags-only-other qt`" \
  93. CPPFLAGS="%{l_cppflags tiff} `%{l_prefix}/bin/pkg-config --cflags-only-I qt`" \
  94. LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/pkg-config --libs-only-L qt`" \
  95. LIBS="$LIBS `%{l_prefix}/bin/pkg-config --libs-only-l --libs-only-other qt`" \
  96. ./configure \
  97. --prefix=%{l_prefix} \
  98. --disable-threading \
  99. --disable-shared \
  100. --enable-static \
  101. --with-x \
  102. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  103. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir`\
  104. --with-qt-dir=%{l_prefix} \
  105. --with-qt-includes=%{l_prefix}/include/qt/ \
  106. --with-qt-libraries=%{l_prefix}/lib/
  107. %{l_make} %{l_mflags -O}
  108. %install
  109. rm -rf $RPM_BUILD_ROOT
  110. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  111. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  112. %files -f files
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT