glade3-vl.spec 6.1 KB

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