]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- rel. 3
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
4 %bcond_without  libcroco        # build without CSS support through libcroco
5 %bcond_without  gnomeprint      # build without gnome-print support in viewer
6 %bcond_without  gnomevfs        # build without gnome-vfs support
7 %bcond_without  mozilla         # do not build mozilla plugin
8 #
9 Summary:        Raph's SVG library
10 Summary(pl):    Biblioteka Raph's SVG
11 Summary(pt_BR): Biblioteca SVG
12 Summary(ru):    SVG ÂÉÂÌÉÏÔÅËÁ
13 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
14 Name:           librsvg
15 Version:        2.8.1
16 Release:        3
17 Epoch:          1
18 License:        LGPL
19 Vendor:         GNOME
20 Group:          Libraries
21 Source0:        http://ftp.gnome.org/pub/gnome/sources/librsvg/2.8/%{name}-%{version}.tar.bz2
22 # Source0-md5:  01c14f6adcf3a71be2b808879e1223a0
23 URL:            http://librsvg.sourceforge.net/
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  gtk+2-devel >= 2:2.4.0
27 BuildRequires:  gtk-doc >= 0.9
28 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.4.0}
29 BuildRequires:  libart_lgpl-devel >= 2.3.15
30 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.0}
31 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.4.0}
32 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.6.0}
33 BuildRequires:  libtool
34 BuildRequires:  libxml2-devel >= 2.5.10
35 %{?with_mozilla:BuildRequires:  mozilla-devel}
36 BuildRequires:  popt-devel >= 1.5
37 BuildRequires:  pkgconfig
38 BuildRequires:  xcursor-devel
39 BuildRequires:  xft-devel
40 BuildRequires:  xrender-devel
41 %{!?with_gnomeprint:BuildConflicts:     libgnomeprintui-devel}
42 Requires(post,postun):  /sbin/ldconfig
43 Requires(post,postun):  gtk+2
44 Requires:       gtk+2 >= 2:2.4.0
45 Requires:       libart_lgpl >= 2.3.15
46 %{?with_libcroco:Requires:      libcroco >= 0.6.0}
47 %{?with_libgsf:Requires:        libgsf >= 1.6.0}
48 Requires:       libxml2 >= 2.5.10
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.4.0}
79 Requires:       gtk+2-devel >= 2:2.4.0
80 Requires:       libart_lgpl-devel >= 2.3.15
81 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.0}
82 %{?with_libgsf:Requires:        libgsf-devel >= 1.6.0}
83 Requires:       libxml2-devel >= 2.5.10
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 # obsolete macro (defined as empty in gnome-common)
143 %{__perl} -pi -e 's/GNOME_REQUIRE_PKGCONFIG//' configure.in
144
145 %build
146 %{!?with_mozilla:export MOZILLA_CONFIG=no}
147 %{__libtoolize}
148 %{__aclocal}
149 %{__autoconf}
150 %{__automake}
151 %configure \
152         %{!?with_libcroco:--without-croco} \
153         %{!?with_libgsf:--without-svgz} \
154         %{!?with_gnomevfs:--disable-gnome-vfs} \
155         --enable-gtk-doc \
156         --with-html-dir=%{_gtkdocdir}/%{name}
157
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 %{__make} install \
164         DESTDIR=$RPM_BUILD_ROOT \
165         pkgconfigdir=%{_pkgconfigdir}
166
167 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
168 rm -f $RPM_BUILD_ROOT%{mozilladir}/plugins/*.{la,a}
169
170 %clean
171 rm -rf $RPM_BUILD_ROOT
172
173 %post
174 /sbin/ldconfig
175 umask 022
176 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
177
178 %postun
179 /sbin/ldconfig
180 umask 022
181 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
182
183 %files
184 %defattr(644,root,root,755)
185 %doc ChangeLog AUTHORS NEWS
186 %attr(755,root,root) %{_bindir}/*
187 %attr(755,root,root) %{_libdir}/lib*.so.*.*
188 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
189 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
190 %{_mandir}/man1/rsvg.1*
191 %{_pixmapsdir}/*
192
193 %files devel
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/lib*.so
196 %{_libdir}/lib*.la
197 %{_pkgconfigdir}/*.pc
198 %{_includedir}/librsvg-2
199 %{_gtkdocdir}/%{name}
200
201 %files static
202 %defattr(644,root,root,755)
203 %{_libdir}/lib*.a
204
205 %if %{with mozilla}
206 %files -n mozilla-plugin-rsvg
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{mozilladir}/plugins/*.so
209 %endif
This page took 0.055903 seconds and 4 git commands to generate.