glade3-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. %define helpdir glade3
  2. Version: 3.14.0
  3. Release: 1%{?_dist_release}
  4. Summary: A user interface builder for the GTK+ toolkit and GNOME
  5. Summary(ja): GTK+ツールキット及びGNOME向けのユーザインターフェースビルダー
  6. Name: glade3
  7. License: GPL
  8. Group: Applications/Development
  9. URL: http://glade.gnome.org/
  10. Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.14/glade-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: gtk3-devel >= 3.0.2
  13. BuildRequires: libxml2-devel >= 2.4.0
  14. BuildRequires: libSM-devel
  15. BuildRequires: yelp-tools
  16. Requires: gtk3 >= 3.0.2
  17. Requires: libxml2 >= 2.4.0
  18. #Requires: libbonoboui
  19. Requires: devhelp
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. Glade is a RAD tool to enable quick & easy development of user interfaces
  24. for the Gtk+ toolkit and the GNOME desktop environment.
  25. The user interfaces designed in Glade are stored in XML format,
  26. enabling easy integration with external tools.
  27. In particular libglade can load the XML files and create the interfaces
  28. at runtime. The DTD for the XML files is included with libglade, and is
  29. also at http://glade.gnome.org/glade-2.0.dtd.
  30. Other tools are available which can turn the XML files into source code
  31. in languages such as C++, Perl and Python.
  32. %description -l ja
  33. Gladeは、GTK+ツールキットやGNOME向けのユーザインターフェースを素早く簡単に開
  34. 発する事が可能なRADツールです。
  35. Gladeでデザインされたユーザインターフェースは外部ツールに用意に統合可能なXML
  36. フォーマットで保存されます。
  37. 特にlibgladeは、XMLファイルを読み込み、ランタイムにインターフェースを生成す
  38. ることが出来ます。このXMLファイルのDTDは、libgladeに含まれており、
  39. http://glade.gnome.org/glade-2.0.dtdにもあります。
  40. このXMLファイルをC++、PerlやPythonといった言語のソースコードに変換する他のツー
  41. ルも利用可能です。
  42. %package devel
  43. Summary: the Glade UI Builder core library
  44. Group: Development/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. %description devel
  47. the Glade UI Builder core library to integrate Glade into your application
  48. and integrate your custom (GTK+ based) widget toolkit into the Glade
  49. UI Builder.
  50. %prep
  51. %setup -q -n glade-%{version}
  52. pushd src
  53. ## change gnome help directory
  54. mv glade-window.c glade-window.c.orig
  55. sed "s|GLADE_GNOMEHELPDIR, \"glade\"|GLADE_GNOMEHELPDIR, \"%{helpdir}\"|" \
  56. glade-window.c.orig > glade-window.c
  57. popd
  58. %build
  59. %configure --disable-static
  60. %__make %{_smp_mflags}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make install DESTDIR=$RPM_BUILD_ROOT
  64. rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  65. rm -f $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.la
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/libgladeui-2.la
  67. %find_lang glade --all-name --with-gnome
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %post
  71. /sbin/ldconfig
  72. touch --no-create %{_datadir}/icons/hicolor
  73. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  74. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  75. fi
  76. %postun
  77. /sbin/ldconfig
  78. touch --no-create %{_datadir}/icons/hicolor
  79. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  80. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  81. fi
  82. %files -f glade.lang
  83. %defattr(-,root,root)
  84. %{_bindir}/glade
  85. %{_bindir}/glade-previewer
  86. %{_libdir}/libgladeui-2.so.*
  87. %{_libdir}/glade/modules/*.so
  88. %{_libdir}/girepository-1.0/Gladeui-2.0.typelib
  89. %{_datadir}/applications/glade.desktop
  90. %{_datadir}/glade
  91. %{_datadir}/icons/hicolor/*/apps/glade.png
  92. %files devel
  93. %defattr(-,root,root)
  94. %{_includedir}/libgladeui-2.0/gladeui/*
  95. %{_libdir}/pkgconfig/*.pc
  96. %{_libdir}/libgladeui-2.so
  97. %{_datadir}/gir-1.0/Gladeui-2.0.gir
  98. %{_datadir}/gtk-doc/html/gladeui-2
  99. %changelog
  100. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1
  101. - new upstream release
  102. - change BuildRequires: yelp-tools instead of gnome-doc-utils
  103. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1
  104. - new upstream release
  105. * Wed Apr 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1
  106. - new upstream release
  107. * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1
  108. - new upstream release
  109. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-1
  110. - new upstream release
  111. - change BuildRequires: gtk3-devel instead of gtk2-devel
  112. - delete BuildRequires: libgnomeui-devel, libbonoboui-devel
  113. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.7-4
  114. - rebuild with rpm-4.8.1 for pkg-config file
  115. - add BuildRequires: libSM-devel
  116. * Fri Nov 06 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-3
  117. - add gnome-doc-utils to BR
  118. - comment out desktop-file-install
  119. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-2
  120. - rebuild with gtk2-2.18.2
  121. * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-1
  122. - new upstream release
  123. - care ld and icon cache
  124. - define helpdir
  125. * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.3-1
  126. - new upstream release
  127. - spec in utf-8 (fixed)
  128. * Fri May 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.6.2-2
  129. - spec in utf-8
  130. * Sun Apr 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.2-1
  131. - new upstream release
  132. * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 3.5.2-1
  133. - new upstream version.
  134. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.5-1
  135. - new upstream version.
  136. - update Requires.
  137. - update description.
  138. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.1-2vl5
  139. - use macro for release
  140. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.1-1vl5
  141. - apply new virsioning policy.
  142. - remove *.la
  143. * Fri Jan 04 2008 Shu KONNO <owa@bg.wakwak.com> 3.4.1-0vl
  144. - new upstream version
  145. - added Requires: devhelp
  146. - added Prereq: scrollkeeper
  147. - added disable-scrollkeeper to configure
  148. - added scrollkeeper-update in %%post and %%postun sections
  149. - changed gnome help directory temporarily
  150. * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.0.3-0vl
  151. - build for VineSeed