]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- 2.14.4
[packages/librsvg.git] / librsvg.spec
1 # TODO
2 # - check what browsers can be supported by browser plugin
3 #
4 # Conditional build
5 %bcond_without  apidocs         # disable gtk-doc
6 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
7 %bcond_without  libcroco        # build without CSS support through libcroco
8 %bcond_without  gnomeprint      # build without gnome-print support in viewer
9 %bcond_without  gnomevfs        # build without gnome-vfs support
10 %bcond_without  mozilla         # do not build mozilla plugin
11 #
12 Summary:        A Raph's Library for Rendering SVG Data
13 Summary(pl):    Biblioteka Raph's SVG
14 Summary(pt_BR): Biblioteca SVG
15 Summary(ru):    SVG ÂÉÂÌÉÏÔÅËÁ
16 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
17 Name:           librsvg
18 Version:        2.14.4
19 Release:        1
20 Epoch:          1
21 License:        LGPL v2+
22 Vendor:         GNOME
23 Group:          Libraries
24 Source0:        http://ftp.gnome.org/pub/gnome/sources/librsvg/2.14/%{name}-%{version}.tar.bz2
25 # Source0-md5:  945617bb094975d7353a3852302297c1
26 URL:            http://librsvg.sourceforge.net/
27 BuildRequires:  autoconf
28 BuildRequires:  automake
29 BuildRequires:  cairo-devel >= 1.0.2
30 BuildRequires:  gtk+2-devel >= 2:2.8.6
31 %{?with_apidocs:BuildRequires:  gtk-doc >= 0.9}
32 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.10.0-2}
33 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
34 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.12.1}
35 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.13.2}
36 BuildRequires:  libtool
37 BuildRequires:  libxml2-devel >= 1:2.6.22
38 %{?with_mozilla:BuildRequires:  mozilla-devel}
39 %{?with_mozilla:BuildRequires:  rpmbuild(macros) >= 1.236}
40 BuildRequires:  popt-devel >= 1.5
41 BuildRequires:  pkgconfig
42 BuildRequires:  rpm-pythonprov
43 %{!?with_gnomeprint:BuildConflicts:     libgnomeprintui-devel}
44 Requires(post,postun):  gtk+2
45 Requires:       cairo >= 1.0.2
46 Requires:       gtk+2 >= 2:2.8.6
47 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
48 %{?with_libgsf:Requires:        libgsf >= 1.13.2}
49 Requires:       libxml2 >= 1:2.6.22
50 Requires:       popt >= 1.5
51 Obsoletes:      librsvg0
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %define         _plugindir      %{_libdir}/browser-plugins
55
56 # list of supported browsers, in free form text
57 %define         browsers        mozilla, mozilla-firefox, netscape, seamonkey
58
59 %description
60 An library to render SVG (scalable vector graphics), databased upon libart.
61
62 %description -l pl
63 Biblioteka do obs³ugi grafiki wektorowej.
64
65 %description -l pt_BR
66 Biblioteca de Extensão da Eazel.
67
68 %description -l ru
69 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
70
71 %description -l uk
72 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
73
74 %package devel
75 Summary:        Include files for developing with librsvg
76 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
77 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
78 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
79 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
80 Group:          Development/Libraries
81 Requires:       %{name} = %{epoch}:%{version}-%{release}
82 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.10.0-2}
83 Requires:       gtk+2-devel >= 2:2.8.6
84 Requires:       libart_lgpl-devel >= 2.3.15
85 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.0}
86 %{?with_libgsf:Requires:        libgsf-devel >= 1.13.2}
87 Requires:       libxml2-devel >= 2.6.22
88 Obsoletes:      librsvg0-devel
89
90 %description devel
91 This package provides the necessary development libraries and include
92 files to allow you to develop with librsvg.
93
94 %description devel -l pl
95 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
96 z wykorzystaniem librsvg.
97
98 %description devel -l pt_BR
99 Este pacote contém os arquivos necessários para desenvolver com base
100 na biblioteca librsvg.
101
102 %description devel -l ru
103 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
104 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
105
106 %description devel -l uk
107 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
108 librsvg.
109
110 %package static
111 Summary:        Static libraries for developing with librsvg
112 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
113 Summary(pl):    Statyczne biblioteki librsvg
114 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
115 Group:          Development/Libraries
116 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
117
118 %description static
119 This package contains static version of librsvg libraries.
120
121 %description static -l pl
122 Statyczna wersja bibliotek librsvg.
123
124 %description static -l pt_BR
125 Bibliotecas estáticas para o desenvolvimento de aplicações com
126 librsvg.
127
128 %package -n browser-plugin-%{name}
129 Summary:        SVG browse plugin using librsvg
130 Summary(pl):    Wtyczka SVG do przegl±darski WWW wykorzystuj±ca librsvg
131 Group:          X11/Applications/Multimedia
132 Requires:       browser-plugins(%{_target_base_arch})
133 Requires:       %{name} = %{epoch}:%{version}-%{release}
134 Provides:       mozilla-plugin-rsvg
135 Obsoletes:      mozilla-plugin-rsvg
136
137 %description -n browser-plugin-%{name}
138 This plugin allows Mozilla-family browsers to view Scalable Vector
139 Graphics content using librsvg.
140
141 Supported browsers: %{browsers}.
142
143 %description -n browser-plugin-%{name} -l pl
144 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
145 Vector Graphics) w przegl±darkach z rodziny Mozilli.
146
147 Obs³ugiwane przegl±darki: %{browsers}.
148
149 %prep
150 %setup -q
151
152 %build
153 %{!?with_mozilla:export MOZILLA_CONFIG=no}
154 %{__libtoolize}
155 %{__aclocal}
156 %{__autoconf}
157 %{__automake}
158 %configure \
159         %{!?with_libcroco:--without-croco} \
160         %{!?with_libgsf:--without-svgz} \
161         %{!?with_gnomevfs:--disable-gnome-vfs} \
162         %{?with_apidocs:--enable-gtk-doc} \
163         --with-html-dir=%{_gtkdocdir}/%{name}
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT \
171         plugindir=%{_plugindir} \
172         pkgconfigdir=%{_pkgconfigdir}
173
174 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
175 rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{la,a}
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %post
181 /sbin/ldconfig
182 umask 022
183 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
184
185 %postun
186 /sbin/ldconfig
187 umask 022
188 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
189
190 %triggerin -n browser-plugin-%{name} -- mozilla
191 %nsplugin_install -d %{_libdir}/mozilla/plugins libmozsvgdec.so
192
193 %triggerun -n browser-plugin-%{name} -- mozilla
194 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins libmozsvgdec.so
195
196 %triggerin -n browser-plugin-%{name} -- mozilla-firefox
197 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
198
199 %triggerun -n browser-plugin-%{name} -- mozilla-forefox
200 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
201
202 %triggerin -n browser-plugin-%{name} -- netscape-common
203 %nsplugin_install -d %{_libdir}/netscape/plugins libmozsvgdec.so
204
205 %triggerun -n browser-plugin-%{name} -- netscape-common
206 %nsplugin_uninstall -d %{_libdir}/netscape/plugins libmozsvgdec.so
207
208 %triggerin -n browser-plugin-%{name} -- seamonkey
209 %nsplugin_install -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
210
211 %triggerun -n browser-plugin-%{name} -- seamonkey
212 %nsplugin_uninstall -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
213
214 # as rpm removes the old obsoleted package files after the triggers
215 # are ran, add another trigger to make the links there.
216 %triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-rsvg
217 %nsplugin_install -f -d %{_libdir}/mozilla/plugins libmozsvgdec.so
218
219 %files
220 %defattr(644,root,root,755)
221 %doc ChangeLog AUTHORS NEWS
222 %attr(755,root,root) %{_bindir}/*
223 %attr(755,root,root) %{_libdir}/lib*.so.*.*
224 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
225 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
226 %{_mandir}/man1/rsvg.1*
227 %{_pixmapsdir}/*
228
229 %files devel
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/lib*.so
232 %{_libdir}/lib*.la
233 %{_pkgconfigdir}/*.pc
234 %{_includedir}/librsvg-2
235 %{_gtkdocdir}/%{name}
236
237 %files static
238 %defattr(644,root,root,755)
239 %{_libdir}/lib*.a
240
241 %if %{with mozilla}
242 %files -n browser-plugin-%{name}
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_plugindir}/*.so
245 %endif
This page took 0.088538 seconds and 4 git commands to generate.