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