mate-conf-editor-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Summary: Editor/admin tool for mate-conf
  2. Name: mate-conf-editor
  3. Version: 1.4.0
  4. Release: 1%{?_dist_release}
  5. Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: Applications/System
  8. URL: http://mate-desktop.org/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: dbus-glib-devel
  14. BuildRequires: gtk-doc
  15. BuildRequires: autoconf
  16. BuildRequires: automake
  17. Requires(post,pre,preun): mate-conf
  18. Requires(post,postun): desktop-file-utils
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. An editor for the MateConf configuration system.
  25. %prep
  26. %setup -q
  27. %build
  28. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  29. %configure \
  30. --disable-static \
  31. --disable-scrollkeeper
  32. %{__make} %{?_smp_mflags}
  33. %install
  34. %{__rm} -rf ${RPM_BUILD_ROOT}
  35. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  36. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  37. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  38. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  39. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  40. %find_lang %{name}
  41. %clean
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %post
  44. /sbin/ldconfig
  45. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  46. SCHEMAS=" \
  47. mateconf-editor.schemas"
  48. for S in $SCHEMAS; do
  49. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  50. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  51. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  52. touch --no-create %{_datadir}/icons/hicolor
  53. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  54. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  55. fi
  56. %pre
  57. if [ "$1" -gt 1 ]; then
  58. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  59. SCHEMAS=" \
  60. mateconf-editor.schemas"
  61. for S in $SCHEMAS; do
  62. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  63. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  64. fi
  65. %preun
  66. if [ "$1" -eq 0 ]; then
  67. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  68. SCHEMAS=" \
  69. mateconf-editor.schemas"
  70. for S in $SCHEMAS; do
  71. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  72. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  73. fi
  74. %postun
  75. /sbin/ldconfig
  76. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  77. touch --no-create %{_datadir}/icons/hicolor
  78. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  79. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  80. fi
  81. %files -f %{name}.lang
  82. %defattr(-,root,root,-)
  83. %doc COPYING ChangeLog NEWS README
  84. %{_sysconfdir}/mateconf/schemas/mateconf-editor.schemas
  85. %{_bindir}/mateconf-editor
  86. %{_datadir}/applications/mateconf-editor.desktop
  87. %{_datadir}/icons/hicolor/*/*/*
  88. %{_datadir}/mate/help/mateconf-editor
  89. %{_datadir}/mateconf-editor
  90. %{_datadir}/omf/mateconf-editor
  91. %{_mandir}/man1/mateconf-editor.1.gz
  92. %changelog
  93. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  94. - new upstream release
  95. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  96. - new upstream release
  97. * Sat Dec 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  98. - initial build for Vine Linux