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