scribus.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ##
  2. ## scribus.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 information
  25. Name: scribus
  26. Summary: Desktop Publishing Application
  27. URL: http://www.scribus.net/
  28. Vendor: Franz Schmid
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: DTP
  33. License: GPL
  34. Version: 1.3.3.7
  35. Release: 20070110
  36. # list of sources
  37. Source0: http://www.scribus.net/downloads/%{version}/scribus-%{version}.tar.bz2
  38. Patch0: scribus.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, qt, freetype, libart
  43. PreReq: OpenPKG, openpkg >= 20040130, qt, freetype, libart
  44. BuildPreReq: ghostscript, png, jpeg, tiff, zlib, lcms, pkgconfig, make
  45. PreReq: ghostscript, png, jpeg, tiff, zlib, lcms, gimp
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Scribus is a Layout program similar to QuarkXPress, Adobe®
  50. PageMaker, or Adobe® InDesign. It has the ability to layout
  51. newsletters, create corporate stationery, small posters and other
  52. documents which need flexible layout and/or the ability to output
  53. to professional quality imagesetting equipment. Graphic formats
  54. which can be placed include EPS, JPEG, PNG, and XPM. Scribus also
  55. offers more advanced professional publishing features, such as CMYK
  56. color, easy PDF creation, Encapsulated Postscript import/export and
  57. creation of color separations.
  58. %track
  59. prog scribus = {
  60. version = %{version}
  61. url = http://www.scribus.net/modules.php?op=modload&name=Downloads&file=index
  62. regex = (1\.\d+(\.\d+)*).Release
  63. }
  64. %prep
  65. %setup -q
  66. %patch -p0
  67. %{l_shtool} subst \
  68. -e 's; ! -f $libstdcpp;;g' \
  69. -e 's;^\(jpeg_incdirs="\)[^"]*\("\);\1%{l_prefix}/include\2;' \
  70. configure
  71. %build
  72. CC="%{l_cc}" \
  73. CXX="%{l_cxx}" \
  74. CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pkg-config --cflags-only-other qt`" \
  75. CXXFLAGS="%{l_cxxflags -O} `%{l_prefix}/bin/pkg-config --cflags-only-other qt`" \
  76. CPPFLAGS="%{l_cppflags tiff} `%{l_prefix}/bin/pkg-config --cflags-only-I qt`" \
  77. LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/pkg-config --libs-only-L qt`" \
  78. LIBS="$LIBS `%{l_prefix}/bin/pkg-config --libs-only-l --libs-only-other qt`" \
  79. ./configure \
  80. --prefix=%{l_prefix} \
  81. --disable-threading \
  82. --disable-shared \
  83. --enable-static \
  84. --with-x \
  85. --x-includes=`%{l_rc} --query x11_incdir` \
  86. --x-libraries=`%{l_rc} --query x11_libdir`\
  87. --with-qt-dir=%{l_prefix} \
  88. --with-qt-includes=%{l_prefix}/include/qt/ \
  89. --with-qt-libraries=%{l_prefix}/lib/
  90. %{l_make} %{l_mflags -O}
  91. %install
  92. rm -rf $RPM_BUILD_ROOT
  93. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  94. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/scribus/doc/cr
  95. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/scribus/doc/fr
  96. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/scribus/doc/pl
  97. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/pl
  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