dia-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. # %%define extraver 1
  2. %define _gtk_ver 2.10.0
  3. %define _glib_ver 2.12.0
  4. %define _pango_ver 1.16.0
  5. %define _freetype_ver 2.3.0
  6. %define _libxml_ver 2.6.27
  7. %define _cairo_ver 1.4.6
  8. Summary: A gtk+ based diagram creation program.
  9. Summary(ja): Gtk+ ベースのダイアグラム作成プログラム
  10. Name: dia
  11. Version: 0.97.2
  12. Release: 3%{?_dist_release}
  13. License: GPL
  14. Group: Applications/Graphics
  15. Source: http://ftp.gnome.org/pub/GNOME/sources/dia/%{version}/dia-%{version}%{?extraver:-%extraver}.tar.xz
  16. Patch0: dia-0.97.2-git20131003.patch
  17. Patch1: dia-0.97.2-freetype-2.5.x.patch
  18. URL: http://www.gnome.org/projects/dia/
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Requires(post): desktop-file-utils, scrollkeeper
  21. Requires(postun): desktop-file-utils, scrollkeeper
  22. BuildRequires: gtk2-devel >= %{_gtk_ver}, glib2-devel >= %{_glib_ver}
  23. BuildRequires: pango-devel >= %{_pango_ver}
  24. BuildRequires: libgnome-devel, libgnomeui-devel
  25. BuildRequires: libxml2-devel >= %{_libxml_ver}, libxslt-devel
  26. BuildRequires: libpng-devel, libart_lgpl-devel
  27. BuildRequires: freetype2-devel >= %{_freetype_ver}
  28. BuildRequires: cairo-devel >= %{_cairo_ver}
  29. BuildRequires: libSM-devel
  30. BuildRequires: perl
  31. BuildConflicts: glitz-devel
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. %description
  35. Dia is a program designed to be much like the Windows
  36. program 'Visio'. It can be used to draw different kind of diagrams. In
  37. this first version there is support for UML static structure diagrams
  38. (class diagrams) and Network diagrams. It can currently load and save
  39. diagrams to a custom fileformat and export to postscript.
  40. %description -l ja
  41. Dia は Windows にある 'Visio' に似せて設計されたプログラムです。
  42. 種々のダイアグラムを描写、編集することが可能です。
  43. この最初のバージョンでは、UML の静的構造ダイアグラム (クラス・ダイア
  44. グラム) とネットワーク・ダイアグラムがサポートされています。
  45. 現在では, カスタムのファイル形式でダイアグラムを読み込みや保存した
  46. り、PostScript へ保存することができます。
  47. %prep
  48. %setup -q -n %{name}-%{version}%{?extraver:-%extraver}
  49. %patch0 -p1
  50. %patch1 -p1 -b .ft
  51. %build
  52. %configure --enable-gnome --enable-db2html --with-cairo
  53. %__make
  54. %install
  55. %__rm -rf %{buildroot}
  56. %makeinstall
  57. # remove unneeded files
  58. %__rm -rf %{buildroot}%{_localstatedir}/scrollkeeper
  59. %__rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
  60. %__rm -rf %{buildroot}%{_datadir}/doc/dia
  61. %find_lang %{name}
  62. %clean
  63. %__rm -rf %{buildroot}
  64. %post
  65. %{_bindir}/update-desktop-database ||:
  66. %{_bindir}/scrollkeeper-update > /dev/null 2>&1 ||:
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  69. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  70. fi
  71. %postun
  72. %{_bindir}/update-desktop-database ||:
  73. %{_bindir}/scrollkeeper-update > /dev/null 2>&1 ||:
  74. touch --no-create %{_datadir}/icons/hicolor
  75. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  76. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  77. fi
  78. %files -f %{name}.lang
  79. %defattr(-,root,root)
  80. %doc README TODO NEWS INSTALL COPYING ChangeLog AUTHORS doc
  81. %{_bindir}/dia
  82. %{_libdir}/dia
  83. %{_mandir}/man1/dia.1*
  84. %{_datadir}/dia
  85. %{_datadir}/applications/*
  86. %{_datadir}/mime-info/*
  87. %{_datadir}/icons/hicolor/*
  88. %{_datadir}/gnome/help/dia
  89. %changelog
  90. * Fri Jan 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.97.2-3
  91. - add Patch0 (dia-0.97.2-git20131003.patch)
  92. * Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.97.2-2
  93. - rebuild with VineSeed environment
  94. - add Patch0 (dia-0.97.2-freetype-2.5.x.patch)
  95. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.97.2-1
  96. - new upstream release
  97. * Sun Apr 17 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97.1-2
  98. - rebuilt with current VineSeed
  99. * Thu Mar 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.97.1-1
  100. - new upstream release
  101. * Sun Nov 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.97-2
  102. - add BR: libSM-devel (<BTS:828>)
  103. * Mon Nov 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.97-1
  104. - new upstream release
  105. * Tue Jul 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.96.1-1
  106. - applied new versioning policy
  107. - spec in UTF-8
  108. * Thu May 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.96.1-0vl1
  109. - new upstream release
  110. * Sat Oct 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl4
  111. - [SECURITY] update to 0.95-1
  112. * Tue Sep 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl3
  113. - add BuildConflicts: glitz-devel not to depend on glitz
  114. * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.95-0vl2
  115. - change Group to Applications/Graphics. <BTS:VineLinux:163>
  116. * Thu Apr 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl1
  117. - upstream release
  118. - update source-URL
  119. - drop BuildRequires: automake17
  120. * Sat Apr 15 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre9
  121. - 0.95-pre9
  122. * Thu Apr 06 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre8
  123. - 0.95-pre8
  124. - enable cairo plugin
  125. - add BuildRequires: cairo-devel, Requires: cairo
  126. * Thu Mar 30 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre7
  127. - 0.95-pre7
  128. * Sat Mar 25 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre6
  129. - 0.95-pre6
  130. * Tue Mar 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre5
  131. - 0.95-pre5
  132. * Tue Feb 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.95-0vl0.0pre1
  133. - 0.95-pre1
  134. - drop obsolete patch1
  135. - run scrollkeeper-update at %%post,postun
  136. - add PreReq: scrollkeeper
  137. * Sat Jul 16 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.94-0vl1
  138. - upstream release
  139. - drop BuildPrereq: desktop-file-utils (not used)
  140. - run update-desktop-database at %%post,postun
  141. - add PreReq: desktop-file-utils
  142. - drop obsolete patch0
  143. * Thu Aug 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.93-0vl3
  144. - use defalut ja.po file
  145. - fixed encoding of sheet/Cybernetics.in (patch1)
  146. * Sat Jul 31 2004 Tomoya TAKA <taka@vinelinux.org> 0.93-0vl2
  147. - use GtkType rather than guint (patch0)
  148. - update URL:
  149. * Wed Jul 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.93-0vl1
  150. - new upstream release
  151. * Mon Nov 3 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.92.2-0vl1
  152. - new upstream release
  153. - updated ja.po
  154. * Sun Jun 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl2
  155. - applyed dia-0.91-help.patch and dia-0.91-css.patch from Redhat Rawhide
  156. - fixed Requires, BuildRequires and BuildPreReq
  157. - fixed gnome-dia.desktop
  158. - merged newly ja.po
  159. * Sun Jun 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl1
  160. - rebuild with new toolchains and Gnome2
  161. - modified specfile based on Redhat Rawhide 0.90-11
  162. * Tue Sep 25 2001 Satoshi MACHINO <machino@vinelinux.org> dia-0.88.1-0vl1
  163. - updated 0.88.1
  164. - added Requires: gtk+ imlib
  165. - updated patch1
  166. * Fri Apr 20 2001 Daisuke SUZUKI <daisuke@linux.or.jp> dia-0.86-0vl3
  167. - brush up this spec files
  168. * Fri Apr 20 2001 Daisuke SUZUKI <daisuke@linux.or.jp> dia-0.86-0vl2
  169. - changed to use TrueType Fonts for screen.
  170. * Tue Aug 29 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  171. - updated dia-0.86 and ja patch's
  172. - removed vfont.patch
  173. - fixed %files section to handle compressed man page
  174. * Fri Aug 11 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  175. - updated ja patch to rel 8.
  176. - added vfont patch
  177. * Fri Mar 31 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  178. - updated to 0.84
  179. * Mon Feb 21 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  180. - updated Japanese patch
  181. * Fri Feb 18 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  182. - added Japanese patch and some bug fix patches from http://www.u-aizu.ac.jp/%7Em5031201/dia/
  183. * Sun Sep 5 1999 James Henstridge <james@daa.com.au>
  184. - added $(prefix)/share/dia to files list.
  185. * Thu Apr 29 1999 Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
  186. - Made %setup quiet
  187. - Enabled build from cvs
  188. - Removed superfluous mkdir's
  189. - using DESTDIR and install-strip
  190. * Fri Aug 28 1998 Francis J. Lacoste <francis@Contre.COM>
  191. - First RPM release.