]> git.pld-linux.org Git - packages/librsvg.git/commitdiff
- fixed typo in link patch, now builds with libcroco
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 4 Oct 2003 00:25:34 +0000 (00:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- new bconds, added bcond for libcroco (off by default - libcroco causes
  GNOME dependency by default, it should be eliminated first)

Changed files:
    librsvg-link.patch -> 1.4
    librsvg.spec -> 1.61

librsvg-link.patch
librsvg.spec

index af8f019e59cb432fa2792f64105b58c344eafea6..c7d2b31ad971434750f9179c614095bb76282d8c 100644 (file)
@@ -5,7 +5,7 @@
  
  librsvg_2_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined -export-dynamic
 -librsvg_2_la_LIBADD = $(LIBRSVG_LIBS)
-+librsvg_2_la_LIBADD = $(LIBRSVG_LIBS) $(LIBGSF_LIBS) $(LIBRSVG_LIBS)
++librsvg_2_la_LIBADD = $(LIBRSVG_LIBS) $(LIBGSF_LIBS) $(LIBCROCO_LIBS)
  
  librsvgincdir = $(includedir)/librsvg-2/librsvg
  librsvginc_HEADERS = $(GSFHEADERS) \
index eca2915f5f7b320064077b8a7c69523e829d44da..bca4fd7ecbbaa3fedff144e76309cce0ad704c93 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Conditional build
-# _without_gimp                - without gimp svg plugin
-# _without_libgsf      - without libgsf (used for run-time decompression)
+%bcond_without gimp            # don't build gimp svg plugin
+%bcond_without libgsf          # build without libgsf (used for run-time decompression)
+%bcond_with    libcroco        # build with CSS support through libcroco
 #
 %ifarch ppc
 %define        _without_gimp   1
@@ -25,22 +26,21 @@ URL:                http://nautilus.eazel.com/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: freetype-devel >= 2.0.1
-%{!?_without_gimp:BuildRequires:       gimp-devel >= 1.3.20}
+%{?with_gimp:BuildRequires:    gimp-devel >= 1.3.20}
 BuildRequires: gtk+2-devel >= 2.2.3
 BuildRequires: libart_lgpl-devel >= 2.3.15
-# TODO: libcroco-devel >= 0.1.0 (optional)
-%{!?_without_libgsf:BuildRequires:     libgsf-devel >= 1.6.0}
+%{?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
-BuildConflicts:        libcroco-devel
 Requires:      gtk+2 >= 2.2.3
 Requires:      popt >= 1.5
 Obsoletes:     librsvg0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%if 0%{!?_without_gimp:1}
+%if %{with gimp}
 %define                gimpplugindir   %(gimptool --gimpplugindir)/plug-ins
 %endif
 
@@ -69,7 +69,8 @@ Group:                Development/Libraries
 Requires:      %{name} = %{version}
 Requires:      gtk+2-devel >= 2.2.3
 Requires:      libart_lgpl-devel >= 2.3.15
-%{!?_without_libgsf:Requires:  libgsf-devel >= 1.6.0}
+%{?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
 
@@ -134,8 +135,9 @@ Wtyczka SVG dla Gimpa.
 %{__autoconf}
 %{__automake}
 %configure \
-       %{?_without_gimp:--without-gimp} \
-       %{?_without_libgsf:--without-svgz}
+       %{!?with_libcroco:--without-croco} \
+       %{!?with_gimp:--without-gimp} \
+       %{!?with_libgsf:--without-svgz}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -174,7 +176,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
-%if %{?_without_gimp:0}%{!?_without_gimp:1}
+%if %{with gimp}
 %files -n gimp-svg
 %defattr(644,root,root,755)
 %attr(755,root,root) %{gimpplugindir}/svg
This page took 0.04691 seconds and 4 git commands to generate.