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