]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated to 2.20.0
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
5 %bcond_without  libcroco        # build without CSS support through libcroco
6 %bcond_without  gnomeprint      # build without gnome-print support in viewer
7 %bcond_without  gnomevfs        # build without gnome-vfs support
8 %bcond_without  gnome           # disable gnomeprint and gnomevfs
9 #
10 %if %{without gnome}
11 %undefine       with_gnomeprint
12 %undefine       with_gnomevfs
13 %endif
14 Summary:        A Raph's Library for Rendering SVG Data
15 Summary(pl.UTF-8):      Biblioteka Raph's SVG do renderowania danych SVG
16 Summary(pt_BR.UTF-8):   Biblioteca SVG
17 Summary(ru.UTF-8):      SVG библиотека
18 Summary(uk.UTF-8):      SVG бібліотека
19 Name:           librsvg
20 Version:        2.20.0
21 Release:        1
22 Epoch:          1
23 License:        LGPL v2+
24 Group:          Libraries
25 Source0:        http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.20/%{name}-%{version}.tar.bz2
26 # Source0-md5:  14cc098b68e72ee6a8cdd55edc1ea1b4
27 URL:            http://librsvg.sourceforge.net/
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  cairo-devel >= 1.2.4
31 BuildRequires:  glib2-devel >= 1:2.14.0
32 BuildRequires:  gtk+2-devel >= 2:2.12.0
33 BuildRequires:  gtk-doc-automake
34 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.8}
35 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.20.0}
36 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
37 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.18.0}
38 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.14.4}
39 BuildRequires:  libtool
40 BuildRequires:  libxml2-devel >= 1:2.6.28
41 BuildRequires:  pkgconfig
42 BuildRequires:  rpm-pythonprov
43 Requires(post,postun):  gtk+2
44 Requires:       cairo >= 1.2.4
45 Requires:       glib2 >= 1:2.14.0
46 Requires:       gtk+2 >= 2:2.12.0
47 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
48 %{?with_libgsf:Requires:        libgsf >= 1.14.4}
49 Requires:       libxml2 >= 1:2.6.28
50 Obsoletes:      browser-plugin-librsvg
51 Obsoletes:      mozilla-plugin-rsvg
52 Obsoletes:      librsvg0
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %description
56 An library to render SVG (scalable vector graphics), databased upon
57 libart.
58
59 %description -l pl.UTF-8
60 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
61 na kodzie libart.
62
63 %description -l ru.UTF-8
64 Библиотека SVG, базирующаяся на libart.
65
66 %description -l uk.UTF-8
67 Бібліотека SVG, базована на libart.
68
69 %package devel
70 Summary:        Include files for developing with librsvg
71 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
72 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
73 Summary(ru.UTF-8):      Библиотечные линки и файлы заголовков для разработки с librsvg
74 Summary(uk.UTF-8):      Бібліотечні лінки та файли заголовків для розробки з librsvg
75 Group:          Development/Libraries
76 Requires:       %{name} = %{epoch}:%{version}-%{release}
77 Requires:       glib2 >= 1:2.14.0
78 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.20.0}
79 Requires:       gtk+2-devel >= 2:2.12.0
80 Requires:       libart_lgpl-devel >= 2.3.17
81 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.1}
82 %{?with_libgsf:Requires:        libgsf-devel >= 1.14.4}
83 Requires:       libxml2-devel >= 2.6.28
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.UTF-8
91 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
92 z wykorzystaniem librsvg.
93
94 %description devel -l pt_BR.UTF-8
95 Este pacote contém os arquivos necessários para desenvolver com base
96 na biblioteca librsvg.
97
98 %description devel -l ru.UTF-8
99 Этот пакет содержит необходимые файлы для разработки программ с
100 использованием librsvg.
101
102 %description devel -l uk.UTF-8
103 Цей пакет містить необхідні файли для розробки програм з використанням
104 librsvg.
105
106 %package static
107 Summary:        Static libraries for developing with librsvg
108 Summary(es.UTF-8):      Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
109 Summary(pl.UTF-8):      Statyczne biblioteki librsvg
110 Summary(pt_BR.UTF-8):   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.UTF-8
118 Statyczna wersja bibliotek librsvg.
119
120 %description static -l pt_BR.UTF-8
121 Bibliotecas estáticas para o desenvolvimento de aplicações com
122 librsvg.
123
124 %package apidocs
125 Summary:        librsvg API documentation
126 Summary(pl.UTF-8):      Dokumentacja API biblioteki librsvg
127 Group:          Documentation
128 Requires:       gtk-doc-common
129
130 %description apidocs
131 librsvg API documentation.
132
133 %description apidocs -l pl.UTF-8
134 Dokumentacja API biblioteki librsvg.
135
136 %prep
137 %setup -q
138
139 %build
140 %{__libtoolize}
141 %{__aclocal}
142 %{__autoconf}
143 %{__automake}
144 %configure \
145         %{!?with_gnomevfs:--disable-gnome-vfs} \
146         %{!?with_gnomeprint:--disable-gnome-print} \
147         --disable-mozilla-plugin \
148         %{?with_apidocs:--enable-gtk-doc} \
149         %{!?with_libcroco:--without-croco} \
150         %{!?with_libgsf:--without-svgz} \
151         --with-html-dir=%{_gtkdocdir}/%{name}
152 %{__make}
153
154 %install
155 rm -rf $RPM_BUILD_ROOT
156
157 %{__make} install \
158         DESTDIR=$RPM_BUILD_ROOT \
159         pkgconfigdir=%{_pkgconfigdir}
160
161 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %post
167 /sbin/ldconfig
168 umask 022
169 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
170
171 %postun
172 /sbin/ldconfig
173 umask 022
174 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
175
176 %files
177 %defattr(644,root,root,755)
178 %doc ChangeLog AUTHORS NEWS
179 %attr(755,root,root) %{_bindir}/rsvg*
180 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
181 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
182 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
183 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
184 %{_mandir}/man1/rsvg.1*
185 %{_pixmapsdir}/svg-viewer.svg
186
187 %files devel
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_libdir}/librsvg-2.so
190 %{_libdir}/librsvg-2.la
191 %{_pkgconfigdir}/librsvg-2.0.pc
192 %{_includedir}/librsvg-2
193
194 %files static
195 %defattr(644,root,root,755)
196 %{_libdir}/librsvg-2.a
197
198 %if %{with apidocs}
199 %files apidocs
200 %defattr(644,root,root,755)
201 %{_gtkdocdir}/%{name}
202 %endif
This page took 0.088216 seconds and 4 git commands to generate.