]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated pl
[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 do renderowania danych 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 renderowania SVG (skalowalnej grafiki wektorowej) oparta
64 na kodzie libart.
65
66 %description -l pt_BR
67 Biblioteca de Extensão da Eazel.
68
69 %description -l ru
70 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
71
72 %description -l uk
73 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
74
75 %package devel
76 Summary:        Include files for developing with librsvg
77 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
78 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
79 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
80 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
81 Group:          Development/Libraries
82 Requires:       %{name} = %{epoch}:%{version}-%{release}
83 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.10.0-2}
84 Requires:       gtk+2-devel >= 2:2.8.6
85 Requires:       libart_lgpl-devel >= 2.3.15
86 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.0}
87 %{?with_libgsf:Requires:        libgsf-devel >= 1.13.2}
88 Requires:       libxml2-devel >= 2.6.22
89 Obsoletes:      librsvg0-devel
90
91 %description devel
92 This package provides the necessary development libraries and include
93 files to allow you to develop with librsvg.
94
95 %description devel -l pl
96 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
97 z wykorzystaniem librsvg.
98
99 %description devel -l pt_BR
100 Este pacote contém os arquivos necessários para desenvolver com base
101 na biblioteca librsvg.
102
103 %description devel -l ru
104 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
105 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
106
107 %description devel -l uk
108 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
109 librsvg.
110
111 %package static
112 Summary:        Static libraries for developing with librsvg
113 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
114 Summary(pl):    Statyczne biblioteki librsvg
115 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
116 Group:          Development/Libraries
117 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
118
119 %description static
120 This package contains static version of librsvg libraries.
121
122 %description static -l pl
123 Statyczna wersja bibliotek librsvg.
124
125 %description static -l pt_BR
126 Bibliotecas estáticas para o desenvolvimento de aplicações com
127 librsvg.
128
129 %package -n browser-plugin-%{name}
130 Summary:        SVG browse plugin using librsvg
131 Summary(pl):    Wtyczka SVG do przegl±darski WWW wykorzystuj±ca librsvg
132 Group:          X11/Applications/Multimedia
133 Requires:       browser-plugins(%{_target_base_arch})
134 Requires:       %{name} = %{epoch}:%{version}-%{release}
135 Provides:       mozilla-plugin-rsvg
136 Obsoletes:      mozilla-plugin-rsvg
137
138 %description -n browser-plugin-%{name}
139 This plugin allows Mozilla-family browsers to view Scalable Vector
140 Graphics content using librsvg.
141
142 Supported browsers: %{browsers}.
143
144 %description -n browser-plugin-%{name} -l pl
145 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
146 Vector Graphics) w przegl±darkach z rodziny Mozilli.
147
148 Obs³ugiwane przegl±darki: %{browsers}.
149
150 %prep
151 %setup -q
152
153 %build
154 %{!?with_mozilla:export MOZILLA_CONFIG=no}
155 %{__libtoolize}
156 %{__aclocal}
157 %{__autoconf}
158 %{__automake}
159 %configure \
160         %{!?with_libcroco:--without-croco} \
161         %{!?with_libgsf:--without-svgz} \
162         %{!?with_gnomevfs:--disable-gnome-vfs} \
163         %{?with_apidocs:--enable-gtk-doc} \
164         --with-html-dir=%{_gtkdocdir}/%{name}
165 %{__make}
166
167 %install
168 rm -rf $RPM_BUILD_ROOT
169
170 %{__make} install \
171         DESTDIR=$RPM_BUILD_ROOT \
172         plugindir=%{_plugindir} \
173         pkgconfigdir=%{_pkgconfigdir}
174
175 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
176 rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{la,a}
177
178 %clean
179 rm -rf $RPM_BUILD_ROOT
180
181 %post
182 /sbin/ldconfig
183 umask 022
184 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
185
186 %postun
187 /sbin/ldconfig
188 umask 022
189 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
190
191 %triggerin -n browser-plugin-%{name} -- mozilla
192 %nsplugin_install -d %{_libdir}/mozilla/plugins libmozsvgdec.so
193
194 %triggerun -n browser-plugin-%{name} -- mozilla
195 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins libmozsvgdec.so
196
197 %triggerin -n browser-plugin-%{name} -- mozilla-firefox
198 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
199
200 %triggerun -n browser-plugin-%{name} -- mozilla-forefox
201 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
202
203 %triggerin -n browser-plugin-%{name} -- netscape-common
204 %nsplugin_install -d %{_libdir}/netscape/plugins libmozsvgdec.so
205
206 %triggerun -n browser-plugin-%{name} -- netscape-common
207 %nsplugin_uninstall -d %{_libdir}/netscape/plugins libmozsvgdec.so
208
209 %triggerin -n browser-plugin-%{name} -- seamonkey
210 %nsplugin_install -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
211
212 %triggerun -n browser-plugin-%{name} -- seamonkey
213 %nsplugin_uninstall -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
214
215 # as rpm removes the old obsoleted package files after the triggers
216 # are ran, add another trigger to make the links there.
217 %triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-rsvg
218 %nsplugin_install -f -d %{_libdir}/mozilla/plugins libmozsvgdec.so
219
220 %files
221 %defattr(644,root,root,755)
222 %doc ChangeLog AUTHORS NEWS
223 %attr(755,root,root) %{_bindir}/*
224 %attr(755,root,root) %{_libdir}/lib*.so.*.*
225 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
226 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
227 %{_mandir}/man1/rsvg.1*
228 %{_pixmapsdir}/*
229
230 %files devel
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/lib*.so
233 %{_libdir}/lib*.la
234 %{_pkgconfigdir}/*.pc
235 %{_includedir}/librsvg-2
236 %{_gtkdocdir}/%{name}
237
238 %files static
239 %defattr(644,root,root,755)
240 %{_libdir}/lib*.a
241
242 %if %{with mozilla}
243 %files -n browser-plugin-%{name}
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_plugindir}/*.so
246 %endif
This page took 0.098298 seconds and 4 git commands to generate.