]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- removed indirect X deps (all are required by gtk+2-devel; the only one used by
[packages/librsvg.git] / librsvg.spec
1 # TODO
2 # - mozilla_firefox bcond/subpackage
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:        Raph's SVG library
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.3
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:  f926aa102ccc3ce99ddf257fcce8ebf4
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 BuildRequires:  popt-devel >= 1.5
40 BuildRequires:  pkgconfig
41 BuildRequires:  rpm-pythonprov
42 %{!?with_gnomeprint:BuildConflicts:     libgnomeprintui-devel}
43 Requires(post,postun):  gtk+2
44 Requires:       cairo >= 1.0.2
45 Requires:       gtk+2 >= 2:2.8.6
46 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
47 %{?with_libgsf:Requires:        libgsf >= 1.13.2}
48 Requires:       libxml2 >= 1:2.6.22
49 Requires:       popt >= 1.5
50 Obsoletes:      librsvg0
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %define         mozilladir      %{_libdir}/mozilla
54
55 %description
56 An SVG library based upon libart.
57
58 %description -l pl
59 Biblioteka do obs³ugi grafiki wektorowej.
60
61 %description -l pt_BR
62 Biblioteca de Extensão da Eazel.
63
64 %description -l ru
65 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
66
67 %description -l uk
68 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
69
70 %package devel
71 Summary:        Include files for developing with librsvg
72 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
73 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
74 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
75 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
76 Group:          Development/Libraries
77 Requires:       %{name} = %{epoch}:%{version}-%{release}
78 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.10.0-2}
79 Requires:       gtk+2-devel >= 2:2.8.6
80 Requires:       libart_lgpl-devel >= 2.3.15
81 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.0}
82 %{?with_libgsf:Requires:        libgsf-devel >= 1.13.2}
83 Requires:       libxml2-devel >= 2.6.22
84 Obsoletes:      librsvg0-devel
85
86 %description devel
87 This package provides the necessary development libraries and include
88 files to allow you to develop with librsvg.
89
90 %description devel -l pl
91 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
92 z wykorzystaniem librsvg.
93
94 %description devel -l pt_BR
95 Este pacote contém os arquivos necessários para desenvolver com base
96 na biblioteca librsvg.
97
98 %description devel -l ru
99 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
100 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
101
102 %description devel -l uk
103 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
104 librsvg.
105
106 %package static
107 Summary:        Static libraries for developing with librsvg
108 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
109 Summary(pl):    Statyczne biblioteki librsvg
110 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
111 Group:          Development/Libraries
112 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
113
114 %description static
115 This package contains static version of librsvg libraries.
116
117 %description static -l pl
118 Statyczna wersja bibliotek librsvg.
119
120 %description static -l pt_BR
121 Bibliotecas estáticas para o desenvolvimento de aplicações com
122 librsvg.
123
124 %package -n mozilla-plugin-rsvg
125 Summary:        Mozilla SVG plugin using librsvg
126 Summary(pl):    Wtyczka Mozilli do SVG wykorzystuj±ca librsvg
127 Group:          X11/Applications/Multimedia
128 Requires:       %{name} = %{epoch}:%{version}-%{release}
129 Requires:       mozilla
130
131 %description -n mozilla-plugin-rsvg
132 This plugin allows Mozilla-family browsers to view Scalable Vector
133 Graphics content using librsvg.
134
135 %description -n mozilla-plugin-rsvg -l pl
136 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
137 Vector Graphics) w przegl±darkach z rodziny Mozilli.
138
139 %prep
140 %setup -q
141
142 %build
143 %{!?with_mozilla:export MOZILLA_CONFIG=no}
144 %{__libtoolize}
145 %{__aclocal}
146 %{__autoconf}
147 %{__automake}
148 %configure \
149         %{!?with_libcroco:--without-croco} \
150         %{!?with_libgsf:--without-svgz} \
151         %{!?with_gnomevfs:--disable-gnome-vfs} \
152         %{?with_apidocs:--enable-gtk-doc} \
153         --with-html-dir=%{_gtkdocdir}/%{name}
154 %{__make}
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT \
161         pkgconfigdir=%{_pkgconfigdir}
162
163 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
164 rm -f $RPM_BUILD_ROOT%{mozilladir}/plugins/*.{la,a}
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %post
170 /sbin/ldconfig
171 umask 022
172 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
173
174 %postun
175 /sbin/ldconfig
176 umask 022
177 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
178
179 %files
180 %defattr(644,root,root,755)
181 %doc ChangeLog AUTHORS NEWS
182 %attr(755,root,root) %{_bindir}/*
183 %attr(755,root,root) %{_libdir}/lib*.so.*.*
184 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
185 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
186 %{_mandir}/man1/rsvg.1*
187 %{_pixmapsdir}/*
188
189 %files devel
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/lib*.so
192 %{_libdir}/lib*.la
193 %{_pkgconfigdir}/*.pc
194 %{_includedir}/librsvg-2
195 %{_gtkdocdir}/%{name}
196
197 %files static
198 %defattr(644,root,root,755)
199 %{_libdir}/lib*.a
200
201 %if %{with mozilla}
202 %files -n mozilla-plugin-rsvg
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{mozilladir}/plugins/*.so
205 %endif
This page took 0.079232 seconds and 4 git commands to generate.