]>
Commit | Line | Data |
---|---|---|
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.22.1.3 | |
8 | Release: 2 | |
9 | License: LGPL | |
10 | Group: X11/Applications | |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-panel/2.22/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: af5e33b27c4b4a8f932baa8530dd79b9 | |
13 | Patch0: %{name}-no_launchers_on_panel.patch | |
14 | Patch1: %{name}-use-sysconfig-timezone.patch | |
15 | URL: http://www.gnome.org/ | |
16 | BuildRequires: GConf2-devel >= 2.22.0 | |
17 | BuildRequires: NetworkManager-devel >= 0.6 | |
18 | BuildRequires: ORBit2-devel >= 1:2.14.9 | |
19 | BuildRequires: PolicyKit-gnome-devel >= 0.7 | |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake > 1:1.9 | |
22 | BuildRequires: dbus-devel >= 1.1.2 | |
23 | BuildRequires: dbus-glib-devel >= 0.74 | |
24 | BuildRequires: evolution-data-server-devel >= 2.22.0 | |
25 | BuildRequires: gettext-devel | |
26 | BuildRequires: glib2-devel >= 1:2.16.0 | |
27 | BuildRequires: gnome-common >= 2.20.0 | |
28 | BuildRequires: gnome-desktop-devel >= 2.22.0 | |
29 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
30 | BuildRequires: gnome-menus-devel >= 2.22.0 | |
31 | BuildRequires: gtk+2-devel >= 2:2.12.5 | |
32 | BuildRequires: gtk-doc >= 1.9 | |
33 | BuildRequires: intltool >= 0.37.0 | |
34 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
35 | BuildRequires: libgnomeui-devel >= 2.22.0 | |
36 | BuildRequires: libgweather-devel >= 2.22.1.1 | |
37 | BuildRequires: librsvg-devel >= 2.18.2 | |
38 | BuildRequires: libtool | |
39 | BuildRequires: libwnck-devel >= 2.22.0 | |
40 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
41 | BuildRequires: perl-base | |
42 | BuildRequires: pkgconfig >= 1:0.15.0 | |
43 | BuildRequires: rpm-build >= 4.1-10 | |
44 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
45 | BuildRequires: rpmbuild(macros) >= 1.311 | |
46 | BuildRequires: scrollkeeper >= 0.3.11 | |
47 | BuildRequires: sed >= 4.0 | |
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.22.0 | |
55 | Requires: gnome-icon-theme >= 2.22.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.22.0 | |
88 | Requires: librsvg >= 1:2.18.2 | |
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: libgnomeui-devel >= 2.22.0 | |
102 | ||
103 | %description devel | |
104 | Panel header files for creating GNOME panels. | |
105 | ||
106 | %description devel -l pl.UTF-8 | |
107 | Pliki nagłówkowe bibliotek panelu GNOME. | |
108 | ||
109 | %package static | |
110 | Summary: GNOME panel static libraries | |
111 | Summary(pl.UTF-8): Statyczne biblioteki panelu GNOME | |
112 | Group: X11/Development/Libraries | |
113 | Requires: %{name}-devel = %{version}-%{release} | |
114 | ||
115 | %description static | |
116 | Panel static libraries. | |
117 | ||
118 | %description static -l pl.UTF-8 | |
119 | Statyczne biblioteki panelu GNOME. | |
120 | ||
121 | %package apidocs | |
122 | Summary: panel-applet API documentation | |
123 | Summary(pl.UTF-8): Dokumentacja API panel-applet | |
124 | Group: Documentation | |
125 | Requires: gtk-doc-common | |
126 | ||
127 | %description apidocs | |
128 | panel-applet API documentation. | |
129 | ||
130 | %description apidocs -l pl.UTF-8 | |
131 | Dokumentacja API panel-applet. | |
132 | ||
133 | %prep | |
134 | %setup -q | |
135 | %patch0 -p1 | |
136 | %patch1 -p0 | |
137 | ||
138 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS | |
139 | mv po/sr@{Latn,latin}.po | |
140 | ||
141 | # short circuit stopper (fix me!) | |
142 | mv ChangeLog main-ChangeLog | |
143 | find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh | |
144 | ||
145 | %build | |
146 | %{__gnome_doc_prepare} | |
147 | %{__gnome_doc_common} | |
148 | %{__intltoolize} | |
149 | %{__libtoolize} | |
150 | %{__aclocal} | |
151 | %{__autoconf} | |
152 | %{__autoheader} | |
153 | %{__automake} | |
154 | %configure \ | |
155 | --disable-schemas-install \ | |
156 | --enable-eds \ | |
157 | --enable-gtk-doc \ | |
158 | --with-html-dir=%{_gtkdocdir} | |
159 | %{__make} | |
160 | ||
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_datadir}/%{name}} | |
164 | ||
165 | %{__make} install \ | |
166 | DESTDIR=$RPM_BUILD_ROOT \ | |
167 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
168 | ||
169 | install %{name}/panel-default-setup.entries $RPM_BUILD_ROOT%{_datadir}/%{name} | |
170 | ||
171 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/panel-default-setup.entries | |
172 | ||
173 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ps | |
174 | ||
175 | %find_lang %{name} --with-gnome --with-omf --all-name | |
176 | ||
177 | %clean | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %post | |
181 | %scrollkeeper_update_post | |
182 | %gconf_schema_install clock.schemas | |
183 | %gconf_schema_install fish.schemas | |
184 | %gconf_schema_install panel-compatibility.schemas | |
185 | %gconf_schema_install panel-general.schemas | |
186 | %gconf_schema_install panel-global.schemas | |
187 | %gconf_schema_install panel-object.schemas | |
188 | %gconf_schema_install panel-toplevel.schemas | |
189 | %gconf_schema_install window-list.schemas | |
190 | %gconf_schema_install workspace-switcher.schemas | |
191 | %update_icon_cache hicolor | |
192 | ||
193 | %{_bindir}/gconftool-2 --direct \ | |
194 | --config-source="`%{_bindir}/gconftool-2 --get-default-source`" \ | |
195 | --load %{_datadir}/%{name}/panel-default-setup.entries > /dev/null | |
196 | %{_bindir}/gconftool-2 --direct \ | |
197 | --config-source="`%{_bindir}/gconftool-2 --get-default-source`" \ | |
198 | --load %{_datadir}/%{name}/panel-default-setup.entries /apps/panel/profiles/default > /dev/null | |
199 | ||
200 | %preun | |
201 | %gconf_schema_uninstall clock.schemas | |
202 | %gconf_schema_uninstall fish.schemas | |
203 | %gconf_schema_uninstall panel-compatibility.schemas | |
204 | %gconf_schema_uninstall panel-general.schemas | |
205 | %gconf_schema_uninstall panel-global.schemas | |
206 | %gconf_schema_uninstall panel-object.schemas | |
207 | %gconf_schema_uninstall panel-toplevel.schemas | |
208 | %gconf_schema_uninstall window-list.schemas | |
209 | %gconf_schema_uninstall workspace-switcher.schemas | |
210 | ||
211 | %postun | |
212 | %scrollkeeper_update_postun | |
213 | %update_icon_cache hicolor | |
214 | ||
215 | %post libs -p /sbin/ldconfig | |
216 | %postun libs -p /sbin/ldconfig | |
217 | ||
218 | %files -f %{name}.lang | |
219 | %defattr(644,root,root,755) | |
220 | %doc AUTHORS MAINTAINERS NEWS README *ChangeLog | |
221 | %attr(755,root,root) %{_bindir}/gnome-desktop-item-edit | |
222 | %attr(755,root,root) %{_bindir}/gnome-panel | |
223 | %attr(755,root,root) %{_bindir}/panel-test-applets | |
224 | %attr(755,root,root) %{_libdir}/clock-applet | |
225 | %attr(755,root,root) %{_libdir}/fish-applet-2 | |
226 | %attr(755,root,root) %{_libdir}/gnome-clock-applet-mechanism | |
227 | %attr(755,root,root) %{_libdir}/notification-area-applet | |
228 | %attr(755,root,root) %{_libdir}/wnck-applet | |
229 | %{_datadir}/PolicyKit/policy/gnome-clock-applet-mechanism.policy | |
230 | %{_datadir}/dbus-1/system-services/org.gnome.ClockApplet.Mechanism.service | |
231 | %{_datadir}/gnome-2.0/ui/*.xml | |
232 | %{_datadir}/gnome-panel | |
233 | %{_datadir}/gnome-panelrc | |
234 | %{_datadir}/idl/gnome-panel-2.0 | |
235 | %{_desktopdir}/gnome-panel.desktop | |
236 | %{_iconsdir}/hicolor/*/apps/* | |
237 | %{_libdir}/bonobo/servers/*.server | |
238 | %{_mandir}/man1/*.1* | |
239 | %{_sysconfdir}/dbus-1/system.d/org.gnome.ClockApplet.Mechanism.conf | |
240 | %{_sysconfdir}/gconf/schemas/clock.schemas | |
241 | %{_sysconfdir}/gconf/schemas/fish.schemas | |
242 | %{_sysconfdir}/gconf/schemas/panel-compatibility.schemas | |
243 | %{_sysconfdir}/gconf/schemas/panel-general.schemas | |
244 | %{_sysconfdir}/gconf/schemas/panel-global.schemas | |
245 | %{_sysconfdir}/gconf/schemas/panel-object.schemas | |
246 | %{_sysconfdir}/gconf/schemas/panel-toplevel.schemas | |
247 | %{_sysconfdir}/gconf/schemas/window-list.schemas | |
248 | %{_sysconfdir}/gconf/schemas/workspace-switcher.schemas | |
249 | ||
250 | %files libs | |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/libpanel-applet-2.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libpanel-applet-2.so.0 | |
254 | ||
255 | %files devel | |
256 | %defattr(644,root,root,755) | |
257 | %attr(755,root,root) %{_libdir}/libpanel-applet-2.so | |
258 | %{_libdir}/libpanel-applet-2.la | |
259 | %{_includedir}/panel-2.0 | |
260 | %{_pkgconfigdir}/libpanelapplet-2.0.pc | |
261 | ||
262 | %files static | |
263 | %defattr(644,root,root,755) | |
264 | %{_libdir}/libpanel-applet-2.a | |
265 | ||
266 | %files apidocs | |
267 | %defattr(644,root,root,755) | |
268 | %{_gtkdocdir}/panel-applet |