dia.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ##
  2. ## dia.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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. # package information
  26. Name: dia
  27. Summary: Graphical Diagram Editor
  28. URL: http://www.lysator.liu.se/~alla/dia/
  29. Vendor: GNOME
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Misc
  33. License: GPL
  34. Version: 0.91
  35. Release: 20030603
  36. # list of sources
  37. Source0: ftp://ftp.gnome.org/pub/gnome/sources/dia/%{version}/dia-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, X11
  42. BuildPreReq: glib2, gtk2, pango, libart
  43. BuildPreReq: libiconv, libxml, zlib, popt
  44. PreReq: OpenPKG, openpkg >= 20020206, X11
  45. PreReq: glib2, gtk2, pango, libart
  46. PreReq: libiconv, libxml, zlib, popt
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Dia is designed to be much like the commercial Windows program
  51. 'Visio'. It can be used to draw many different kinds of diagrams.
  52. It currently has special objects to help draw entity relationship
  53. diagrams, UML diagrams, flowcharts, network diagrams, and simple
  54. circuits. It is also possible to add support for new shapes by
  55. writing simple XML files, using a subset of SVG to draw the
  56. shape. It can load and save diagrams to a custom XML format
  57. (gzipped by default, to save space), can export diagrams to EPS
  58. or SVG formats and can print diagrams (including ones that span
  59. multiple pages).
  60. %prep
  61. %setup -q
  62. %build
  63. %{l_shtool} subst \
  64. -e 's;gtk_advancement=dia_talks_utf8;gtk_advancement=initial;g' \
  65. configure
  66. CC="%{l_cc}" \
  67. CFLAGS="%{l_cflags -O} %{l_cppflags libxml2 libxml2/libxml}" \
  68. CPPFLAGS="%{l_cppflags libxml2 libxml2/libxml}" \
  69. LDFLAGS="%{l_ldflags}" \
  70. ./configure \
  71. --prefix=%{l_prefix} \
  72. --sysconfdir=%{l_prefix}/etc/dia \
  73. --with-gtk-prefix=%{l_prefix} \
  74. --with-libiconv-prefix=%{l_prefix} \
  75. --with-gdk-pixbuf-prefix=%{l_prefix} \
  76. --disable-freetype \
  77. --disable-shared \
  78. --disable-nls \
  79. --disable-gnome \
  80. --enable-db2html \
  81. --without-python \
  82. --enable-shared \
  83. --enable-static
  84. %{l_make} %{l_mflags}
  85. %install
  86. rm -rf $RPM_BUILD_ROOT
  87. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  88. # FIXME - requires shared libxslt.so in /usr/lib
  89. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/dia/libxslt_filter.*
  90. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/dia/*.a
  91. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnome
  92. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mime-info
  93. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/pixmaps
  94. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/oaf
  95. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  96. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  97. %files -f files
  98. %clean
  99. rm -rf $RPM_BUILD_ROOT