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