]>
Commit | Line | Data |
---|---|---|
4ae405de JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with esd # EsounD support (obsolete) | |
4 | %bcond_without static_libs # static library | |
3a6e8d77 | 5 | |
6654ed77 | 6 | Summary: GNOME base library |
977c9b37 | 7 | Summary(pl.UTF-8): Podstawowa biblioteka GNOME |
6654ed77 | 8 | Name: libgnome |
69b7de70 | 9 | Version: 2.32.1 |
47f42bab | 10 | Release: 6 |
c69c381d | 11 | License: LGPL v2+ |
5f32eff3 | 12 | Group: Libraries |
47f42bab | 13 | Source0: https://download.gnome.org/sources/libgnome/2.32/%{name}-%{version}.tar.bz2 |
69b7de70 | 14 | # Source0-md5: a4345e6087ae6195d65a4674ffdca559 |
eb8c8693 | 15 | Patch0: %{name}-load-config.patch |
77057139 | 16 | Patch1: %{name}-glib.patch |
47f42bab | 17 | URL: https://www.gnome.org/ |
751dfc26 | 18 | BuildRequires: GConf2-devel >= 2.24.0 |
3a6e8d77 | 19 | %{?with_esd:BuildRequires: audiofile-devel >= 0.2.3} |
02ba3b00 | 20 | BuildRequires: autoconf >= 2.54 |
73dee4c5 | 21 | BuildRequires: automake >= 1:1.9 |
71143777 | 22 | BuildRequires: docbook-dtd412-xml |
4ae405de | 23 | %{?with_esd:BuildRequires: esound-devel >= 0.2.26} |
8d574031 | 24 | BuildRequires: gettext-tools |
751dfc26 | 25 | BuildRequires: glib2-devel >= 1:2.18.0 |
89fa64c6 | 26 | BuildRequires: gnome-common >= 2.20.0 |
751dfc26 | 27 | BuildRequires: gnome-vfs2-devel >= 2.24.0 |
73dee4c5 | 28 | BuildRequires: gtk-doc >= 1.8 |
751dfc26 MB |
29 | BuildRequires: intltool >= 0.40.0 |
30 | BuildRequires: libbonobo-devel >= 2.24.0 | |
945010d3 | 31 | BuildRequires: libcanberra-devel |
a98935d2 | 32 | BuildRequires: libtool |
3f559485 | 33 | BuildRequires: perl-base |
05a7d105 | 34 | BuildRequires: pkgconfig |
4ae405de | 35 | BuildRequires: popt-devel >= 1.5 |
47f42bab | 36 | BuildRequires: rpm-build >= 4.6 |
e1ec0622 | 37 | BuildRequires: rpmbuild(macros) >= 1.197 |
73dee4c5 | 38 | Requires(post,preun): GConf2 |
c9a7f769 | 39 | Requires: %{name}-libs = %{version}-%{release} |
4ae405de | 40 | Requires: libbonobo >= 2.24.0 |
76268d48 | 41 | Suggests: gnome-vfs2 |
10913fb3 | 42 | Obsoletes: gnome-objc |
6654ed77 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6b85e424 | 44 | |
6654ed77 | 45 | %description |
6b85e424 | 46 | GNOME (GNU Network Object Model Environment) is a user-friendly set of |
47 | GUI applications and desktop tools to be used in conjunction with a | |
48 | window manager for the X Window System. The libgnome package includes | |
49 | non-GUI-related libraries that are needed to run GNOME. The libgnomeui | |
50 | package contains X11-dependent GNOME library features. | |
51 | ||
b3901171 | 52 | %description -l pl.UTF-8 |
6bf88bef | 53 | GNOME (GNU Network Object Model Environment) jest przyjaznym dla |
b3901171 JR |
54 | użytkownika zbiorem aplikacji i narzędzi do używania w połączeniu z |
55 | zarządcą okien pod X Window System. Pakiet libgnome zawiera biblioteki | |
56 | nie związane z graficznym interfejsem potrzebne do uruchomienia GNOME. | |
57 | Pakiet libgnomeui zawiera biblioteki GNOME zależne od X11. | |
6b85e424 | 58 | |
c9a7f769 | 59 | %package libs |
ebae20e2 JB |
60 | Summary: Base libgnome library and bonobo modules |
61 | Summary(pl.UTF-8): Podstawowa biblioteka libgnome oraz moduły bonobo | |
c9a7f769 | 62 | Group: Libraries |
4ae405de | 63 | Requires: GConf2-libs >= 2.24.0 |
c9a7f769 | 64 | Requires: gnome-vfs2-libs >= 2.24.0 |
47f42bab | 65 | Requires: libbonobo >= 2.24.0 |
4ae405de | 66 | Requires: popt >= 1.5 |
7f1b9eef | 67 | Conflicts: libgnome < 2.32.0-3 |
c9a7f769 JR |
68 | |
69 | %description libs | |
ebae20e2 | 70 | Base libgnome library and bonobo modules. |
c9a7f769 JR |
71 | |
72 | %description libs -l pl.UTF-8 | |
ebae20e2 | 73 | Podstawowa biblioteka libgnome oraz moduły bonobo. |
c9a7f769 | 74 | |
6b85e424 | 75 | %package devel |
6bf88bef | 76 | Summary: Headers for libgnome |
977c9b37 | 77 | Summary(pl.UTF-8): Pliki nagłówkowe libgnome |
5f32eff3 | 78 | Group: Development/Libraries |
3f6ac39b | 79 | Requires: %{name}-libs = %{version}-%{release} |
751dfc26 | 80 | Requires: GConf2-devel >= 2.24.0 |
751dfc26 MB |
81 | Requires: gnome-vfs2-devel >= 2.24.0 |
82 | Requires: libbonobo-devel >= 2.24.0 | |
aaa14dd9 | 83 | Requires: libcanberra-devel |
4ae405de | 84 | Requires: popt-devel >= 1.5 |
6b85e424 | 85 | |
86 | %description devel | |
3f6ac39b JB |
87 | This package includes the header files for libgnome applications |
88 | development. | |
6b85e424 | 89 | |
b3901171 JR |
90 | %description devel -l pl.UTF-8 |
91 | Pliki nagłówkowe potrzebne do kompilowania programów korzystających z | |
35540c82 | 92 | libgnome. |
6bf88bef JB |
93 | |
94 | %package static | |
95 | Summary: Static libgnome libraries | |
977c9b37 | 96 | Summary(pl.UTF-8): Statyczne biblioteki libgnome |
5f32eff3 | 97 | Group: Development/Libraries |
3f559485 | 98 | Requires: %{name}-devel = %{version}-%{release} |
6bf88bef JB |
99 | |
100 | %description static | |
101 | Static version of libgnome libraries. | |
102 | ||
b3901171 | 103 | %description static -l pl.UTF-8 |
6bf88bef JB |
104 | Statyczna wersja bibliotek libgnome. |
105 | ||
513d7e57 | 106 | %package apidocs |
107 | Summary: libgnome API documentation | |
977c9b37 | 108 | Summary(pl.UTF-8): Dokumentacja API libgnome |
513d7e57 | 109 | Group: Documentation |
110 | Requires: gtk-doc-common | |
3a6e8d77 | 111 | BuildArch: noarch |
513d7e57 | 112 | |
113 | %description apidocs | |
114 | libgnome API documentation. | |
115 | ||
b3901171 | 116 | %description apidocs -l pl.UTF-8 |
513d7e57 | 117 | Dokumentacja API libgnome. |
118 | ||
6b85e424 | 119 | %prep |
120 | %setup -q | |
eb8c8693 | 121 | %patch0 -p1 |
77057139 | 122 | %patch1 -p1 |
6b85e424 | 123 | |
47f42bab JB |
124 | # gtk-doc no longer handles legacy encodings; use just ascii space instead of nbsp |
125 | %{__sed} -i -e 's/\xa0/ /' libgnome/gnome-config.h | |
126 | ||
6b85e424 | 127 | %build |
8fee52de | 128 | %{__gtkdocize} |
e1ec0622 | 129 | %{__glib_gettextize} |
130 | %{__intltoolize} | |
2b687a0a AF |
131 | %{__libtoolize} |
132 | %{__aclocal} | |
133 | %{__autoconf} | |
8406c40f | 134 | %{__autoheader} |
2b687a0a | 135 | %{__automake} |
3c2252e5 | 136 | %configure \ |
4ae405de | 137 | %{?with_esd:--enable-esd} \ |
f35f6f11 | 138 | --enable-gtk-doc \ |
4ae405de JB |
139 | --disable-schemas-install \ |
140 | --disable-silent-rules \ | |
141 | %{!?with_static_libs:--disable-static} \ | |
f35f6f11 | 142 | --with-html-dir=%{_gtkdocdir} |
6bf88bef | 143 | %{__make} |
6b85e424 | 144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
4ae405de | 147 | |
3c2252e5 | 148 | %{__make} install \ |
4ae405de | 149 | DESTDIR=$RPM_BUILD_ROOT |
6b85e424 | 150 | |
43bd371f | 151 | # no static modules and *.la for bonobo modules |
4ae405de JB |
152 | # libraries .la obsoleted by pkg-config |
153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
154 | $RPM_BUILD_ROOT%{_libdir}/bonobo/monikers/*.la | |
155 | %if %{with static_libs} | |
156 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bonobo/monikers/*.a | |
157 | %endif | |
ba754bf9 | 158 | |
3a6e8d77 | 159 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
ebae20e2 | 160 | |
4ae405de | 161 | %find_lang %{name}-2.0 |
6b85e424 | 162 | |
163 | %clean | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %post | |
e1ec0622 | 167 | %gconf_schema_install desktop_gnome_accessibility_keyboard.schemas |
168 | %gconf_schema_install desktop_gnome_accessibility_startup.schemas | |
73dee4c5 MB |
169 | %gconf_schema_install desktop_gnome_applications_at_mobility.schemas |
170 | %gconf_schema_install desktop_gnome_applications_at_visual.schemas | |
e1ec0622 | 171 | %gconf_schema_install desktop_gnome_applications_browser.schemas |
c718ee62 | 172 | %gconf_schema_install desktop_gnome_applications_office.schemas |
e1ec0622 | 173 | %gconf_schema_install desktop_gnome_applications_terminal.schemas |
174 | %gconf_schema_install desktop_gnome_applications_window_manager.schemas | |
c3d880e2 | 175 | %gconf_schema_install desktop_gnome_background.schemas |
e1ec0622 | 176 | %gconf_schema_install desktop_gnome_file_views.schemas |
c3d880e2 | 177 | %gconf_schema_install desktop_gnome_interface.schemas |
e1ec0622 | 178 | %gconf_schema_install desktop_gnome_lockdown.schemas |
179 | %gconf_schema_install desktop_gnome_peripherals_keyboard.schemas | |
180 | %gconf_schema_install desktop_gnome_peripherals_mouse.schemas | |
181 | %gconf_schema_install desktop_gnome_sound.schemas | |
751dfc26 | 182 | %gconf_schema_install desktop_gnome_thumbnail_cache.schemas |
e1ec0622 | 183 | %gconf_schema_install desktop_gnome_thumbnailers.schemas |
184 | %gconf_schema_install desktop_gnome_typing_break.schemas | |
185 | ||
186 | %preun | |
e1ec0622 | 187 | %gconf_schema_uninstall desktop_gnome_accessibility_keyboard.schemas |
188 | %gconf_schema_uninstall desktop_gnome_accessibility_startup.schemas | |
73dee4c5 MB |
189 | %gconf_schema_uninstall desktop_gnome_applications_at_mobility.schemas |
190 | %gconf_schema_uninstall desktop_gnome_applications_at_visual.schemas | |
e1ec0622 | 191 | %gconf_schema_uninstall desktop_gnome_applications_browser.schemas |
c718ee62 | 192 | %gconf_schema_uninstall desktop_gnome_applications_office.schemas |
e1ec0622 | 193 | %gconf_schema_uninstall desktop_gnome_applications_terminal.schemas |
194 | %gconf_schema_uninstall desktop_gnome_applications_window_manager.schemas | |
c3d880e2 | 195 | %gconf_schema_uninstall desktop_gnome_background.schemas |
e1ec0622 | 196 | %gconf_schema_uninstall desktop_gnome_file_views.schemas |
c3d880e2 | 197 | %gconf_schema_uninstall desktop_gnome_interface.schemas |
e1ec0622 | 198 | %gconf_schema_uninstall desktop_gnome_lockdown.schemas |
199 | %gconf_schema_uninstall desktop_gnome_peripherals_keyboard.schemas | |
200 | %gconf_schema_uninstall desktop_gnome_peripherals_mouse.schemas | |
201 | %gconf_schema_uninstall desktop_gnome_sound.schemas | |
751dfc26 | 202 | %gconf_schema_uninstall desktop_gnome_thumbnail_cache.schemas |
e1ec0622 | 203 | %gconf_schema_uninstall desktop_gnome_thumbnailers.schemas |
204 | %gconf_schema_uninstall desktop_gnome_typing_break.schemas | |
205 | ||
ebae20e2 JB |
206 | %post libs -p /sbin/ldconfig |
207 | %postun libs -p /sbin/ldconfig | |
6bf88bef | 208 | |
4ae405de | 209 | %files -f %{name}-2.0.lang |
6654ed77 | 210 | %defattr(644,root,root,755) |
73dee4c5 | 211 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
941b3af0 | 212 | %attr(755,root,root) %{_bindir}/gnome-open |
fd15307d MB |
213 | %dir %{_datadir}/gnome-background-properties |
214 | %{_datadir}/gnome-background-properties/gnome-default.xml | |
215 | %dir %{_pixmapsdir}/backgrounds | |
216 | %dir %{_pixmapsdir}/backgrounds/gnome | |
217 | %{_pixmapsdir}/backgrounds/gnome/background-default.jpg | |
fd9cc07f | 218 | %{_mandir}/man7/gnome-options* |
219 | %{_sysconfdir}/gconf/schemas/desktop_gnome_accessibility_keyboard.schemas | |
220 | %{_sysconfdir}/gconf/schemas/desktop_gnome_accessibility_startup.schemas | |
73dee4c5 MB |
221 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_at_mobility.schemas |
222 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_at_visual.schemas | |
fd9cc07f | 223 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_browser.schemas |
c718ee62 | 224 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_office.schemas |
fd9cc07f | 225 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_terminal.schemas |
226 | %{_sysconfdir}/gconf/schemas/desktop_gnome_applications_window_manager.schemas | |
c3d880e2 | 227 | %{_sysconfdir}/gconf/schemas/desktop_gnome_background.schemas |
fd9cc07f | 228 | %{_sysconfdir}/gconf/schemas/desktop_gnome_file_views.schemas |
c3d880e2 | 229 | %{_sysconfdir}/gconf/schemas/desktop_gnome_interface.schemas |
fd9cc07f | 230 | %{_sysconfdir}/gconf/schemas/desktop_gnome_lockdown.schemas |
231 | %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard.schemas | |
232 | %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_mouse.schemas | |
233 | %{_sysconfdir}/gconf/schemas/desktop_gnome_sound.schemas | |
751dfc26 | 234 | %{_sysconfdir}/gconf/schemas/desktop_gnome_thumbnail_cache.schemas |
fd9cc07f | 235 | %{_sysconfdir}/gconf/schemas/desktop_gnome_thumbnailers.schemas |
236 | %{_sysconfdir}/gconf/schemas/desktop_gnome_typing_break.schemas | |
4ae405de JB |
237 | %dir %{_sysconfdir}/sound |
238 | %dir %{_sysconfdir}/sound/events | |
239 | %{_sysconfdir}/sound/events/gtk-events-2.soundlist | |
240 | %{_sysconfdir}/sound/events/gnome-2.soundlist | |
6b85e424 | 241 | |
c9a7f769 JR |
242 | %files libs |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_libdir}/libgnome-2.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libgnome-2.so.0 | |
ebae20e2 JB |
246 | %attr(755,root,root) %{_libdir}/bonobo/monikers/libmoniker_extra_2.so |
247 | %{_libdir}/bonobo/servers/GNOME_Moniker_std.server | |
c9a7f769 | 248 | |
6b85e424 | 249 | %files devel |
6654ed77 | 250 | %defattr(644,root,root,755) |
c69c381d | 251 | %attr(755,root,root) %{_libdir}/libgnome-2.so |
fd9cc07f | 252 | %{_includedir}/libgnome-2.0 |
d403c5ac | 253 | %{_pkgconfigdir}/libgnome-2.0.pc |
6bf88bef | 254 | |
4ae405de | 255 | %if %{with static_libs} |
6bf88bef JB |
256 | %files static |
257 | %defattr(644,root,root,755) | |
c69c381d | 258 | %{_libdir}/libgnome-2.a |
4ae405de | 259 | %endif |
513d7e57 | 260 | |
261 | %files apidocs | |
262 | %defattr(644,root,root,755) | |
263 | %{_gtkdocdir}/%{name} |