]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated to 2.16.1
[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 #
9 Summary:        A Raph's Library for Rendering SVG Data
10 Summary(pl):    Biblioteka Raph's SVG do renderowania danych SVG
11 Summary(pt_BR): Biblioteca SVG
12 Summary(ru):    SVG ÂÉÂÌÉÏÔÅËÁ
13 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
14 Name:           librsvg
15 Version:        2.16.1
16 Release:        1
17 Epoch:          1
18 License:        LGPL v2+
19 Vendor:         GNOME
20 Group:          Libraries
21 Source0:        http://ftp.gnome.org/pub/gnome/sources/librsvg/2.16/%{name}-%{version}.tar.bz2
22 # Source0-md5:  37e046571097ff7ce77ae6e07f096324
23 URL:            http://librsvg.sourceforge.net/
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  cairo-devel >= 1.2.4
27 BuildRequires:  glib2-devel >= 1:2.12.0
28 BuildRequires:  gtk+2-devel >= 2:2.10.2
29 BuildRequires:  gtk-doc-automake
30 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.7}
31 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.92}
32 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
33 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.12.1}
34 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.14.1}
35 BuildRequires:  libtool
36 BuildRequires:  libxml2-devel >= 1:2.6.26
37 BuildRequires:  pkgconfig
38 BuildRequires:  rpm-pythonprov
39 Requires(post,postun):  gtk+2
40 Requires:       cairo >= 1.2.4
41 Requires:       glib2 >= 1:2.12.0
42 Requires:       gtk+2 >= 2:2.10.2
43 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
44 %{?with_libgsf:Requires:        libgsf >= 1.14.1}
45 Requires:       libxml2 >= 1:2.6.26
46 Obsoletes:      browser-plugin-librsvg
47 Obsoletes:      mozilla-plugin-rsvg
48 Obsoletes:      librsvg0
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 An library to render SVG (scalable vector graphics), databased upon libart.
53
54 %description -l pl
55 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
56 na kodzie libart.
57
58 %description -l pt_BR
59 Biblioteca de Extensão da Eazel.
60
61 %description -l ru
62 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
63
64 %description -l uk
65 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
66
67 %package devel
68 Summary:        Include files for developing with librsvg
69 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
70 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
71 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
72 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
73 Group:          Development/Libraries
74 Requires:       %{name} = %{epoch}:%{version}-%{release}
75 Requires:       glib2 >= 1:2.12.0
76 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.15.92}
77 Requires:       gtk+2-devel >= 2:2.10.2
78 Requires:       libart_lgpl-devel >= 2.3.17
79 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.1}
80 %{?with_libgsf:Requires:        libgsf-devel >= 1.14.1}
81 Requires:       libxml2-devel >= 2.6.26
82 Obsoletes:      librsvg0-devel
83
84 %description devel
85 This package provides the necessary development libraries and include
86 files to allow you to develop with librsvg.
87
88 %description devel -l pl
89 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
90 z wykorzystaniem librsvg.
91
92 %description devel -l pt_BR
93 Este pacote contém os arquivos necessários para desenvolver com base
94 na biblioteca librsvg.
95
96 %description devel -l ru
97 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
98 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
99
100 %description devel -l uk
101 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
102 librsvg.
103
104 %package static
105 Summary:        Static libraries for developing with librsvg
106 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
107 Summary(pl):    Statyczne biblioteki librsvg
108 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
109 Group:          Development/Libraries
110 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
111
112 %description static
113 This package contains static version of librsvg libraries.
114
115 %description static -l pl
116 Statyczna wersja bibliotek librsvg.
117
118 %description static -l pt_BR
119 Bibliotecas estáticas para o desenvolvimento de aplicações com
120 librsvg.
121
122 %prep
123 %setup -q
124
125 %build
126 %{__libtoolize}
127 %{__aclocal}
128 %{__autoconf}
129 %{__automake}
130 %configure \
131         %{!?with_gnomevfs:--disable-gnome-vfs} \
132         %{!?with_gnomeprint:--disable-gnome-print} \
133         --disable-mozilla-plugin \
134         %{?with_apidocs:--enable-gtk-doc} \
135         %{!?with_libcroco:--without-croco} \
136         %{!?with_libgsf:--without-svgz} \
137         --with-html-dir=%{_gtkdocdir}/%{name}
138 %{__make}
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142
143 %{__make} install \
144         DESTDIR=$RPM_BUILD_ROOT \
145         pkgconfigdir=%{_pkgconfigdir}
146
147 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
148
149 %clean
150 rm -rf $RPM_BUILD_ROOT
151
152 %post
153 /sbin/ldconfig
154 umask 022
155 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
156
157 %postun
158 /sbin/ldconfig
159 umask 022
160 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
161
162 %files
163 %defattr(644,root,root,755)
164 %doc ChangeLog AUTHORS NEWS
165 %attr(755,root,root) %{_bindir}/rsvg*
166 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
167 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
168 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
169 %{_mandir}/man1/rsvg.1*
170 %{_pixmapsdir}/svg-viewer.svg
171
172 %files devel
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/librsvg-2.so
175 %{_libdir}/librsvg-2.la
176 %{_pkgconfigdir}/librsvg-2.0.pc
177 %{_includedir}/librsvg-2
178 %{_gtkdocdir}/%{name}
179
180 %files static
181 %defattr(644,root,root,755)
182 %{_libdir}/librsvg-2.a
This page took 0.511249 seconds and 4 git commands to generate.