windowapplets-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %define domain_name windowutils
  2. Summary: Gnome panel applet for maximized window title lbar
  3. Summary(ja): 最大化したウィンドウのタイトルバー用 GNOME パネルアプレット
  4. Name: windowapplets
  5. Version: 0.2.7
  6. Release: 2%{?_dist_release}
  7. Source0: 103732-gnome-window-applets-%{version}.tar.gz
  8. Source1: windowapplets-0.2.5-ja.po
  9. Patch0: windowapplets-metacity-notitlebar.patch
  10. Patch1: windowapplets-0.2.5-locale-dir-fix.patch
  11. Patch2: windowapplets-0.2.7-exclude-decorate.patch
  12. License: GPLv3
  13. Group: User Interface/Desktops
  14. URL: http://gnome-look.org/content/show.php?content=103732
  15. BuildRequires: libwnck-devel gnome-panel gnome-applets
  16. BuildRequires: GConf2-devel libbonoboui-devel
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Packager: kazutaka
  19. %description
  20. GNOME Panel applets that substitute the maximized window toolbar.
  21. This package contains these applets:
  22. - Window Buttons Applet
  23. - Window Title Applet
  24. %description -l ja
  25. 最大化したウィンドウのタイトルバーを置き換える GNOME パネル
  26. アプレットです。
  27. このパッケージには次のアプレットが含まれます:
  28. - ウィンドウボタン・アプレット
  29. - ウィンドウタイトル・アプレット
  30. %prep
  31. %setup -q -n gnome-window-applets-%{version}
  32. %patch0 -p1 -b .notitlebar
  33. %patch1 -p1 -b .locale-fix
  34. %patch2 -p1 -b .exclude-decorate
  35. %build
  36. %configure --disable-schemas-install
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. %{__rm} -rf $RPM_BUILD_ROOT
  40. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  41. #install japanese massage catalog
  42. %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES
  43. msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/%{domain_name}.mo
  44. # remove docs installed in /usr/doc/%{name}
  45. %{__rm} -rf $RPM_BUILD_ROOT/%{_prefix}/doc
  46. %find_lang %{domain_name}
  47. %pre
  48. if [ "$1" -gt 1 ]; then
  49. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  50. for f in windowbuttons windowtitle; do
  51. echo %{_sysconfdir}/gconf/schemas/${f}.schemas; done \
  52. | xargs gconftool-2 --makefile-uninstall-rule >& /dev/null || :
  53. fi
  54. %post
  55. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  56. for f in windowbuttons windowtitle; do
  57. echo %{_sysconfdir}/gconf/schemas/${f}.schemas; done \
  58. | xargs gconftool-2 --makefile-install-rule >& /dev/null || :
  59. %preun
  60. if [ "$1" -eq 0 ]; then
  61. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  62. for f in windowbuttons windowtitle; do
  63. echo %{_sysconfdir}/gconf/schemas/${f}.schemas; done \
  64. | xargs gconftool-2 --makefile-uninstall-rule >& /dev/null || :
  65. fi
  66. %clean
  67. %{__rm} -rf $RPM_BUILD_ROOT
  68. %files -f %{domain_name}.lang
  69. %defattr(-,root,root)
  70. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
  71. %{_sysconfdir}/gconf/schemas/windowbuttons.schemas
  72. %{_sysconfdir}/gconf/schemas/windowtitle.schemas
  73. %{_libdir}/bonobo/servers/WindowButtons.server
  74. %{_libdir}//bonobo/servers/WindowTitle.server
  75. %{_libexecdir}/windowbuttons
  76. %{_libexecdir}/windowtitle
  77. %{_datadir}/windowbuttons
  78. %{_datadir}/windowtitle
  79. %changelog
  80. * Sun Jul 25 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.2.7-2
  81. - add Patch2 to exclude specific apps for window decoration
  82. (but now support guake only)
  83. * Sat Jul 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.2.7-1
  84. - new upstream release
  85. * Sun Mar 21 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.2.5-1
  86. - initial build for Vine Linux
  87. - add Patch0 to hide title bar of maximized window on metacity
  88. - add Patch1 to fix GNOMELOCALEDIR
  89. - add Source1 for japanese translation