dia.spec 4.1 KB

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