windowapplets-vl.spec 3.1 KB

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