]> git.pld-linux.org Git - packages/gnome-panel.git/blob - gnome-panel.spec
- Allow gnome-panel to fall back to old style logout if gnome-session 2.24
[packages/gnome-panel.git] / gnome-panel.spec
1 # TODO:
2 # - NetworkManager bcond
3 #
4 Summary:        The core programs for the GNOME GUI desktop environment
5 Summary(pl.UTF-8):      Podstawowe programy środowiska graficznego GNOME
6 Name:           gnome-panel
7 Version:        2.24.2
8 Release:        2
9 License:        LGPL
10 Group:          X11/Applications
11 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-panel/2.24/%{name}-%{version}.tar.bz2
12 # Source0-md5:  a8c9df673e12e72694b55c665bb739dc
13 Patch0:         %{name}-no_launchers_on_panel.patch
14 # http://bugzilla.gnome.org/show_bug.cgi?id=552049
15 Patch1:         %{name}-use-sysconfig-timezone.patch
16 URL:            http://www.gnome.org/
17 BuildRequires:  GConf2-devel >= 2.24.0
18 BuildRequires:  NetworkManager-devel >= 0.6
19 BuildRequires:  ORBit2-devel >= 1:2.14.9
20 BuildRequires:  PolicyKit-gnome-devel >= 0.7
21 BuildRequires:  autoconf
22 BuildRequires:  automake > 1:1.9
23 BuildRequires:  dbus-devel >= 1.1.2
24 BuildRequires:  dbus-glib-devel >= 0.74
25 BuildRequires:  evolution-data-server-devel >= 2.24.0
26 BuildRequires:  gettext-devel
27 BuildRequires:  glib2-devel >= 1:2.18.0
28 BuildRequires:  gnome-common >= 2.24.0
29 BuildRequires:  gnome-desktop-devel >= 2.24.0
30 BuildRequires:  gnome-doc-utils >= 0.14.0
31 BuildRequires:  gnome-menus-devel >= 2.24.0
32 BuildRequires:  gtk+2-devel >= 2:2.14.0
33 BuildRequires:  gtk-doc >= 1.9
34 BuildRequires:  intltool >= 0.40.0
35 BuildRequires:  libbonoboui-devel >= 2.24.0
36 BuildRequires:  libglade2-devel >= 1:2.6.2
37 BuildRequires:  libgnomeui-devel >= 2.24.0
38 BuildRequires:  libgweather-devel >= 2.24.1
39 BuildRequires:  librsvg-devel >= 2.22.0
40 BuildRequires:  libtool
41 BuildRequires:  libwnck-devel >= 2.24.0
42 BuildRequires:  perl-base
43 BuildRequires:  pkgconfig >= 1:0.15.0
44 BuildRequires:  rpm-build >= 4.1-10
45 BuildRequires:  rpmbuild(find_lang) >= 1.23
46 BuildRequires:  rpmbuild(macros) >= 1.311
47 BuildRequires:  scrollkeeper >= 0.3.11
48 BuildConflicts: GConf-devel < 1.0.9-7
49 Requires(post,postun):  gtk+2
50 Requires(post,postun):  hicolor-icon-theme
51 Requires(post,postun):  scrollkeeper
52 Requires(post,preun):   GConf2
53 Requires:       %{name}-libs = %{version}-%{release}
54 Requires:       gnome-desktop >= 2.24.0
55 Requires:       gnome-icon-theme >= 2.24.0
56 Requires:       tzdata >= 2008b-4
57 Requires:       xdg-menus
58 Suggests:       PolicyKit-gnome >= 0.7
59 Suggests:       gnome-utils-screenshot
60 Suggests:       gnome-utils-search-tool
61 # sr@Latn vs. sr@latin
62 Conflicts:      glibc-misc < 6:2.7
63 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65 %description
66 GNOME (GNU Network Object Model Environment) is a user-friendly set of
67 applications and desktop tools to be used in conjunction with a window
68 manager for the X Window System. GNOME is similar in purpose and scope
69 to CDE and KDE, but GNOME is based completely on free software.
70
71 The gnome-panel packages provides the GNOME panel, menus and some
72 basic applets for the panel.
73
74 %description -l pl.UTF-8
75 GNOME (GNU Network Object Model Environment) to zestaw przyjaznych dla
76 użytkownika aplikacji i narzędzi do używania w połączeniu z zarządcą
77 okien pod X. GNOME ma podobny cel jak CDE i KDE, ale bazuje całkowicie
78 na wolnym oprogramowaniu.
79
80 Ten pakiet dostarcza panel GNOME2, menu oraz podstawowe aplety dla
81 panelu GNOME2.
82
83 %package libs
84 Summary:        GNOME panel library
85 Summary(pl.UTF-8):      Biblioteka panelu GNOME
86 Group:          X11/Libraries
87 Requires:       libgnomeui >= 2.24.0
88 Requires:       librsvg >= 1:2.22.0
89
90 %description libs
91 GNOME panel library.
92
93 %description libs -l pl.UTF-8
94 Biblioteka panelu GNOME.
95
96 %package devel
97 Summary:        GNOME panel includes, and more
98 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki panelu GNOME
99 Group:          X11/Development/Libraries
100 Requires:       %{name}-libs = %{version}-%{release}
101 Requires:       gtk+2-devel >= 2:2.14.0
102 Requires:       libbonoboui-devel >= 2.24.0
103 Requires:       libgnomeui-devel >= 2.24.0
104
105 %description devel
106 Panel header files for creating GNOME panels.
107
108 %description devel -l pl.UTF-8
109 Pliki nagłówkowe bibliotek panelu GNOME.
110
111 %package static
112 Summary:        GNOME panel static libraries
113 Summary(pl.UTF-8):      Statyczne biblioteki panelu GNOME
114 Group:          X11/Development/Libraries
115 Requires:       %{name}-devel = %{version}-%{release}
116
117 %description static
118 Panel static libraries.
119
120 %description static -l pl.UTF-8
121 Statyczne biblioteki panelu GNOME.
122
123 %package apidocs
124 Summary:        panel-applet API documentation
125 Summary(pl.UTF-8):      Dokumentacja API panel-applet
126 Group:          Documentation
127 Requires:       gtk-doc-common
128
129 %description apidocs
130 panel-applet API documentation.
131
132 %description apidocs -l pl.UTF-8
133 Dokumentacja API panel-applet.
134
135 %prep
136 %setup -q
137 %patch0 -p1
138 %patch1 -p0
139
140 # short circuit stopper (fix me!)
141 mv ChangeLog main-ChangeLog
142 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
143
144 %build
145 %{__gnome_doc_prepare}
146 %{__gnome_doc_common}
147 %{__intltoolize}
148 %{__libtoolize}
149 %{__aclocal}
150 %{__autoconf}
151 %{__autoheader}
152 %{__automake}
153 %configure \
154         --disable-schemas-install \
155         --enable-eds \
156         --enable-gtk-doc \
157         --with-html-dir=%{_gtkdocdir}
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_datadir}/%{name}}
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT \
166         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
167
168 install %{name}/panel-default-setup.entries $RPM_BUILD_ROOT%{_datadir}/%{name}
169
170 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/panel-default-setup.entries
171 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{ca@valencia,la}
172
173 %find_lang %{name} --with-gnome --with-omf --all-name
174
175 %clean
176 rm -rf $RPM_BUILD_ROOT
177
178 %post
179 %scrollkeeper_update_post
180 %gconf_schema_install clock.schemas
181 %gconf_schema_install fish.schemas
182 %gconf_schema_install panel-compatibility.schemas
183 %gconf_schema_install panel-general.schemas
184 %gconf_schema_install panel-global.schemas
185 %gconf_schema_install panel-object.schemas
186 %gconf_schema_install panel-toplevel.schemas
187 %gconf_schema_install window-list.schemas
188 %gconf_schema_install workspace-switcher.schemas
189 %update_icon_cache hicolor
190
191 %{_bindir}/gconftool-2 --direct \
192         --config-source="`%{_bindir}/gconftool-2 --get-default-source`" \
193         --load %{_datadir}/%{name}/panel-default-setup.entries > /dev/null
194 %{_bindir}/gconftool-2 --direct \
195         --config-source="`%{_bindir}/gconftool-2 --get-default-source`" \
196         --load %{_datadir}/%{name}/panel-default-setup.entries /apps/panel/profiles/default > /dev/null
197
198 %preun
199 %gconf_schema_uninstall clock.schemas
200 %gconf_schema_uninstall fish.schemas
201 %gconf_schema_uninstall panel-compatibility.schemas
202 %gconf_schema_uninstall panel-general.schemas
203 %gconf_schema_uninstall panel-global.schemas
204 %gconf_schema_uninstall panel-object.schemas
205 %gconf_schema_uninstall panel-toplevel.schemas
206 %gconf_schema_uninstall window-list.schemas
207 %gconf_schema_uninstall workspace-switcher.schemas
208
209 %postun
210 %scrollkeeper_update_postun
211 %update_icon_cache hicolor
212
213 %post   libs -p /sbin/ldconfig
214 %postun libs -p /sbin/ldconfig
215
216 %files -f %{name}.lang
217 %defattr(644,root,root,755)
218 %doc AUTHORS MAINTAINERS NEWS README *ChangeLog
219 %attr(755,root,root) %{_bindir}/gnome-desktop-item-edit
220 %attr(755,root,root) %{_bindir}/gnome-panel
221 %attr(755,root,root) %{_bindir}/panel-test-applets
222 %attr(755,root,root) %{_libdir}/clock-applet
223 %attr(755,root,root) %{_libdir}/fish-applet-2
224 %attr(755,root,root) %{_libdir}/gnome-clock-applet-mechanism
225 %attr(755,root,root) %{_libdir}/notification-area-applet
226 %attr(755,root,root) %{_libdir}/wnck-applet
227 %{_datadir}/PolicyKit/policy/org.gnome.clockapplet.mechanism.policy
228 %{_datadir}/dbus-1/system-services/org.gnome.ClockApplet.Mechanism.service
229 %{_datadir}/gnome-2.0/ui/*.xml
230 %{_datadir}/gnome-panel
231 %{_datadir}/gnome-panelrc
232 %{_datadir}/idl/gnome-panel-2.0
233 %{_desktopdir}/gnome-panel.desktop
234 %{_iconsdir}/hicolor/*/apps/*
235 %{_libdir}/bonobo/servers/*.server
236 %{_mandir}/man1/*.1*
237 %{_sysconfdir}/dbus-1/system.d/org.gnome.ClockApplet.Mechanism.conf
238 %{_sysconfdir}/gconf/schemas/clock.schemas
239 %{_sysconfdir}/gconf/schemas/fish.schemas
240 %{_sysconfdir}/gconf/schemas/panel-compatibility.schemas
241 %{_sysconfdir}/gconf/schemas/panel-general.schemas
242 %{_sysconfdir}/gconf/schemas/panel-global.schemas
243 %{_sysconfdir}/gconf/schemas/panel-object.schemas
244 %{_sysconfdir}/gconf/schemas/panel-toplevel.schemas
245 %{_sysconfdir}/gconf/schemas/window-list.schemas
246 %{_sysconfdir}/gconf/schemas/workspace-switcher.schemas
247
248 %files libs
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libpanel-applet-2.so.*.*.*
251 %attr(755,root,root) %ghost %{_libdir}/libpanel-applet-2.so.0
252
253 %files devel
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_libdir}/libpanel-applet-2.so
256 %{_libdir}/libpanel-applet-2.la
257 %{_includedir}/panel-2.0
258 %{_pkgconfigdir}/libpanelapplet-2.0.pc
259
260 %files static
261 %defattr(644,root,root,755)
262 %{_libdir}/libpanel-applet-2.a
263
264 %files apidocs
265 %defattr(644,root,root,755)
266 %{_gtkdocdir}/panel-applet
This page took 0.050899 seconds and 3 git commands to generate.