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