2 # move stylesheets to /usr/share/sgml
3 # use more generic stylesheet location
4 # remove docbook dtds and stylesheets from package and use system xml catalog
7 %bcond_with mozilla_firefox # build with mozilla-firefox-devel
9 Summary: A system documentation reader from the GNOME project
10 Summary(pl): Czytnik dokumentacji z projektu GNOME
15 Group: X11/Applications
16 Source0: http://ftp.gnome.org/pub/gnome/sources/yelp/2.12/%{name}-%{version}.tar.bz2
17 # Source0-md5: e229529aa1dacfd269024511e2c12ad2
18 Patch0: %{name}-desktop-categories.patch
19 Patch1: %{name}-MOZILLA_HOME.patch
20 URL: http://www.gnome.org/
21 BuildRequires: GConf2-devel >= 2.12.0
22 BuildRequires: ORBit2-devel >= 1:2.12.4
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: bzip2-devel
26 BuildRequires: glib2-devel >= 1:2.8.1
27 BuildRequires: gnome-common >= 2.8.0
28 BuildRequires: gnome-doc-utils >= 0.4.0
29 BuildRequires: gnome-vfs2-devel >= 2.12.0
30 BuildRequires: libglade2-devel >= 1:2.5.1
31 BuildRequires: libgnomeui-devel >= 2.12.0
32 BuildRequires: libtool
33 BuildRequires: libxml2-devel >= 2.6.21
34 BuildRequires: libxslt-devel >= 1.1.5
35 %if %{with mozilla_firefox}
36 BuildRequires: mozilla-firefox-devel
38 BuildRequires: mozilla-devel >= 5:1.7
40 BuildRequires: pkgconfig >= 1:0.15.0
41 BuildRequires: popt-devel
42 BuildRequires: rpmbuild(macros) >= 1.197
43 BuildRequires: zlib-devel
44 Requires(post,preun): GConf2
45 Requires: docbook-style-xsl >= 1.55.0
46 Requires: gnome-doc-utils >= 0.4.0
47 Requires: gnome-vfs2 >= 2.12.0
48 Requires: scrollkeeper
49 %if %{with mozilla_firefox}
50 %requires_eq mozilla-firefox
52 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 # can be provided by mozilla or mozilla-embedded
57 %define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so
60 Yelp is the GNOME help/documentation browser. It is designed to help
61 you browse all the documentation on your system in one central tool.
64 Yelp jest przegl±dark± pomocy i dokumentacji GNOME. Umo¿liwia
65 przegl±danie ca³ej dokumentacji systemu za pomoc± jednego, centralnego
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
89 %find_lang %{name} --with-gnome --all-name
92 rm -rf $RPM_BUILD_ROOT
95 %gconf_schema_install yelp.schemas
98 %gconf_schema_uninstall yelp.schemas
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc README ChangeLog NEWS TODO AUTHORS
103 %attr(755,root,root) %{_bindir}/*
106 %{_iconsdir}/hicolor/192x192/apps/yelp-icon-big.png
107 %{_libdir}/bonobo/servers/*
108 %{_sysconfdir}/gconf/schemas/yelp.schemas