Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37399611
en ru br
Репозитории ALT
S:2.57.0-alt1
5.1: 2.26.0-alt2
4.1: 2.22.2-alt1
4.0: 2.16.1-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: librsvg

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oldname librsvg2
%define ver_major 2.16
%def_disable static

# librsvg package is not built with gnome-vfs

# librsvg-gnome package is built with gnome-vfs
# Both would produce -utils, mozilla-plugin etc. subpackages, but we don't want
# this. Using/not-using gnome-vfs is an internal thing of librsvg, and
# shouldn't matter outside it. So we define the 'main' package (librsvg, in
# this case), which will build subpackages, and librsvg-gnome will just build a
# library and (maybe) devel files. Much like libgtk+2[-directfb] nightmare >:-D
%define main_package 1
%define bname librsvg

%def_with croco
%def_disable gnome_vfs
%def_enable mozilla_plugin

# It will soon become deprecated anyway

%def_disable gnome_print

Name: %bname
Version: %ver_major.1
Release: alt2

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

Obsoletes: %oldname < 2.15.90
Provides: %oldname = %version-%release

Conflicts: %bname-gnome

Source: ftp://ftp.gnome.org/pub/gnome/sources/%bname/%ver_major/%bname-%version.tar.bz2
Source1: %bname-2.14-librsvg.map

# From configure.in

%define glib_ver 2.11.0
%define libxml2_ver 2.4.7
%define cairo_ver 1.2.0
%define pango_ver 1.2.0
%define libgsf_ver 1.6.0
%define croco_ver 0.6.1
%define gnome_vfs_ver 1.9.16
%define gnome_print 2.2.0

PreReq: libgtk+2
%{?_with_croco:PreReq: libcroco >= %croco_ver}

# From configure.in

BuildPreReq: libgtk+2-devel
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libcairo-devel >= %cairo_ver
BuildPreReq: fontconfig-devel freetype2-devel
BuildPreReq: libgsf-devel >= %libgsf_ver
%{?_with_croco:BuildPreReq: libcroco-devel >= %croco_ver}
%{?_enable_gnome_vfs:BuildPreReq: gnome-vfs-devel >= %gnome_vfs_ver}
%{?_enable_gnome_print:BuildPreReq: libgnomeprintui-devel >= %gnome_print_ver}
BuildPreReq: libX11-devel libXt-devel
%if_enabled mozilla_plugin
BuildPreReq: xulrunner-devel browser-plugins-npapi-devel
%endif

BuildRequires: gcc-c++ gtk-doc sgml-common zlib-devel

%description
An SVG library based on libart.

%ifdef main_package
%package devel
Summary: Libraries and include files for developing with librsvg
Group: Development/GNOME and GTK+
Obsoletes: %oldname-devel < 2.15.90
Provides: %oldname-devel = %version-%release
Requires: %bname = %version-%release
Requires: libgtk+2-devel
Requires: libxml2-devel >= %libxml2_ver
Requires: freetype2-devel
Requires: glib2-devel >= %glib_ver
Requires: libpango-devel >= %pango_ver

%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 %bname
Group: Development/GNOME and GTK+
Obsoletes: %oldname-devel-doc < 2.15.90
Provides: %oldname-devel-doc = %version-%release
Conflicts: %bname < %version-%release

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

%if_enabled static
%package devel-static
Summary: Static libraries for developing with librsvg
Group: Development/GNOME and GTK+
Obsoletes: %oldname-devel-static < 2.15.90
Provides: %oldname-devel-static = %version-%release
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.
%endif

%ifdef main_package
%package utils
Summary: Utilities to manipulate SVG files
Group: Graphics
Obsoletes: %oldname-utils < 2.15.90
Provides: %oldname-utils = %version-%release
Requires: %bname = %version-%release

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

%if_enabled mozilla_plugin
%package -n mozilla-plugin-svg
Summary: SVG plugin for Mozilla
Group: Graphics

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

%package -n libgtk-engine-svg
Summary: A GTK+ engine for graphical themes that use SVG images.
Group: Graphical desktop/GNOME

%description -n libgtk-engine-svg
This package contains a GTK+ engine that renders graphical themes with SVG
images in them.
%endif

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

%prep
%setup -q -n %bname-%version
#__install -p -m644 %SOURCE1 symver.map

%build
%configure \
%{subst_enable static} \
--with-svgz \
   %{subst_with croco} \
   %{?_enable_gnome_vfs:--enable-gnome-vfs} \
   %{?_enable_gnome_print:--enable-gnome-print} \
--enable-gtk-theme \
--enable-pixbuf-loader \
   %{?_enable_mozilla_plugin:--enable-mozilla-plugin} \
--with-html-dir=%buildroot%_gtk_docdir/%bname \

%make_build
#LIBTOOL_EXPORT_OPTIONS=-Wl,--version-script=symver.map

%install
%makeinstall

# Move the browser plugin where it ought to be.

mkdir -p %buildroot%browser_plugins_path
mv %buildroot%_libdir/mozilla/plugins/* %buildroot%browser_plugins_path/

%__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/*/loaders/*.so
%doc AUTHORS ChangeLog* NEWS README TODO

%ifdef main_package
%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/%bname-2.0.pc

%files devel-doc
%_gtk_docdir/*
%else
%exclude %_gtk_docdir/*
%endif

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

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

%if_enabled mozilla_plugin
%files -n mozilla-plugin-svg
%browser_plugins_path/*
%endif

%files -n libgtk-engine-svg
%_libdir/gtk-2.0/*/engines/libsvg.so
%else
%exclude %_bindir/*
%exclude %_man1dir/*
%exclude %_datadir/pixmaps/*
%exclude %browser_plugins_path/*
%exclude %_libdir/gtk-2.0/*/engines/libsvg.so
%endif

%exclude %_libdir/gtk-2.0/*/*/*.la
%exclude %_sysconfdir/gtk-2.0/gdk-pixbuf.loaders

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin