]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
88342a1fab9f794be64f2e1544b034f7006e226f
[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:        1
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.12}
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Obsoletes:      librsvg0
41
42 %define         gimpplugindir   %(gimp-config --gimpplugindir)/plug-ins
43
44 %description
45 An SVG library based upon libart.
46
47 %description -l pl
48 Biblioteka do obs³ugi grafiki wektorowej.
49
50 %description -l pt_BR
51 Biblioteca de Extensão da Eazel.
52
53 %description -l ru
54 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
55
56 %description -l uk
57 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
58
59 %package devel
60 Summary:        Include files for developing with librsvg
61 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
62 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
63 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
64 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}
67 Requires:       gtk+2-devel >= 2.2.0
68 Requires:       libart_lgpl-devel >= 2.3.11
69 %{!?_without_libgsf:Requires:   libgsf-devel >= 1.6.0}
70 Requires:       libxml2-devel >= 2.5.1
71 Obsoletes:      librsvg0-devel
72
73 %description devel
74 This package provides the necessary development libraries and include
75 files to allow you to develop with librsvg.
76  
77 %description devel -l pl
78 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
79 z wykorzystaniem librsvg.
80
81 %description devel -l pt_BR
82 Este pacote contém os arquivos necessários para desenvolver com base
83 na biblioteca librsvg.
84
85 %description devel -l ru
86 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
87 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
88
89 %description devel -l uk
90 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
91 librsvg.
92
93 %package static
94 Summary:        Static libraries for developing with librsvg
95 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
96 Summary(pl):    Statyczne biblioteki librsvg
97 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
98 Group:          Development/Libraries
99 Requires:       %{name}-devel = %{version}
100
101 %description static
102 This package contains static version of librsvg libraries.
103
104 %description static -l pl
105 Statyczna wersja bibliotek librsvg.
106
107 %description static -l pt_BR
108 Bibliotecas estáticas para o desenvolvimento de aplicações com
109 librsvg.
110
111 %package -n gimp-svg
112 Summary:        SVG plugin for Gimp
113 Summary:        Wtyczka SVG dla Gimpa
114 Group:          X11/Applications/Graphics
115 Requires:       %{name} = %{version}
116 Requires:       gimp
117
118 %description -n gimp-svg
119 SVG plugin for Gimp.
120
121 %description -n gimp-svg -l pl
122 Wtyczka SVG dla Gimpa.
123
124 %prep
125 %setup -q
126 %patch -p1
127
128 %build
129 %{__libtoolize}
130 %{__aclocal}
131 %{__autoconf}
132 %{__automake}
133 %configure \
134         %{?_without_gimp:--without-gimp} \
135         %{?_without_libgsf:--without-svgz}
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139
140 %{__make} install \
141         DESTDIR=$RPM_BUILD_ROOT \
142         pkgconfigdir=%{_pkgconfigdir} \
143         manonedir=%{_mandir}/man1
144
145 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
146
147 %clean
148 rm -rf $RPM_BUILD_ROOT
149
150 %post   -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
152
153 %files
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_bindir}/*
156 %attr(755,root,root) %{_libdir}/lib*.so.*.*
157 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
158 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
159 %{_mandir}/man1/rsvg.1*
160
161 %files devel
162 %defattr(644,root,root,755)
163 %doc ChangeLog AUTHORS NEWS
164 %{_libdir}/lib*.la
165 %attr(755,root,root) %{_libdir}/lib*.so
166 %{_pkgconfigdir}/*.pc
167 %{_includedir}/librsvg-2
168 %{_docdir}/%{name}
169
170 %files static
171 %defattr(644,root,root,755)
172 %{_libdir}/lib*.a
173
174 %if %{?_without_gimp:0}%{!?_without_gimp:1}
175 %files -n gimp-svg
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{gimpplugindir}/svg
178 %endif
This page took 0.088421 seconds and 3 git commands to generate.