]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- 2.12.7
[packages/librsvg.git] / librsvg.spec
1 # TODO
2 # - mozilla_firefox bcond/subpackage
3 #
4 # Conditional build
5 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
6 %bcond_without  libcroco        # build without CSS support through libcroco
7 %bcond_without  gnomeprint      # build without gnome-print support in viewer
8 %bcond_without  gnomevfs        # build without gnome-vfs support
9 %bcond_without  mozilla         # do not build mozilla plugin
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.12.7
18 Release:        1
19 Epoch:          1
20 License:        LGPL v2+
21 Vendor:         GNOME
22 Group:          Libraries
23 Source0:        http://ftp.gnome.org/pub/gnome/sources/librsvg/2.12/%{name}-%{version}.tar.bz2
24 # Source0-md5:  2113f01fbf228f3f8fc17c49966143fe
25 URL:            http://librsvg.sourceforge.net/
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  gtk+2-devel >= 2:2.6.2
29 BuildRequires:  gtk-doc >= 0.9
30 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.10.0-2}
31 BuildRequires:  libart_lgpl-devel >= 2.3.15
32 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.0}
33 %{?with_gnomeprint:BuildRequires:       libgnomeprintui-devel >= 2.10.0}
34 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.11.1}
35 BuildRequires:  libtool
36 BuildRequires:  libxml2-devel >= 2.6.17
37 %{?with_mozilla:BuildRequires:  mozilla-devel}
38 BuildRequires:  popt-devel >= 1.5
39 BuildRequires:  pkgconfig
40 BuildRequires:  xcursor-devel
41 BuildRequires:  xft-devel
42 BuildRequires:  xrender-devel
43 %{!?with_gnomeprint:BuildConflicts:     libgnomeprintui-devel}
44 Requires(post,postun):  /sbin/ldconfig
45 Requires(post,postun):  gtk+2
46 Requires:       gtk+2 >= 2:2.6.2
47 Requires:       libart_lgpl >= 2.3.15
48 %{?with_libcroco:Requires:      libcroco >= 0.6.0}
49 %{?with_libgsf:Requires:        libgsf >= 1.11.1}
50 Requires:       libxml2 >= 2.6.17
51 Requires:       popt >= 1.5
52 Obsoletes:      librsvg0
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %define         mozilladir      %{_libdir}/mozilla
56
57 %description
58 An SVG library based upon libart.
59
60 %description -l pl
61 Biblioteka do obs³ugi grafiki wektorowej.
62
63 %description -l pt_BR
64 Biblioteca de Extensão da Eazel.
65
66 %description -l ru
67 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
68
69 %description -l uk
70 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
71
72 %package devel
73 Summary:        Include files for developing with librsvg
74 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
75 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
76 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
77 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
78 Group:          Development/Libraries
79 Requires:       %{name} = %{epoch}:%{version}-%{release}
80 %{?with_gnomevfs:Requires:      gnome-vfs2-devel >= 2.10.0-2}
81 Requires:       gtk+2-devel >= 2:2.6.2
82 Requires:       libart_lgpl-devel >= 2.3.15
83 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.0}
84 %{?with_libgsf:Requires:        libgsf-devel >= 1.11.1}
85 Requires:       libxml2-devel >= 2.6.17
86 Obsoletes:      librsvg0-devel
87
88 %description devel
89 This package provides the necessary development libraries and include
90 files to allow you to develop with librsvg.
91
92 %description devel -l pl
93 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
94 z wykorzystaniem librsvg.
95
96 %description devel -l pt_BR
97 Este pacote contém os arquivos necessários para desenvolver com base
98 na biblioteca librsvg.
99
100 %description devel -l ru
101 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
102 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
103
104 %description devel -l uk
105 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
106 librsvg.
107
108 %package static
109 Summary:        Static libraries for developing with librsvg
110 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
111 Summary(pl):    Statyczne biblioteki librsvg
112 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
113 Group:          Development/Libraries
114 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
115
116 %description static
117 This package contains static version of librsvg libraries.
118
119 %description static -l pl
120 Statyczna wersja bibliotek librsvg.
121
122 %description static -l pt_BR
123 Bibliotecas estáticas para o desenvolvimento de aplicações com
124 librsvg.
125
126 %package -n mozilla-plugin-rsvg
127 Summary:        Mozilla SVG plugin using librsvg
128 Summary(pl):    Wtyczka Mozilli do SVG wykorzystuj±ca librsvg
129 Group:          X11/Applications/Multimedia
130 Requires:       %{name} = %{epoch}:%{version}-%{release}
131 Requires:       mozilla
132
133 %description -n mozilla-plugin-rsvg
134 This plugin allows Mozilla-family browsers to view Scalable Vector
135 Graphics content using librsvg.
136
137 %description -n mozilla-plugin-rsvg -l pl
138 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
139 Vector Graphics) w przegl±darkach z rodziny Mozilli.
140
141 %prep
142 %setup -q
143
144 # obsolete macro (defined as empty in gnome-common)
145 %{__perl} -pi -e 's/GNOME_REQUIRE_PKGCONFIG//' configure.in
146
147 %build
148 %{!?with_mozilla:export MOZILLA_CONFIG=no}
149 %{__libtoolize}
150 %{__aclocal}
151 %{__autoconf}
152 %{__automake}
153 %configure \
154         %{!?with_libcroco:--without-croco} \
155         %{!?with_libgsf:--without-svgz} \
156         %{!?with_gnomevfs:--disable-gnome-vfs} \
157         --enable-gtk-doc \
158         --with-html-dir=%{_gtkdocdir}/%{name}
159 %{__make}
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT \
166         pkgconfigdir=%{_pkgconfigdir}
167
168 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
169 rm -f $RPM_BUILD_ROOT%{mozilladir}/plugins/*.{la,a}
170
171 %clean
172 rm -rf $RPM_BUILD_ROOT
173
174 %post
175 /sbin/ldconfig
176 umask 022
177 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
178
179 %postun
180 /sbin/ldconfig
181 umask 022
182 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
183
184 %files
185 %defattr(644,root,root,755)
186 %doc ChangeLog AUTHORS NEWS
187 %attr(755,root,root) %{_bindir}/*
188 %attr(755,root,root) %{_libdir}/lib*.so.*.*
189 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
190 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
191 %{_mandir}/man1/rsvg.1*
192 %{_pixmapsdir}/*
193
194 %files devel
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/lib*.so
197 %{_libdir}/lib*.la
198 %{_pkgconfigdir}/*.pc
199 %{_includedir}/librsvg-2
200 %{_gtkdocdir}/%{name}
201
202 %files static
203 %defattr(644,root,root,755)
204 %{_libdir}/lib*.a
205
206 %if %{with mozilla}
207 %files -n mozilla-plugin-rsvg
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{mozilladir}/plugins/*.so
210 %endif
This page took 0.0459039999999999 seconds and 4 git commands to generate.