]> git.pld-linux.org Git - packages/librsvg.git/blobdiff - librsvg.spec
- dropped strange without_gimp on ppc (doesn't build with gimp on any arch now)
[packages/librsvg.git] / librsvg.spec
index 32c64d6f26d4e6e0542bb8b09957c7795f2aaa44..ecee617a90ca7dbbb7ea517c066229216a3ae833 100644 (file)
-# Note that this is NOT a relocatable package
-
+#
+# Conditional build
+%bcond_with    gimp            # build gimp svg plugin (but gimp.spec provides better plugin)
+%bcond_without libgsf          # build without libgsf (used for run-time decompression)
+%bcond_with    libcroco        # build with CSS support through libcroco
+#
 Summary:       Raph's SVG library
-Summary(pl):   biblioteka Raph's SVG
+Summary(pl):   Biblioteka Raph's SVG
+Summary(pt_BR):        Biblioteca SVG
+Summary(ru):   SVG ÂÉÂÌÉÏÔÅËÁ
+Summary(uk):   SVG Â¦Â̦ÏÔÅËÁ
 Name:          librsvg
-Version:       1.0.1
-Release:       1
+Version:       2.4.0
+Release:       3
 License:       LGPL
 Vendor:                GNOME
 Group:         Libraries
-Group(de):     Libraries
-Group(es):     Bibliotecas
-Group(fr):     Librairies
-Group(pl):     Biblioteki
-Source0:       ftp://ftp.gnome.org/pub/GNOME/stable/sources/librsvg/%{name}-%{version}.tar.bz2
-URL:           http://nautilus.eazel.com/
-BuildRequires: glib-devel >= 1.2.9
-BuildRequires: gtk+-devel >= 1.2.9
-BuildRequires: libxml-devel >= 1.8.10
-BuildRequires: gdk-pixbuf-devel >= 0.10.0
-BuildRequires: popt-devel >= 1.5
+Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/2.4/%{name}-%{version}.tar.bz2
+# Source0-md5: 1a073864e5f6e9793cf23e38dc723803
+Patch0:                %{name}-link.patch
+URL:           http://librsvg.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: freetype-devel >= 2.0.1
+%{?with_gimp:BuildRequires:    gimp-devel >= 1.3.20}
+BuildRequires: gtk+2-devel >= 2.2.3
+BuildRequires: libart_lgpl-devel >= 2.3.15
+%{?with_libcroco:BuildRequires:        libcroco-devel >= 0.1.0}
+%{?with_libgsf:BuildRequires:  libgsf-devel >= 1.6.0}
 BuildRequires: libpng-devel
+BuildRequires: libtool
+BuildRequires: libxml2-devel >= 2.5.10
+BuildRequires: popt-devel >= 1.5
+Requires(post,postun): /sbin/ldconfig
+Requires(post,postun): gtk+2
+Requires:      gtk+2 >= 2.2.3
+Requires:      popt >= 1.5
+Obsoletes:     librsvg0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define _prefix                /usr
-%define _sysconfdir    /etc
+%if %{with gimp}
+%define                gimpplugindir   %(gimptool --gimpplugindir)/plug-ins
+%endif
 
 %description
-Eazel Extension Library
+An SVG library based upon libart.
 
 %description -l pl
-Rozszezona bibioteka eazel
+Biblioteka do obs³ugi grafiki wektorowej.
+
+%description -l pt_BR
+Biblioteca de Extensão da Eazel.
+
+%description -l ru
+âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
+
+%description -l uk
+â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
 
 %package devel
-Summary:       Libraries and include files for developing with librsvg.
+Summary:       Include files for developing with librsvg
+Summary(pl):   Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
+Summary(pt_BR):        Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
+Summary(ru):   âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
+Summary(uk):   â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %name = %{PACKAGE_VERSION}
+Requires:      %{name} = %{version}
+Requires:      gtk+2-devel >= 2.2.3
+Requires:      libart_lgpl-devel >= 2.3.15
+%{?with_libcroco:Requires:     libcroco-devel >= 0.1.0}
+%{?with_libgsf:Requires:       libgsf-devel >= 1.6.0}
+Requires:      libxml2-devel >= 2.5.10
+Obsoletes:     librsvg0-devel
 
 %description devel
 This package provides the necessary development libraries and include
 files to allow you to develop with librsvg.
 
 %description devel -l pl
-Bibliteki potrzebne do programowania.
+Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
+z wykorzystaniem librsvg.
+
+%description devel -l pt_BR
+Este pacote contém os arquivos necessários para desenvolver com base
+na biblioteca librsvg.
+
+%description devel -l ru
+üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
+ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
+
+%description devel -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
+librsvg.
+
+%package static
+Summary:       Static libraries for developing with librsvg
+Summary(es):   Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
+Summary(pl):   Statyczne biblioteki librsvg
+Summary(pt_BR):        Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
 
-%prep
-%setup -q
+%description static
+This package contains static version of librsvg libraries.
 
-%build
-%ifarch alpha
-       MYARCH_FLAGS="--host=alpha-redhat-linux"
-%endif
+%description static -l pl
+Statyczna wersja bibliotek librsvg.
+
+%description static -l pt_BR
+Bibliotecas estáticas para o desenvolvimento de aplicações com
+librsvg.
 
-LC_ALL=""
-LINGUAS=""
-LANG=""
-export LC_ALL LINGUAS LANG
+%package -n gimp-svg
+Summary:       SVG plugin for Gimp
+Summary:       Wtyczka SVG dla Gimpa
+Group:         X11/Applications/Graphics
+Requires:      %{name} = %{version}
+Requires:      gimp >= 1.3
 
-## Warning!  Make sure there are no spaces or tabs after the \ 
-## continuation character, or else the rpm demons will eat you.
-CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \
-       --sysconfdir=%{_sysconfdir}
+%description -n gimp-svg
+SVG plugin for Gimp.
 
-make -k
-make check
+%description -n gimp-svg -l pl
+Wtyczka SVG dla Gimpa.
+
+%prep
+%setup -q
+%patch -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       %{!?with_libcroco:--without-croco} \
+       %{!?with_gimp:--without-gimp} \
+       %{!?with_libgsf:--without-svgz}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-%{__make} -k prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
-for FILE in "$RPM_BUILD_ROOT/bin/*"; do
-       file "$FILE" | grep -q not\ stripped && strip $FILE
-done
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       pkgconfigdir=%{_pkgconfigdir} \
+       manonedir=%{_mandir}/man1
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
 
 %clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %post
-if ! grep %{_prefix}/lib /etc/ld.so.conf > /dev/null ; then
-       echo "%{_prefix}/lib" >> /etc/ld.so.conf
-fi
 /sbin/ldconfig
+umask 022
+gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
 
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+umask 022
+gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
 
 %files
 %defattr(644,root,root,755)
-
-%defattr(0555, bin, bin)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
-%{_libdir}/*.so*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
+%attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
+%{_mandir}/man1/rsvg.1*
 
 %files devel
 %defattr(644,root,root,755)
+%doc ChangeLog AUTHORS NEWS
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_pkgconfigdir}/*.pc
+%{_includedir}/librsvg-2
+%{_docdir}/%{name}
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
 
-%defattr(0555, bin, bin)
-%{_libdir}/*.la
-%{_libdir}/*.sh
-%attr(755,root,root) %{_bindir}/librsvg-config
-
-%defattr(0444, bin, bin)
-%{_includedir}/librsvg/*.h
+%if %{with gimp}
+%files -n gimp-svg
+%defattr(644,root,root,755)
+%attr(755,root,root) %{gimpplugindir}/svg
+%endif
This page took 0.078237 seconds and 4 git commands to generate.