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