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

Revision 622, 3.1 KB checked in by kazutaka, 14 years ago (diff)

Import from latest srpm

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