]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- use default gimptool
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 # _without_gimp         - without gimp svg plugin
4 # _without_libgsf       - without libgsf (used for run-time decompression)
5 #
6 %ifarch ppc
7 %define _without_gimp   1
8 %endif
9
10 Summary:        Raph's SVG library
11 Summary(pl):    Biblioteka Raph's SVG
12 Summary(pt_BR): Biblioteca SVG
13 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
14 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
15 Name:           librsvg
16 Version:        2.3.1
17 Release:        2
18 License:        LGPL
19 Vendor:         GNOME
20 Group:          Libraries
21 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/2.3/%{name}-%{version}.tar.bz2
22 # Source0-md5:  ef9317a3df6d99a44ddf75e4fbcaab4a
23 Patch0:         %{name}-link.patch
24 URL:            http://nautilus.eazel.com/
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  freetype-devel >= 2.0.1
28 %{!?_without_gimp:BuildRequires: gimp-devel >= 1.3.17}
29 BuildRequires:  gtk+2-devel >= 2.2.0
30 BuildRequires:  libart_lgpl-devel >= 2.3.11
31 # TODO: libcroco-devel >= 0.1.0 (optional)
32 %{!?_without_libgsf:BuildRequires:      libgsf-devel >= 1.6.0}
33 BuildRequires:  libpng-devel
34 BuildRequires:  libtool
35 BuildRequires:  libxml2-devel >= 2.5.1
36 BuildRequires:  popt-devel >= 1.5
37 Requires:       gtk+2 >= 2.2.0
38 Requires:       popt >= 1.5
39 Obsoletes:      librsvg0
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %if 0%{!?_without_gimp:1}
43 %define         gimpplugindir   %(gimptool --gimpplugindir)/plug-ins
44 %endif
45
46 %description
47 An SVG library based upon libart.
48
49 %description -l pl
50 Biblioteka do obs³ugi grafiki wektorowej.
51
52 %description -l pt_BR
53 Biblioteca de Extensão da Eazel.
54
55 %description -l ru
56 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
57
58 %description -l uk
59 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
60
61 %package devel
62 Summary:        Include files for developing with librsvg
63 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
64 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
65 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
66 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}
69 Requires:       gtk+2-devel >= 2.2.0
70 Requires:       libart_lgpl-devel >= 2.3.11
71 %{!?_without_libgsf:Requires:   libgsf-devel >= 1.6.0}
72 Requires:       libxml2-devel >= 2.5.1
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         %{?_without_gimp:--without-gimp} \
137         %{?_without_libgsf:--without-svgz}
138
139 %install
140 rm -rf $RPM_BUILD_ROOT
141
142 %{__make} install \
143         DESTDIR=$RPM_BUILD_ROOT \
144         pkgconfigdir=%{_pkgconfigdir} \
145         manonedir=%{_mandir}/man1
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   -p /sbin/ldconfig
153 %postun -p /sbin/ldconfig
154
155 %files
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_bindir}/*
158 %attr(755,root,root) %{_libdir}/lib*.so.*.*
159 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
160 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
161 %{_mandir}/man1/rsvg.1*
162
163 %files devel
164 %defattr(644,root,root,755)
165 %doc ChangeLog AUTHORS NEWS
166 %{_libdir}/lib*.la
167 %attr(755,root,root) %{_libdir}/lib*.so
168 %{_pkgconfigdir}/*.pc
169 %{_includedir}/librsvg-2
170 %{_docdir}/%{name}
171
172 %files static
173 %defattr(644,root,root,755)
174 %{_libdir}/lib*.a
175
176 %if %{?_without_gimp:0}%{!?_without_gimp:1}
177 %files -n gimp-svg
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{gimpplugindir}/svg
180 %endif
This page took 0.072649 seconds and 3 git commands to generate.