]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
58bf57950774af16d4dfcceb32cb7963ba803926
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
4 %bcond_without  libcroco        # build without CSS support through libcroco
5 #
6 Summary:        Raph's SVG library
7 Summary(pl):    Biblioteka Raph's SVG
8 Summary(pt_BR): Biblioteca SVG
9 Summary(ru):    SVG ÂÉÂÌÉÏÔÅËÁ
10 Summary(uk):    SVG Â¦Â̦ÏÔÅËÁ
11 Name:           librsvg
12 Version:        2.6.3
13 Release:        1
14 Epoch:          1
15 License:        LGPL
16 Vendor:         GNOME
17 Group:          Libraries
18 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
19 # Source0-md5:  02847b0d8fd87d13f69b1ab37c3dda12
20 URL:            http://librsvg.sourceforge.net/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  gtk+2-devel >= 2:2.4.0
24 BuildRequires:  gtk-doc >= 0.9
25 BuildRequires:  libart_lgpl-devel >= 2.3.15
26 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.5.0}
27 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.6.0}
28 BuildRequires:  libtool
29 BuildRequires:  libxml2-devel >= 2.5.10
30 BuildRequires:  popt-devel >= 1.5
31 Requires(post,postun):  /sbin/ldconfig
32 Requires(post,postun):  gtk+2
33 Requires:       gtk+2 >= 2:2.4.0
34 Requires:       libart_lgpl >= 2.3.15
35 %{?with_libcroco:Requires:      libcroco >= 0.5.0}
36 %{?with_libgsf:Requires:        libgsf >= 1.6.0}
37 Requires:       libxml2 >= 2.5.10
38 Requires:       popt >= 1.5
39 Obsoletes:      librsvg0
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 An SVG library based upon libart.
44
45 %description -l pl
46 Biblioteka do obs³ugi grafiki wektorowej.
47
48 %description -l pt_BR
49 Biblioteca de Extensão da Eazel.
50
51 %description -l ru
52 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
53
54 %description -l uk
55 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
56
57 %package devel
58 Summary:        Include files for developing with librsvg
59 Summary(pl):    Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
60 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
61 Summary(ru):    âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
62 Summary(uk):    â¦Â̦ÏÔÅÞΦ Ì¦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×˦נÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
63 Group:          Development/Libraries
64 Requires:       %{name} = %{epoch}:%{version}-%{release}
65 Requires:       gtk+2-devel >= 2:2.4.0
66 Requires:       libart_lgpl-devel >= 2.3.15
67 %{?with_libcroco:Requires:      libcroco-devel >= 0.5.0}
68 %{?with_libgsf:Requires:        libgsf-devel >= 1.6.0}
69 Requires:       libxml2-devel >= 2.5.10
70 Obsoletes:      librsvg0-devel
71
72 %description devel
73 This package provides the necessary development libraries and include
74 files to allow you to develop with librsvg.
75
76 %description devel -l pl
77 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
78 z wykorzystaniem librsvg.
79
80 %description devel -l pt_BR
81 Este pacote contém os arquivos necessários para desenvolver com base
82 na biblioteca librsvg.
83
84 %description devel -l ru
85 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
86 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
87
88 %description devel -l uk
89 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
90 librsvg.
91
92 %package static
93 Summary:        Static libraries for developing with librsvg
94 Summary(es):    Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
95 Summary(pl):    Statyczne biblioteki librsvg
96 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
97 Group:          Development/Libraries
98 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
99
100 %description static
101 This package contains static version of librsvg libraries.
102
103 %description static -l pl
104 Statyczna wersja bibliotek librsvg.
105
106 %description static -l pt_BR
107 Bibliotecas estáticas para o desenvolvimento de aplicações com
108 librsvg.
109
110 %prep
111 %setup -q
112
113 # obsolete macro (defined as empty in gnome-common)
114 %{__perl} -pi -e 's/GNOME_REQUIRE_PKGCONFIG//' configure.in
115
116 %build
117 %{__libtoolize}
118 %{__aclocal}
119 %{__autoconf}
120 %{__automake}
121 %configure \
122         %{!?with_libcroco:--without-croco} \
123         %{!?with_libgsf:--without-svgz} \
124         --enable-gtk-doc \
125         --with-html-dir=%{_gtkdocdir}/%{name}
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129
130 %{__make} install \
131         DESTDIR=$RPM_BUILD_ROOT \
132         pkgconfigdir=%{_pkgconfigdir}
133
134 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
135
136 %clean
137 rm -rf $RPM_BUILD_ROOT
138
139 %post
140 /sbin/ldconfig
141 umask 022
142 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
143
144 %postun
145 /sbin/ldconfig
146 umask 022
147 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
148
149 %files
150 %defattr(644,root,root,755)
151 %doc ChangeLog AUTHORS NEWS
152 %attr(755,root,root) %{_bindir}/*
153 %attr(755,root,root) %{_libdir}/lib*.so.*.*
154 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
155 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
156 %{_mandir}/man1/rsvg.1*
157
158 %files devel
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/lib*.so
161 %{_libdir}/lib*.la
162 %{_pkgconfigdir}/*.pc
163 %{_includedir}/librsvg-2
164 %{_gtkdocdir}/%{name}
165
166 %files static
167 %defattr(644,root,root,755)
168 %{_libdir}/lib*.a
This page took 0.042812 seconds and 2 git commands to generate.