]> git.pld-linux.org Git - packages/libgnome.git/blame - libgnome.spec
- updated URLs and libbonobo dependency, fix for current gtk-doc; rel 6
[packages/libgnome.git] / libgnome.spec
CommitLineData
4ae405de
JB
1#
2# Conditional build:
3%bcond_with esd # EsounD support (obsolete)
4%bcond_without static_libs # static library
3a6e8d77 5
6654ed77 6Summary: GNOME base library
977c9b37 7Summary(pl.UTF-8): Podstawowa biblioteka GNOME
6654ed77 8Name: libgnome
69b7de70 9Version: 2.32.1
47f42bab 10Release: 6
c69c381d 11License: LGPL v2+
5f32eff3 12Group: Libraries
47f42bab 13Source0: https://download.gnome.org/sources/libgnome/2.32/%{name}-%{version}.tar.bz2
69b7de70 14# Source0-md5: a4345e6087ae6195d65a4674ffdca559
eb8c8693 15Patch0: %{name}-load-config.patch
77057139 16Patch1: %{name}-glib.patch
47f42bab 17URL: https://www.gnome.org/
751dfc26 18BuildRequires: GConf2-devel >= 2.24.0
3a6e8d77 19%{?with_esd:BuildRequires: audiofile-devel >= 0.2.3}
02ba3b00 20BuildRequires: autoconf >= 2.54
73dee4c5 21BuildRequires: automake >= 1:1.9
71143777 22BuildRequires: docbook-dtd412-xml
4ae405de 23%{?with_esd:BuildRequires: esound-devel >= 0.2.26}
8d574031 24BuildRequires: gettext-tools
751dfc26 25BuildRequires: glib2-devel >= 1:2.18.0
89fa64c6 26BuildRequires: gnome-common >= 2.20.0
751dfc26 27BuildRequires: gnome-vfs2-devel >= 2.24.0
73dee4c5 28BuildRequires: gtk-doc >= 1.8
751dfc26
MB
29BuildRequires: intltool >= 0.40.0
30BuildRequires: libbonobo-devel >= 2.24.0
945010d3 31BuildRequires: libcanberra-devel
a98935d2 32BuildRequires: libtool
3f559485 33BuildRequires: perl-base
05a7d105 34BuildRequires: pkgconfig
4ae405de 35BuildRequires: popt-devel >= 1.5
47f42bab 36BuildRequires: rpm-build >= 4.6
e1ec0622 37BuildRequires: rpmbuild(macros) >= 1.197
73dee4c5 38Requires(post,preun): GConf2
c9a7f769 39Requires: %{name}-libs = %{version}-%{release}
4ae405de 40Requires: libbonobo >= 2.24.0
76268d48 41Suggests: gnome-vfs2
10913fb3 42Obsoletes: gnome-objc
6654ed77 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6b85e424 44
6654ed77 45%description
6b85e424 46GNOME (GNU Network Object Model Environment) is a user-friendly set of
47GUI applications and desktop tools to be used in conjunction with a
48window manager for the X Window System. The libgnome package includes
49non-GUI-related libraries that are needed to run GNOME. The libgnomeui
50package contains X11-dependent GNOME library features.
51
b3901171 52%description -l pl.UTF-8
6bf88bef 53GNOME (GNU Network Object Model Environment) jest przyjaznym dla
b3901171
JR
54użytkownika zbiorem aplikacji i narzędzi do używania w połączeniu z
55zarządcą okien pod X Window System. Pakiet libgnome zawiera biblioteki
56nie związane z graficznym interfejsem potrzebne do uruchomienia GNOME.
57Pakiet libgnomeui zawiera biblioteki GNOME zależne od X11.
6b85e424 58
c9a7f769 59%package libs
ebae20e2
JB
60Summary: Base libgnome library and bonobo modules
61Summary(pl.UTF-8): Podstawowa biblioteka libgnome oraz moduły bonobo
c9a7f769 62Group: Libraries
4ae405de 63Requires: GConf2-libs >= 2.24.0
c9a7f769 64Requires: gnome-vfs2-libs >= 2.24.0
47f42bab 65Requires: libbonobo >= 2.24.0
4ae405de 66Requires: popt >= 1.5
7f1b9eef 67Conflicts: libgnome < 2.32.0-3
c9a7f769
JR
68
69%description libs
ebae20e2 70Base libgnome library and bonobo modules.
c9a7f769
JR
71
72%description libs -l pl.UTF-8
ebae20e2 73Podstawowa biblioteka libgnome oraz moduły bonobo.
c9a7f769 74
6b85e424 75%package devel
6bf88bef 76Summary: Headers for libgnome
977c9b37 77Summary(pl.UTF-8): Pliki nagłówkowe libgnome
5f32eff3 78Group: Development/Libraries
3f6ac39b 79Requires: %{name}-libs = %{version}-%{release}
751dfc26 80Requires: GConf2-devel >= 2.24.0
751dfc26
MB
81Requires: gnome-vfs2-devel >= 2.24.0
82Requires: libbonobo-devel >= 2.24.0
aaa14dd9 83Requires: libcanberra-devel
4ae405de 84Requires: popt-devel >= 1.5
6b85e424 85
86%description devel
3f6ac39b
JB
87This package includes the header files for libgnome applications
88development.
6b85e424 89
b3901171
JR
90%description devel -l pl.UTF-8
91Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
35540c82 92libgnome.
6bf88bef
JB
93
94%package static
95Summary: Static libgnome libraries
977c9b37 96Summary(pl.UTF-8): Statyczne biblioteki libgnome
5f32eff3 97Group: Development/Libraries
3f559485 98Requires: %{name}-devel = %{version}-%{release}
6bf88bef
JB
99
100%description static
101Static version of libgnome libraries.
102
b3901171 103%description static -l pl.UTF-8
6bf88bef
JB
104Statyczna wersja bibliotek libgnome.
105
513d7e57 106%package apidocs
107Summary: libgnome API documentation
977c9b37 108Summary(pl.UTF-8): Dokumentacja API libgnome
513d7e57 109Group: Documentation
110Requires: gtk-doc-common
3a6e8d77 111BuildArch: noarch
513d7e57 112
113%description apidocs
114libgnome API documentation.
115
b3901171 116%description apidocs -l pl.UTF-8
513d7e57 117Dokumentacja 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
146rm -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
164rm -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}
This page took 0.08001 seconds and 4 git commands to generate.