dia.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.90
  35. Release: 20030104
  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, glib, gtk, gdk-pixbuf, libiconv, libxml, zlib, popt
  42. PreReq: OpenPKG, openpkg >= 20020206, X11, glib, gtk, gdk-pixbuf, libiconv, libxml, zlib, popt
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Dia is designed to be much like the commercial Windows program
  47. 'Visio'. It can be used to draw many different kinds of diagrams.
  48. It currently has special objects to help draw entity relationship
  49. diagrams, UML diagrams, flowcharts, network diagrams, and simple
  50. circuits. It is also possible to add support for new shapes by
  51. writing simple XML files, using a subset of SVG to draw the
  52. shape. It can load and save diagrams to a custom XML format
  53. (gzipped by default, to save space), can export diagrams to EPS
  54. or SVG formats and can print diagrams (including ones that span
  55. multiple pages).
  56. %prep
  57. %setup -q
  58. %build
  59. %{l_shtool} subst \
  60. -e 's;gtk_advancement=dia_talks_utf8;gtk_advancement=initial;g' \
  61. configure
  62. CC="%{l_cc}" \
  63. CFLAGS="%{l_cflags -O} %{l_cppflags libxml2 libxml2/libxml}" \
  64. CPPFLAGS="%{l_cppflags libxml2 libxml2/libxml}" \
  65. LDFLAGS="%{l_ldflags}" \
  66. ./configure \
  67. --prefix=%{l_prefix} \
  68. --with-gtk-prefix=%{l_prefix} \
  69. --with-libiconv-prefix=%{l_prefix} \
  70. --with-gdk-pixbuf-prefix=%{l_prefix} \
  71. --disable-freetype \
  72. --disable-shared \
  73. --disable-nls \
  74. --disable-gnome
  75. %{l_make} %{l_mflags}
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  79. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  80. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnome
  81. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mime-info
  82. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/pixmaps
  83. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/oaf
  84. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  85. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT