gconf-editor-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. %define gtk2_version 2.22.0
  2. %define gconf2_version 2.32.0
  3. %define desktop_file_utils_version 0.16
  4. %define gnome_doc_utils_version 0.20.1
  5. Summary: Editor/admin tool for GConf
  6. Summary(ja): GConf の編集/管理ツール
  7. Name: gconf-editor
  8. Version: 2.32.0
  9. Release: 1%{?_dist_release}
  10. URL: http://www.gnome.org/
  11. Source0: http://ftp.gnome.org/pub/GNOME/sources/gconf-editor/2.32/%{name}-%{version}.tar.bz2
  12. Patch10: gconf-editor-2.14.0-fix-incorrect-g_free.patch
  13. License: GPL
  14. Group: Applications/System
  15. BuildRoot: %{_tmppath}/%{name}-root
  16. Requires(post,pre,preun): GConf2
  17. Requires(post): scrollkeeper
  18. BuildRequires: gtk2-devel >= %{gtk2_version}
  19. BuildRequires: GConf2-devel >= %{gconf2_version}
  20. BuildRequires: dbus-glib-devel
  21. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  22. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  23. BuildRequires: docbook-utils
  24. %description
  25. gconf-editor allows you to browse and modify GConf configuration
  26. sources.
  27. %description -l ja
  28. gconf-editor により GConf の設定を参照したり変更したりすることができます。
  29. %prep
  30. %setup -q
  31. #patch10 -p1 -b .fix-incorrect-g_free
  32. # fix desktop file Icon path
  33. sed -i -e "s/gconf-editor\.png/gconf-editor/" \
  34. data/gconf-editor.desktop.in.in
  35. %build
  36. %configure --disable-schemas-install --disable-scrollkeeper
  37. %__make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. %makeinstall
  41. desktop-file-install --vendor gnome --delete-original \
  42. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  43. $RPM_BUILD_ROOT%{_datadir}/applications/*
  44. %find_lang %{name} --with-gnome
  45. # remove unpackaged files
  46. rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  47. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. scrollkeeper-update > /dev/null 2>&1 || :
  52. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  53. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gconf-editor.schemas > /dev/null
  54. %pre
  55. if [ "$1" -gt 1 ]; then
  56. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  57. gconftool-2 --makefile-uninstall-rule \
  58. %{_sysconfdir}/gconf/schemas/gconf-editor.schemas >/dev/null || :
  59. fi
  60. %preun
  61. if [ "$1" -eq 0 ]; then
  62. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  63. gconftool-2 --makefile-uninstall-rule \
  64. %{_sysconfdir}/gconf/schemas/gconf-editor.schemas >/dev/null || :
  65. fi
  66. %postun
  67. scrollkeeper-update > /dev/null 2>&1 || :
  68. %files -f %{name}.lang
  69. %defattr(-,root,root)
  70. %config %{_sysconfdir}/gconf/schemas/*
  71. %{_bindir}/*
  72. %{_datadir}/applications/*
  73. %{_datadir}/gconf-editor
  74. %{_datadir}/icons/hicolor/*/apps/*
  75. %{_mandir}/man1/*
  76. %changelog
  77. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  78. - new upstream release
  79. * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  80. - new upstream release
  81. - add BuildRequires: gnome-doc-utils, docbook-utils
  82. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  83. - new upstream release
  84. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  85. - new upstream release
  86. * Fri Sep 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0.1-1
  87. - new upstream release
  88. * Thu Apr 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  89. - new upstream release
  90. * Wed Jul 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.0-0vl1
  91. - new upstream release
  92. * Mon Sep 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl2
  93. - add Patch10 to fix incorrect g_free. (<BTS:0168>)
  94. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  95. - new upstream release
  96. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  97. - new upstream release
  98. * Sun Dec 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-0vl1
  99. - new upstream release
  100. - added Japanese summary
  101. * Sun Sep 07 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  102. - new upstream release
  103. * Wed Dec 25 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.0-0vl2
  104. - remove redhat category
  105. * Mon Dec 16 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.0-0vl1
  106. - build for Vine Linux
  107. - new upstream release
  108. * Thu Aug 8 2002 Havoc Pennington <hp@redhat.com>
  109. - 0.3
  110. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  111. - automated rebuild
  112. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  113. - require gconf 1.2.0, rebuild with that
  114. - use desktop-file-install for .desktop file
  115. - include .desktop file and pixmaps in file list
  116. * Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
  117. - rebuild in different environment
  118. * Tue Jun 04 2002 Havoc Pennington <hp@redhat.com>
  119. - rebuild in different environment
  120. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  121. - automated rebuild
  122. * Mon May 20 2002 Havoc Pennington <hp@redhat.com>
  123. - rebuild in different environment
  124. * Mon May 20 2002 Havoc Pennington <hp@redhat.com>
  125. - 0.2
  126. * Fri May 3 2002 Havoc Pennington <hp@redhat.com>
  127. - rebuild with new libs
  128. * Fri May 03 2002 Havoc Pennington <hp@redhat.com>
  129. - rebuild in different environment
  130. * Wed Apr 17 2002 Havoc Pennington <hp@redhat.com>
  131. - Initial build.