%define __libtoolize : %define libxml2_version 2.4.12 %define gtk2_version 2.2.0 %define freetype_version 2.0.1 %define popt_version 1.5 %define libart_version 2.3.10 Name: librsvg2 Summary: An SVG library based on libart. Version: 2.4.0 Release: 3 License: LGPL Group: System Environment/Libraries Source: librsvg-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: gtk2 >= %{gtk2_version} Requires: libxml2 >= %{libxml2_version} Requires: popt >= %{popt_version} Requires: freetype >= %{freetype_version} Requires: libart_lgpl >= %{libart_version} Requires: libpng Requires: libcroco Requires: libgsf BuildRequires: libpng-devel BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libxml2-devel >= %{libxml2_version} BuildRequires: popt >= %{popt_version} BuildRequires: freetype-devel >= %{freetype_version} BuildRequires: libart_lgpl-devel >= %{libart_version} BuildRequires: libgsf-devel, libcroco-devel BuildRequires: automake14 Patch1: librsvg-2.4.0-link.patch %description An SVG library based on libart. %package devel Summary: Libraries and include files for developing with librsvg. Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gtk2-devel >= %{gtk2_version} Requires: libxml2-devel >= %{libxml2_version} Requires: freetype-devel >= %{freetype_version} Requires: libart_lgpl-devel >= %{libart_version} Requires: libgsf-devel %description devel This package provides the necessary development libraries and include files to allow you to develop with librsvg. %prep %setup -q -n librsvg-%{version} %patch1 -p0 -b .link %build automake-1.4 %configure export tagname=CC make LIBTOOL=/usr/bin/libtool %install rm -rf $RPM_BUILD_ROOT export tagname=CC %makeinstall LIBTOOL=/usr/bin/libtool rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/libsvg.a rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/libsvg.la rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/svg_loader.a rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/svg_loader.la rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders mv $RPM_BUILD_ROOT%{_datadir}/doc/librsvg $RPM_BUILD_ROOT%{_datadir}/doc/librsvg2-%{version} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig mkdir -p %{_sysconfdir}/gtk-2.0 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders %postun /sbin/ldconfig gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders %files %defattr(-, root, root) %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README %{_libdir}/*.so.* %{_libdir}/gtk-2.0/*/engines/libsvg.so %{_libdir}/gtk-2.0/*/loaders/svg_loader.so %{_bindir}/rsvg %{_mandir}/man1/* %files devel %defattr(-, root, root) %{_libdir}/*.so %{_libdir}/*.a %{_includedir}/librsvg-2 %{_libdir}/pkgconfig/librsvg-2.0.pc %changelog * Fri Oct 24 2003 Alexander Larsson 2.4.0-3 - Fix libcroco in link line. Fixes #107875. - Properly require libgsf and libcroco * Tue Oct 21 2003 Florian La Roche 2.4.0-2 - BuildReq libcroco-devel, seems this _can_ get picked up * Mon Sep 8 2003 Jonathan Blandford 2.4.0-1 - bump to 2.4.0 * Thu Sep 4 2003 Alexander Larsson 2.3.1-3 - Don't use the epoch, thats implicitly zero and not defined * Thu Sep 4 2003 Alexander Larsson 2.3.1-2 - full version in -devel requires (#102063) * Wed Aug 13 2003 Jonathan Blandford 2.3.1-1 - new version for GNOME 2.4 * Fri Aug 8 2003 Alexander Larsson 2.2.3-5 - BuildRequire libgsf-devel * Wed Aug 6 2003 Elliot Lee 2.2.3-4 - Fix libtool * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue Apr 8 2003 Matt Wilson 2.2.3-2 - use system libtool (#88339) * Wed Feb 5 2003 Alexander Larsson 2.2.3-1 - 2.2.3 - Moved engine and loaders from devel package * Mon Feb 3 2003 Alexander Larsson 2.2.2.1-2 - Move docs to rpm docdir * Mon Feb 3 2003 Alexander Larsson 2.2.2.1-1 - Update to 2.2.2.1, crash fixes * Fri Jan 31 2003 Alexander Larsson 2.2.1-1 - Update to 2.2.1, fixes crash - Removed temporary manpage hack * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 21 2003 Alexander Larsson 2.2.0-3 - Manpage were installed in the wrong place * Tue Jan 21 2003 Alexander Larsson 2.2.0-2 - Add manpage * Tue Jan 21 2003 Alexander Larsson 2.2.0-1 - Update to 2.2.0 * Fri Jan 17 2003 Alexander Larsson 2.1.3-3 - Require gtk2 2.2.0 for the pixbuf loader (#80857) * Thu Jan 16 2003 Alexander Larsson 2.1.3-2 - own includedir/librsvg-2 * Thu Jan 9 2003 Alexander Larsson 2.1.3-1 - update to 2.1.3 * Tue Dec 17 2002 Owen Taylor - Don't package gdk-pixbuf.loaders, it gets generated in the %post * Mon Dec 9 2002 Alexander Larsson 2.1.2-1 - Update to 2.1.2 * Sat Jul 27 2002 Havoc Pennington - 2.0.1 * Fri Jun 21 2002 Tim Powers - automated rebuild * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Havoc Pennington - rebuild in different environment * Thu May 02 2002 Havoc Pennington - rebuild in different environment * Thu Apr 18 2002 Havoc Pennington - 1.1.6 * Mon Feb 11 2002 Alex Larsson 1.1.3-1 - Update to 1.1.3 * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Jan 2 2002 Havoc Pennington - new CVS snap 1.1.0.91 - remove automake/autoconf calls * Mon Nov 26 2001 Havoc Pennington - convert to librsvg2 RPM * Tue Oct 23 2001 Havoc Pennington - 1.0.2 * Fri Jul 27 2001 Alexander Larsson - Add a patch that moves the includes to librsvg-1/librsvg - in preparation for a later librsvg 2 library. * Tue Jul 24 2001 Havoc Pennington - build requires gnome-libs-devel, #49509 * Thu Jul 19 2001 Havoc Pennington - own /usr/include/librsvg * Wed Jul 18 2001 Akira TAGOH 1.0.0-4 - fixed the linefeed problem in multibyte environment. (Bug#49310) * Mon Jul 09 2001 Havoc Pennington - put .la file back in package * Fri Jul 6 2001 Trond Eivind Glomsrød - Put changelog at the end - Move .so files to devel subpackage - Don't mess with ld.so.conf - Don't use %%{prefix}, this isn't a relocatable package - Don't define a bad docdir - Add BuildRequires - Use %%{_tmppath} - Don't define name, version etc. on top of the file (why do so many do that?) - s/Copyright/License/ * Wed May 9 2001 Jonathan Blandford - Put into Red Hat Build system * Tue Oct 10 2000 Robin Slomkowski - removed obsoletes from sub packages and added mozilla and trilobite subpackages * Wed Apr 26 2000 Ramiro Estrugo - created this thing