Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37517519
en ru br
ALT Linux repositórios
3.0: 2.9.5-alt1

Group :: Sistema/Bibliotecas
RPM: librsvg2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _name librsvg
%define ver_major 2.9
%def_disable static
%def_with croco

Name: librsvg2
Version: %ver_major.5
Release: alt1

Summary: An SVG library based on libart
License: LGPL
Group: System/Libraries

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

%define gtk_ver 2.6.0
%define gtk_binary_ver 2.4.0
%define libxml2_ver 2.5.6
%define glib_ver 2.6.0
%define libart_lgpl_ver 2.3.17
%define pango_ver 1.8.0
%define freetype2_ver 2.1.2
%define libgsf_ver 1.10.1
%define croco_ver 0.6.0

PreReq: libgtk+2 >= %gtk_ver
%if_with croco
PreReq: libcroco >= %croco_ver
%endif

Requires: libxml2 >= %libxml2_ver
Requires: glib2 >= %glib_ver
Requires: libart_lgpl >= %libart_lgpl_ver
Requires: freetype2 >= %freetype2_ver
Requires: libpango >= %pango_ver
Requires: libgsf >= %libgsf_ver

BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libart_lgpl-devel >= %libart_lgpl_ver
BuildPreReq: freetype2-devel >= %freetype2_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libgsf-devel >= %libgsf_ver

%if_with croco
BuildPreReq: libcroco-devel >= %croco_ver
%endif

# Automatically added by buildreq on Wed Mar 17 2004

BuildRequires: docbook-dtds docbook-style-dsssl docbook-utils fontconfig-devel
BuildRequires: freetype2-devel gcc-c++ glib2-devel glibc-devel-static gtk-doc
BuildRequires: libart_lgpl-devel libatk-devel libgsf-devel libgtk+2-devel
BuildRequires: libpango-devel libpopt-devel libxml2-devel mozilla-devel
BuildRequires: openjade pkgconfig sgml-common zlib-devel

%description
An SVG library based on libart.

%package devel
Summary: Libraries and include files for developing with librsvg
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
Requires: gtk2-devel >= %gtk_ver
Requires: libxml2-devel >= %libxml2_ver
Requires: freetype2-devel >= %freetype2_ver
Requires: glib2-devel >= %glib_ver
Requires: libart_lgpl-devel >= %libart_lgpl_ver
Requires: libpango-devel >= %pango_ver
%if_with croco
Requires: libcroco-devel >= %croco_ver
%endif

%description devel
This package provides the necessary development libraries and include
files to allow you to develop with librsvg.

%package devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Conflicts: %name < %version-%release

%description devel-doc
%name is a SVG library based on libart.
This package contains development documentation for %name

%package devel-static
Summary: Static libraries for developing with librsvg
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release

%description devel-static
This package provides the necessary static libraries files to allow you
to build static software with librsvg.

%package utils
Summary: Utilities to manipulate SVG files
Group: Graphics
Requires: %name = %version-%release

%description utils
This package contains small utilities to manipulate SVG files found in
%name package.

%package -n mozilla-plugin-svg
Summary: SVG plugin for Mozilla
Group: Graphics
Requires: %name = %version-%release

%description -n mozilla-plugin-svg
This package contains SVG plugin for Mozilla web browser.

%define _gtk_docdir %_datadir/gtk-doc/html
%define _mozilla_plugindir %_libdir/mozilla/plugins

%prep
%setup -q -n %_name-%version

%build
%configure \
%{subst_enable static} \
--enable-pixbuf-loader \
--enable-gtk-theme \
--with-svgz \
--with-html-dir=%buildroot%_gtk_docdir/%name \
%if_without croco
--without-croco
%endif

%make_build

%install
%makeinstall

# remove non-packaged files

%__rm -f %buildroot%_libdir/gtk-2.0/%gtk_binary_ver/*/*.la

%__bzip2 -9fk ChangeLog

%post
%post_ldconfig
%_bindir/gdk-pixbuf-query-loaders > %_sysconfdir/gtk-2.0/gdk-pixbuf.loaders

%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%_libdir/gtk-2.0/%gtk_binary_ver/*/*.so
%doc AUTHORS ChangeLog* NEWS README TODO

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/%_name-2.0.pc

%files devel-doc
%_gtk_docdir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/gtk-2.0/%gtk_binary_ver/*/*.a
%endif

%files utils
%_bindir/*
%_man1dir/*
%_datadir/pixmaps/*

%files -n mozilla-plugin-svg
%_mozilla_plugindir/*

%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