1 |
%define req_gnome_doc_utils_version 0.19.1 |
2 |
|
3 |
Summary: GNOME 2 help browser |
4 |
Name: yelp |
5 |
Version: 2.30.2 |
6 |
Release: %mkrel 3 |
7 |
# fwang: source0 was a merge of upstream webkit and gnome-2-30 branch |
8 |
# git clone git://git.gnome.org/yelp |
9 |
# cd yelp |
10 |
# git checkout webkit |
11 |
# git merge origin/gnome-2-30 |
12 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
13 |
Source1: yelp.png |
14 |
# from Fedora: register docbook mime type for yelp |
15 |
Patch2: yelp-2.13.2-add-mime-handling.patch |
16 |
# (fc) 2.4.2-4mdk strip newline from title |
17 |
Patch4: yelp-2.6.0-title.patch |
18 |
Patch5: yelp-2.30.2-xz-support.patch |
19 |
URL: http://live.gnome.org/Yelp |
20 |
License: GPLv2+ |
21 |
Group: Graphical desktop/GNOME |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
23 |
Requires: gnome-doc-utils >= %{req_gnome_doc_utils_version} |
24 |
Requires: man |
25 |
BuildRequires: gettext |
26 |
BuildRequires: webkitgtk-devel |
27 |
BuildRequires: gtk+2-devel |
28 |
BuildRequires: dbus-glib-devel |
29 |
BuildRequires: libGConf2-devel |
30 |
BuildRequires: startup-notification-devel |
31 |
BuildRequires: libbzip2-devel |
32 |
BuildRequires: rarian-devel |
33 |
BuildRequires: liblzma-devel |
34 |
BuildRequires: intltool |
35 |
BuildRequires: gnome-doc-utils >= %{req_gnome_doc_utils_version} |
36 |
BuildRequires: libxslt-devel texinfo |
37 |
BuildRequires: desktop-file-utils |
38 |
BuildRequires: gnome-common |
39 |
BuildRequires: gettext-devel |
40 |
|
41 |
%description |
42 |
Help browser for GNOME 2 which supports docbook documents, info and man. |
43 |
|
44 |
%prep |
45 |
%setup -q |
46 |
%patch2 -p1 -b .add-mime-handling~ |
47 |
#%patch4 -p1 -b .title~ |
48 |
%patch5 -p1 -b .xz~ |
49 |
|
50 |
#ensure schema is recreated correctly |
51 |
rm -f data/yelp.schemas |
52 |
|
53 |
%build |
54 |
NOCONFIGURE=yes gnome-autogen.sh |
55 |
%configure2_5x \ |
56 |
--with-search=basic \ |
57 |
--enable-debug |
58 |
|
59 |
%make |
60 |
|
61 |
%install |
62 |
rm -rf %{buildroot} |
63 |
|
64 |
%makeinstall_std |
65 |
|
66 |
desktop-file-install \ |
67 |
--remove-category="Application" \ |
68 |
--add-only-show-in="GNOME" \ |
69 |
--add-category="Documentation" \ |
70 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* |
71 |
|
72 |
mkdir -p %{buildroot}%{_datadir}/pixmaps |
73 |
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/gnome-help.png |
74 |
|
75 |
%find_lang %{name} |
76 |
|
77 |
%clean |
78 |
rm -rf %{buildroot} |
79 |
|
80 |
%preun |
81 |
%preun_uninstall_gconf_schemas %name |
82 |
|
83 |
%files -f %{name}.lang |
84 |
%defattr(-,root,root) |
85 |
%doc README TODO AUTHORS NEWS |
86 |
%{_sysconfdir}/gconf/schemas/%name.schemas |
87 |
%{_bindir}/* |
88 |
%{_datadir}/applications/* |
89 |
%{_datadir}/yelp |
90 |
%{_datadir}/pixmaps/* |
91 |
%{_iconsdir}/hicolor/*/apps/*.png |
92 |
|
93 |
|