inkscape.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ##
  2. ## inkscape.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: inkscape
  26. Summary: Scalable Vector Graphics Editor
  27. URL: http://www.inkscape.org/
  28. Vendor: Bryce Harrington
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: DTP
  33. License: GPL
  34. Version: 0.45
  35. Release: 20070314
  36. # list of sources
  37. Source0: http://switch.dl.sourceforge.net/sourceforge/inkscape/inkscape-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, perl-xml
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. BuildPreReq: glib2, gtk2, gtkmm, xft, gc, libsigcxx, libxslt, popt
  44. PreReq: glib2, gtk2, gtkmm, xft, gc, libsigcxx, libxslt, popt
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Inkscape is an open source SVG editor with capabilities similar to
  49. Illustrator, CorelDraw, Visio, etcetera. Useful for producing logos,
  50. technical diagraming, map making, and any other vector artwork,
  51. Inkscape strives to avoid changing the code within a preexisting SVG
  52. file. Among many advanced features, it provides user comfort through
  53. a HIG compliant interface.
  54. Inkscape's main motivation is to provide the Open Source community
  55. with a fully XML, SVG, and CSS2 compliant SVG drawing tool.
  56. Supported SVG features include basic shapes, paths, text, alpha
  57. blending, transforms, gradients, node editing, SVG to PNG export,
  58. grouping, and more.
  59. %track
  60. prog inkscape = {
  61. version = %{version}
  62. url = http://prdownloads.sourceforge.net/inkscape/
  63. regex = inkscape-(\d+(\.\d+)+)\.tar\.gz
  64. }
  65. %prep
  66. %setup -q
  67. %{l_shtool} subst \
  68. -e 's;^LIBS="-lgc -lpthread -ldl $LIBS";LIBS="-lgc $LIBS";' \
  69. configure
  70. %{l_shtool} subst \
  71. -e 's;ieefp.h;ieeefp.h;g' \
  72. src/display/bezier-utils.cpp
  73. case "%{l_platform -t}" in
  74. *-freebsd* )
  75. %{l_shtool} subst \
  76. -e 's;(int)log2(engine.getMultiScanNrColors())+2;4;g' \
  77. src/trace/potrace/inkscape-potrace.cpp
  78. ;;
  79. esac
  80. %build
  81. CC="%{l_cc}" \
  82. CXX="%{l_cxx}" \
  83. CFLAGS="%{l_cflags -O}" \
  84. CXXFLAGS="%{l_cxxflags -O}" \
  85. CPPFLAGS="%{l_cppflags}" \
  86. LDFLAGS="%{l_ldflags}" \
  87. ./configure \
  88. --with-xft \
  89. --prefix=%{l_prefix}
  90. %{l_make} %{l_mflags -O}
  91. %install
  92. rm -rf $RPM_BUILD_ROOT
  93. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  94. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
  95. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/pixmaps
  96. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/applications
  97. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  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