]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated to 2.26.3
[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  static_libs     # don't build static library
7 #
8 Summary:        A Raph's Library for Rendering SVG Data
9 Summary(pl.UTF-8):      Biblioteka Raph's SVG do renderowania danych SVG
10 Summary(pt_BR.UTF-8):   Biblioteca SVG
11 Summary(ru.UTF-8):      SVG библиотека
12 Summary(uk.UTF-8):      SVG бібліотека
13 Name:           librsvg
14 Version:        2.26.3
15 Release:        1
16 Epoch:          1
17 License:        LGPL v2+
18 Group:          X11/Libraries
19 Source0:        http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.26/%{name}-%{version}.tar.bz2
20 # Source0-md5:  8df68c2c02cdf2a96a92b43bf737bf9c
21 URL:            http://librsvg.sourceforge.net/
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  docbook-dtd412-xml
25 BuildRequires:  glib2-devel >= 1:2.16.0
26 BuildRequires:  gtk+2-devel >= 2:2.16.0
27 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.8}
28 %{?with_apidocs:BuildRequires:  gtk-doc-automake}
29 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
30 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.14.4}
31 BuildRequires:  libtool
32 BuildRequires:  libxml2-devel >= 1:2.6.31
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpm-pythonprov
35 Requires(post,postun):  /sbin/ldconfig
36 Requires(post,postun):  gtk+2
37 Requires:       glib2 >= 1:2.16.0
38 Requires:       gtk+2 >= 2:2.16.0
39 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
40 %{?with_libgsf:Requires:        libgsf >= 1.14.4}
41 Requires:       libxml2 >= 1:2.6.31
42 Obsoletes:      browser-plugin-librsvg
43 Obsoletes:      librsvg0
44 Obsoletes:      mozilla-plugin-rsvg
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 # see gtk+2.spec for source of these ifdefs
48 %if "%{_lib}" != "lib"
49 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
50 %define         gtketcdir       /etc/gtk%{libext}-2.0
51 %define         pqext           -%{libext}
52 %else
53 %define         gtketcdir       /etc/gtk-2.0
54 %define         pqext           %{nil}
55 %endif
56
57 %description
58 An library to render SVG (scalable vector graphics), databased upon
59 libart.
60
61 %description -l pl.UTF-8
62 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
63 na kodzie libart.
64
65 %description -l ru.UTF-8
66 Библиотека SVG, базирующаяся на libart.
67
68 %description -l uk.UTF-8
69 Бібліотека SVG, базована на libart.
70
71 %package devel
72 Summary:        Include files for developing with librsvg
73 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
74 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
75 Summary(ru.UTF-8):      Библиотечные линки и файлы заголовков для разработки с librsvg
76 Summary(uk.UTF-8):      Бібліотечні лінки та файли заголовків для розробки з librsvg
77 Group:          X11/Development/Libraries
78 Requires:       %{name} = %{epoch}:%{version}-%{release}
79 Requires:       glib2-devel >= 1:2.16.0
80 Requires:       gtk+2-devel >= 2:2.16.0
81 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.1}
82 %{?with_libgsf:Requires:        libgsf-devel >= 1.14.4}
83 Requires:       libxml2-devel >= 1:2.6.31
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:          X11/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 %if !%{with apidocs}
140 echo 'CLEANFILES=' > gtk-doc.make
141 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
142 %endif
143
144 %build
145 %{?with_apidocs:%{__gtkdocize}}
146 %{__libtoolize}
147 %{__aclocal}
148 %{__autoconf}
149 %{__autoheader}
150 %{__automake}
151 %configure \
152         --disable-silent-rules \
153         %{!?with_static_libs:--disable-static} \
154         %{?with_apidocs:--enable-gtk-doc} \
155         %{!?with_libcroco:--without-croco} \
156         %{!?with_libgsf:--without-svgz} \
157         --with-html-dir=%{_gtkdocdir}/%{name}
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
169 %clean
170 rm -rf $RPM_BUILD_ROOT
171
172 %post
173 /sbin/ldconfig
174 umask 022
175 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
176
177 %postun
178 /sbin/ldconfig
179 umask 022
180 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
181         %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
182 fi
183
184 %files
185 %defattr(644,root,root,755)
186 %doc ChangeLog AUTHORS NEWS
187 %attr(755,root,root) %{_bindir}/rsvg
188 %attr(755,root,root) %{_bindir}/rsvg-convert
189 %attr(755,root,root) %{_bindir}/rsvg-view
190 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
191 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
192 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
193 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/svg_loader.so
194 %{_mandir}/man1/rsvg.1*
195 %{_pixmapsdir}/svg-viewer.svg
196
197 %files devel
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/librsvg-2.so
200 %{_libdir}/librsvg-2.la
201 %{_pkgconfigdir}/librsvg-2.0.pc
202 %{_includedir}/librsvg-2
203
204 %if %{with static_libs}
205 %files static
206 %defattr(644,root,root,755)
207 %{_libdir}/librsvg-2.a
208 %endif
209
210 %if %{with apidocs}
211 %files apidocs
212 %defattr(644,root,root,755)
213 %{_gtkdocdir}/%{name}
214 %endif
This page took 0.0731039999999999 seconds and 3 git commands to generate.