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