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