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