source: projects/specs/trunk/w/windowapplets/windowapplets-vl.spec @ 2280

Revision 2280, 3.9 KB checked in by kazutaka, 10 years ago (diff)

0.2.9 に更新

Line 
1%define domain_name     windowutils
2
3%define build_vine5 0
4%if "%{?_dist_release}" == "vl5"
5%define build_vine5 1
6%endif
7
8Summary:        Gnome panel applet for maximized window title lbar
9Summary(ja):    最大化したウィンドウのタイトルバー用 GNOME パネルアプレット
10Name:           windowapplets
11Version:        0.2.9
12Release:        1%{?_dist_release}
13Source0:        103732-gnome-window-applets-%{version}.tar.gz
14Source1:        windowapplets-0.2.5-ja.po
15Patch0:         windowapplets-0.2.9-metacity-notitlebar.patch
16Patch1:         windowapplets-0.2.5-locale-dir-fix.patch
17Patch2:         windowapplets-0.2.7-exclude-decorate.patch
18Patch3:         windowapplets-0.2.9-gtk216.patch
19License:        GPLv3
20Group:          User Interface/Desktops
21URL:            http://gnome-look.org/content/show.php?content=103732
22
23BuildRequires:  libwnck-devel gnome-panel-devel gnome-applets
24BuildRequires:  GConf2-devel libbonoboui-devel
25BuildRoot:      %{_tmppath}/%{name}-%{version}-root
26
27Packager:       kazutaka
28
29%description
30GNOME Panel applets that substitute the maximized window toolbar.
31This 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
63msgfmt %{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
71if [ "$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 || :
76fi
77
78%post
79export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
80for 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
85if [ "$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 || :
90fi
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
Note: See TracBrowser for help on using the repository browser.