Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37601010
en ru br
ALT Linux repositórios
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 :: Desktop gráfico/GNOME
RPM: yelp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define ver_major 2.16
%def_enable man
%def_enable info
%def_disable beagle

# 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.2
Release: alt1

Summary: Lightweight help browser for GNOME
License: GPL
Group: Graphical desktop/GNOME
Url: ftp://ftp.gnome.org

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

# From configure.in

%define gnome_doc_utils 0.3.1
%define gnome_vfs_ver 1.1.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 beagle_ver 0.2.4

PreReq: GConf2
Requires: gnome-doc-utils >= %gnome_doc_utils

# From configure.in

BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35
BuildPreReq: GConf2
BuildPreReq: gnome-doc-utils >= %gnome_doc_utils
BuildPreReq: gnome-vfs2-devel >= %gnome_vfs_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: libdbus-glib-devel
BuildPreReq: libX11-devel libXt-devel
%{?_enable_beagle:BuildPreReq: libbeagle-devel >= %beagle_ver}
BuildPreReq: gcc-c++ %gecko_provider-devel
BuildPreReq: zlib-devel bzlib-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

%build
%__autoreconf
%configure \
   --disable-install-schemas \
   --with-search=auto \
   %{subst_enable man} \
   %{subst_enable info}

%make_build

%install
%makeinstall

# yelp-pregenerate macro

%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__cat <<__EOF__ >%buildroot%_sysconfdir/rpm/macros.d/%name
%%_yelp_pregenerate_bin %%_bindir/yelp-pregenerate
%%yelp_pregenerate() \\
for h in %%*; do \\
   if [ -x %%_yelp_pregenerate_bin ]; then \\
%%_yelp_pregenerate_bin \\
%%_datadir/gnome/help/\$h/*/*.xml >/dev/null 2>&1 \\
   fi \\
done \\
%%nil
__EOF__

%__mkdir_p %buildroot%_sysconfdir/buildreqs/files/ignore.d
%__cat <<__EOF__ >%buildroot%_sysconfdir/buildreqs/files/ignore.d/%name
^%_sysconfdir/rpm/macros.d/%name$
__EOF__

%find_lang %name

%post
%gconf2_install %name

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

%files -f %name.lang
%_bindir/*
%_datadir/applications/*
%_datadir/%name
%_iconsdir/hicolor/192x192/apps/yelp-icon-big.png
%_sysconfdir/buildreqs/files/ignore.d/%name
%config %_sysconfdir/rpm/macros.d/%name
%config %_sysconfdir/gconf/schemas/*
%doc AUTHORS ChangeLog README NEWS TODO

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009