]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- 2.15.0, dropped mozilla plugin (every recent gecko-based browser provides
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
5 %bcond_without  libcroco        # build without CSS support through libcroco
6 %bcond_without  gnomeprint      # build without gnome-print support in viewer
7 %bcond_without  gnomevfs        # build without gnome-vfs support
8 #
9 Summary:        A Raph's Library for Rendering SVG Data
10 Summary(pl):    Biblioteka Raph's SVG do renderowania danych SVG
11 Summary(pt_BR): Biblioteca SVG
12 Summary(ru):    SVG ÂÉÂÌÉÏÔÅËÁ
13 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
14 Name:           librsvg
15 Version:        2.15.0
16 Release:        1
17 Epoch:          1
18 License:        LGPL v2+
19 Vendor:         GNOME
20 Group:          Libraries
21 Source0:        http://ftp.gnome.org/pub/gnome/sources/librsvg/2.15/%{name}-%{version}.tar.bz2
22 # Source0-md5:  65fd0f35bc163dd655d69300ac7f2086
23 URL:            http://librsvg.sourceforge.net/
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  cairo-devel >= 1.1.6
27 BuildRequires:  gtk+2-devel >= 2:2.9.2
28 %{?with_apidocs:BuildRequires:  gtk-doc >= 0.9}
29 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.1}
30 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
31 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.12.1}
32 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.14.1}
33 BuildRequires:  libtool
34 BuildRequires:  libxml2-devel >= 1:2.6.25
35 %{?with_mozilla:BuildRequires:  rpmbuild(macros) >= 1.236}
36 BuildRequires:  popt-devel >= 1.5
37 BuildRequires:  pkgconfig
38 BuildRequires:  rpm-pythonprov
39 %{!?with_gnomeprint:BuildConflicts:     libgnomeprintui-devel}
40 Requires(post,postun):  gtk+2
41 Requires:       cairo >= 1.1.6
42 Requires:       gtk+2 >= 2:2.9.2
43 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
44 %{?with_libgsf:Requires:        libgsf >= 1.14.1}
45 Requires:       libxml2 >= 1:2.6.25
46 Requires:       popt >= 1.5
47 Obsoletes:      browser-plugin-librsvg
48 Obsoletes:      librsvg0
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 An library to render SVG (scalable vector graphics), databased upon libart.
53
54 %description -l pl
55 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
56 na kodzie libart.
57
58 %description -l pt_BR
59 Biblioteca de Extensão da Eazel.
60
61 %description -l ru
62 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
63
64 %description -l uk
65 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
66
67 %package devel
68 Summary:        Include files for developing with librsvg
69 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
70 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
71 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
72 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
73 Group:          Development/Libraries
74 Requires:       %{name} = %{epoch}:%{version}-%{release}
75 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.15.1}
76 Requires:       gtk+2-devel >= 2:2.9.2
77 Requires:       libart_lgpl-devel >= 2.3.15
78 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.1}
79 %{?with_libgsf:Requires:        libgsf-devel >= 1.14.1}
80 Requires:       libxml2-devel >= 2.6.25
81 Obsoletes:      librsvg0-devel
82
83 %description devel
84 This package provides the necessary development libraries and include
85 files to allow you to develop with librsvg.
86
87 %description devel -l pl
88 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
89 z wykorzystaniem librsvg.
90
91 %description devel -l pt_BR
92 Este pacote contém os arquivos necessários para desenvolver com base
93 na biblioteca librsvg.
94
95 %description devel -l ru
96 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
97 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
98
99 %description devel -l uk
100 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
101 librsvg.
102
103 %package static
104 Summary:        Static libraries for developing with librsvg
105 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
106 Summary(pl):    Statyczne biblioteki librsvg
107 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
108 Group:          Development/Libraries
109 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
110
111 %description static
112 This package contains static version of librsvg libraries.
113
114 %description static -l pl
115 Statyczna wersja bibliotek librsvg.
116
117 %description static -l pt_BR
118 Bibliotecas estáticas para o desenvolvimento de aplicações com
119 librsvg.
120
121 %prep
122 %setup -q
123
124 %build
125 %{__libtoolize}
126 %{__aclocal}
127 %{__autoconf}
128 %{__automake}
129 %configure \
130         %{!?with_libcroco:--without-croco} \
131         %{!?with_libgsf:--without-svgz} \
132         %{!?with_gnomevfs:--disable-gnome-vfs} \
133         %{?with_apidocs:--enable-gtk-doc} \
134         --with-html-dir=%{_gtkdocdir}/%{name}
135 %{__make}
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139
140 %{__make} install \
141         DESTDIR=$RPM_BUILD_ROOT \
142         plugindir=%{_plugindir} \
143         pkgconfigdir=%{_pkgconfigdir}
144
145 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
146 rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{la,a}
147
148 %clean
149 rm -rf $RPM_BUILD_ROOT
150
151 %post
152 /sbin/ldconfig
153 umask 022
154 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
155
156 %postun
157 /sbin/ldconfig
158 umask 022
159 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
160
161 %files
162 %defattr(644,root,root,755)
163 %doc ChangeLog AUTHORS NEWS
164 %attr(755,root,root) %{_bindir}/*
165 %attr(755,root,root) %{_libdir}/lib*.so.*.*
166 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
167 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
168 %{_mandir}/man1/rsvg.1*
169 %{_pixmapsdir}/*
170
171 %files devel
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/lib*.so
174 %{_libdir}/lib*.la
175 %{_pkgconfigdir}/*.pc
176 %{_includedir}/librsvg-2
177 %{_gtkdocdir}/%{name}
178
179 %files static
180 %defattr(644,root,root,755)
181 %{_libdir}/lib*.a
This page took 0.054538 seconds and 4 git commands to generate.