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