Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569740
en ru br
ALT Linux repos
S:42.2-alt1
5.0: 2.26.0-alt1
4.1: 2.23.1-alt2.M41.2
4.0: 2.16.2-alt1
3.0: 2.10.0-alt1

Group :: Graphical desktop/GNOME
RPM: yelp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ver_major 2.23
%def_enable man
%def_enable info
%def_enable beagle
%def_enable debug

# Uncomment exactly one of the following (the best choice is the lowest):

#define gecko_provider thunderbird
#define gecko_provider mozilla
#define gecko_provider seamonkey
#define gecko_provider firefox
%define gecko_provider xulrunner

Name: yelp
Version: %ver_major.1
Release: alt2.M41.2

Summary: Lightweight help browser for GNOME
License: %gpl2plus
Group: Graphical desktop/GNOME
URL: ftp://ftp.gnome.org

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2

# Security fix for https://bugs.launchpad.net/bugs/254860

Patch00: yelp-2.23.1-fix-format-string.patch

Patch1: yelp-alt-help_url.patch

# from Fedora: register docbook mime type for yelp

Patch2: yelp-2.13.2-add-mime-handling.patch
# (fc) 2.4.2-4mdk strip newline from title  
Patch4: yelp-2.6.0-title.patch
# fwang: Patch to define langs before using
Patch6: yelp-2.19.1-langs-define.patch
# from Fedora: libxul support patch
Patch8: yelp-2.15.91-fedora-use-pango.patch


# From configure.in

%define gnome_doc_utils 0.11.1
%define gio_ver 2.0
%define gtk_ver 2.10.0
%define libgnome_ver 2.14.0
%define libgnomeui_ver 2.14.0
%define libxml_ver 2.6.5
%define libxslt_ver 1.1.4
%define startup_notification_ver 0.8
%define rarian_ver 0.7.0
%define beagle_ver 0.3.0
%define gecko_ver 1.9

BuildPreReq: desktop-file-utils
Requires(post,postun): desktop-file-utils
PreReq: GConf
Requires: docbook-dtds
Requires: gnome-doc-utils-xslt

# %%gconf_schemasdir is defined in rpm-build-gnome-0.5

BuildPreReq: rpm-build-licenses rpm-build-gnome >= 0.5

# From configure.in

BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35
BuildPreReq: GConf
BuildPreReq: gnome-doc-utils >= %gnome_doc_utils
BuildPreReq: libgio-devel >= %gio_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnome-devel >= %libgnome_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libxml2-devel >= %libxml_ver
BuildPreReq: libxslt-devel >= %libxslt_ver
BuildPreReq: libstartup-notification-devel >= %startup_notification_ver
BuildPreReq: librarian-devel >= %rarian_ver
BuildPreReq: libdbus-glib-devel
BuildPreReq: libX11-devel libXt-devel libSM-devel
%{?_enable_beagle:BuildPreReq: libbeagle-devel >= %beagle_ver}
BuildPreReq: gcc-c++
BuildPreReq: %gecko_provider-devel >= %gecko_ver
BuildPreReq: zlib-devel bzlib-devel liblzma-devel

%description
Yelp is a help browser for the GNOME desktop. Yelp provides
a simple graphical interface for viewing DocBook, HTML, man, and info
formatted documentation. The name Yelp was suggested by Daniel Lundin.
Yelp is pronounced the same as the swedish word for 'help'.

%prep
%setup -q
%patch00
%patch1 -p1
%patch2 -p1 -b .add-mime-handling
%patch4 -p1 -b .title
%patch6 -p1 -b .lang-define
%patch8 -p1

%build
%autoreconf

export CXXFLAGS="$CXXFLAGS $(pkg-config --cflags libxul-embedding)"
export CXXFLAGS="$CXXFLAGS -I%_includedir/nspr"
export LDFLAGS="$LDFLAGS $(pkg-config --libs libxul-embedding)"

%configure \
--disable-schemas-install\
--disable-static \
--with-search=auto \
:%{subst_enable man} \
:%{subst_enable info} \
--with-gecko=libxul-embedding \
:%{subst_enable debug}

%make_build

%install
%make_install install DESTDIR=%buildroot

%find_lang %name

%post
%gconf2_install %name
%update_desktopdb
%update_menus

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi

%postun
%clean_desktopdb
%clean_menus

%files -f %name.lang
%_bindir/*
%_desktopdir/*
%_datadir/%name
%_iconsdir/hicolor/192x192/apps/yelp-icon-big.png
%config %gconf_schemasdir/*
%doc AUTHORS ChangeLog README NEWS TODO

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin