windowapplets-vl.spec 3.9 KB

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