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