gconf-editor-vl.spec 5.2 KB

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