9397
|
1 |
#
|
|
2 |
# spec file for package librsvg
|
|
3 |
#
|
18066
|
4 |
# Copyright 2010 Sun Microsystems, Inc.
|
9397
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner padraig
|
9397
|
9 |
#
|
16430
|
10 |
|
17852
|
11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
16430
|
12 |
|
9397
|
13 |
Name: librsvg
|
18066
|
14 |
License: Library is LGPLv2, binaries are GPLv2
|
9397
|
15 |
Group: System/Libraries/GNOME
|
18327
|
16 |
Version: 2.31.0
|
9397
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17865
|
19 |
Vendor: Gnome Community
|
9397
|
20 |
Summary: Library for SVG support for GNOME
|
18327
|
21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.31/librsvg-%{version}.tar.bz2
|
9397
|
22 |
URL: http://www.gnome.org
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_docdir}/librsvg
|
|
25 |
Autoreqprov: on
|
|
26 |
Prereq: /sbin/ldconfig
|
18269
|
27 |
# date:2010-07-22 owner:yippi type:branding
|
18327
|
28 |
Patch1: librsvg-01-python.diff
|
17323
|
29 |
|
9397
|
30 |
%define libxml2_version 2.6.7
|
|
31 |
%define gtk2_version 2.4.0
|
|
32 |
%define freetype2_version 2.1.7
|
|
33 |
%define popt_version 1.7
|
|
34 |
%define libart_version 2.3.16
|
|
35 |
|
|
36 |
Requires: libxml2 >= %{libxml2_version}
|
|
37 |
Requires: gtk2 >= %{gtk2_version}
|
|
38 |
Requires: freetype2 >= %{freetype2_version}
|
|
39 |
Requires: popt >= %{popt_version}
|
|
40 |
Requires: libart_lgpl >= %{libart_version}
|
|
41 |
Requires: libpng
|
|
42 |
|
|
43 |
BuildRequires: libxml2-devel >= %{libxml2_version}
|
|
44 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
45 |
BuildRequires: freetype2-devel >= %{freetype2_version}
|
|
46 |
BuildRequires: popt >= %{popt_version}
|
|
47 |
BuildRequires: libart_lgpl-devel >= %{libart_version}
|
|
48 |
BuildRequires: libpng-devel
|
|
49 |
|
|
50 |
%description
|
|
51 |
librsvg provides SVG support for GNOME
|
|
52 |
|
|
53 |
%package devel
|
|
54 |
Summary: Development Library for SVG support for GNOME
|
|
55 |
Group: Development/Libraries/GNOME
|
|
56 |
Requires: %{name} = %{version}
|
|
57 |
Requires: libxml2-devel >= %{libxml2_version}
|
|
58 |
Requires: gtk2-devel >= %{gtk2_version}
|
|
59 |
Requires: freetype2-devel >= %{freetype2_version}
|
|
60 |
Requires: libart_lgpl-devel >= %{libart_version}
|
|
61 |
|
|
62 |
%description devel
|
|
63 |
librsvg provides SVG support for GNOME
|
|
64 |
|
|
65 |
%prep
|
|
66 |
%setup -q
|
17323
|
67 |
%patch1 -p1
|
9397
|
68 |
|
|
69 |
%build
|
|
70 |
%ifos linux
|
|
71 |
if [ -x /usr/bin/getconf ]; then
|
|
72 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
73 |
fi
|
|
74 |
%else
|
|
75 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
76 |
%endif
|
|
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
78 |
CPUS=1
|
|
79 |
fi
|
|
80 |
|
|
81 |
libtoolize --force
|
|
82 |
aclocal $ACLOCAL_FLAGS -I .
|
|
83 |
autoheader
|
|
84 |
automake -a -c -f
|
|
85 |
autoconf
|
13206
|
86 |
export CFLAGS="%optflags"
|
|
87 |
export LDFLAGS="%_ldflags"
|
9397
|
88 |
./configure --prefix=%{_prefix} \
|
13206
|
89 |
--libdir=%{_libdir} \
|
|
90 |
--bindir=%{_bindir} \
|
9397
|
91 |
--sysconfdir=%{_sysconfdir} \
|
|
92 |
--mandir=%{_mandir} \
|
|
93 |
%{gtk_doc_option} \
|
|
94 |
--with-html-dir=%{_datadir}/gtk-doc/html/librsvg
|
|
95 |
make -j $CPUS
|
|
96 |
|
|
97 |
%install
|
|
98 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
99 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
|
|
100 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
|
|
101 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.a
|
|
102 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.la
|
|
103 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
104 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
105 |
|
|
106 |
%clean
|
|
107 |
rm -rf $RPM_BUILD_ROOT
|
|
108 |
|
|
109 |
%post
|
|
110 |
/sbin/ldconfig
|
|
111 |
mkdir -p %{_sysconfdir}/gtk-2.0
|
|
112 |
gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
|
|
113 |
|
|
114 |
%postun
|
|
115 |
/sbin/ldconfig
|
|
116 |
gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
|
|
117 |
|
|
118 |
%files
|
|
119 |
%defattr(-, root, root)
|
|
120 |
%{_libdir}/*.so.*
|
|
121 |
%{_libdir}/gtk-2.0/*/engines/libsvg.so
|
|
122 |
%{_libdir}/gtk-2.0/*/loaders/svg_loader.so
|
|
123 |
%{_bindir}
|
|
124 |
%{_mandir}/man1/*
|
|
125 |
%{_mandir}/man3/*
|
|
126 |
%{_datadir}/pixmaps
|
|
127 |
|
|
128 |
%files devel
|
|
129 |
%defattr(-, root, root)
|
|
130 |
%{_libdir}/*.so
|
|
131 |
%{_libdir}/pkgconfig/*.pc
|
|
132 |
%{_includedir}/librsvg-2
|
|
133 |
%{_datadir}/gtk-doc/html/librsvg
|
|
134 |
|
|
135 |
%changelog
|
18327
|
136 |
* Sun Aug 01 2010 - [email protected]
|
|
137 |
- Bump to 2.31.0.
|
18269
|
138 |
* Wed Jul 21 2010 - [email protected]
|
|
139 |
- Add patch librsvg-02-python.diff so that /usr/bin/rsvg uses Python 2.6.
|
18066
|
140 |
* Wed Jun 02 2010 - [email protected]
|
|
141 |
- Bump to 2.26.3.
|
|
142 |
* Sat Apr 03 2010 - [email protected]
|
17792
|
143 |
- Bump to 2.26.2.
|
17323
|
144 |
* Tue Jan 13 2010 - [email protected]
|
|
145 |
- Fix build issue.
|
15409
|
146 |
* Tue Mar 17 2009 - [email protected]
|
18066
|
147 |
- Bump to 2.26.0.
|
13746
|
148 |
* Wed Sep 24 2008 - [email protected]
|
|
149 |
- Bump to 2.22.3.
|
|
150 |
- Remove librsvg-01-license.diff, fixed upstream.
|
13206
|
151 |
* Thu Aug 21 2008 - [email protected]
|
18066
|
152 |
- set env variable needed for 64-bit build.
|
12664
|
153 |
* Fri Jun 13 2008 - [email protected]
|
|
154 |
- Add librsvg-01-license.diff to prevent gdk-pixbuf-query-loaders crash
|
11795
|
155 |
* Wed Mar 05 2008 - [email protected]
|
|
156 |
- Bump to 2.22.2.
|
11709
|
157 |
* Mon Feb 25 2008 - [email protected]
|
|
158 |
- Bump to 2.22.1.
|
11501
|
159 |
* Tue Jan 22 2008 - [email protected]
|
|
160 |
- Bump to 2.20.0.
|
10415
|
161 |
* Fri Aug 31 2007 - [email protected]
|
|
162 |
- Bump to 2.18.2.
|
10358
|
163 |
* Tue Aug 21 2007 - [email protected]
|
|
164 |
- Bump to 2.18.1.
|
10212
|
165 |
* Tue Jul 24 2007 - [email protected]
|
|
166 |
- Bump to 2.18.0.
|
9397
|
167 |
* Thu Jan 25 2007 - [email protected]
|
|
168 |
- librsvg-01-no-def-file.diff removed. It's no longer needed.
|
|
169 |
* Thu Jan 25 2007 - [email protected]
|
|
170 |
- librsvg-02-fixfunc.diff is no longer needed.
|
|
171 |
* Fri Nov 3 2006 - [email protected]
|
|
172 |
- use %gtk_doc_option in configure so that it can be disabled using
|
18066
|
173 |
--without-gtk-doc.
|
9397
|
174 |
* Fri Nov 03 2006 - [email protected]
|
|
175 |
- Bump to 2.16.1.
|
|
176 |
* Thu Aug 31 2006 - [email protected]
|
|
177 |
- Bump to 2.16.0.
|
|
178 |
* Fri Jul 28 2006 - [email protected]
|
|
179 |
- Bump to 2.15.90.
|
|
180 |
* Mon Jul 10 2006 - [email protected]
|
|
181 |
- Bump to 2.14.4. Add patch to redefine __PRETTY_FUNCTION__ to
|
|
182 |
__func__ so it compiles on Solaris.
|
|
183 |
* Mon Apr 03 2006 - [email protected]
|
|
184 |
- Bump to 2.14.3.
|
|
185 |
* Sun Mar 12 2006 - [email protected]
|
|
186 |
- Bump to 2.14.2.
|
|
187 |
* Tue Feb 28 2006 - [email protected]
|
|
188 |
- Bump to 2.14.1.
|
|
189 |
* Sun Feb 26 2006 - [email protected]
|
|
190 |
- Bump to 2.14.0.
|
|
191 |
* Mon Feb 13 2006 - [email protected]
|
|
192 |
- Bump to 2.13.93.
|
|
193 |
* Wed Feb 8 2006 - [email protected]
|
|
194 |
- Bump to 2.13.92.
|
|
195 |
* Fri Jan 20 2006 - [email protected]
|
|
196 |
- Add patch, 01-no-def-file, so as not to use .def file, to build on Solaris.
|
|
197 |
* Sun Jan 15 2006 - [email protected]
|
|
198 |
- Bump to 2.13.5
|
|
199 |
* Mon Jan 09 2006 - [email protected]
|
|
200 |
- Remove patch, 01-rsvg-text-void-ret, as the code referenced is gone.
|
|
201 |
* Tue Jan 03 2006 - [email protected]
|
|
202 |
- Bump to 2.13.3.
|
|
203 |
* Tue Aug 23 2005 - [email protected]
|
|
204 |
- Add mozilla build dependency so that mozilla/plugins build.
|
|
205 |
* Tue Jun 14 2005 - [email protected]
|
|
206 |
- added patch from HEAD for void functions returning values (breaks the build
|
18066
|
207 |
with Forte).
|
9397
|
208 |
* Thu May 19 2005 - [email protected]
|
18066
|
209 |
- ported to 2.9.5.
|
9397
|
210 |
* Thu Oct 28 2004 - [email protected]
|
18066
|
211 |
- Add rsvg.1, librsvg-2.3 man pages.
|
9397
|
212 |
* Tue Aug 24 2004 - [email protected]
|
|
213 |
- Corrected --with-html-dir so it uses %{_datadir}.
|
|
214 |
* Tue Aug 24 2004 - [email protected]
|
18066
|
215 |
- removed /usr/share/doc from file list.
|
9397
|
216 |
* Wed Aug 18 2004 - [email protected]
|
|
217 |
- added patch 2 to fix gtk-doc building. added --enable-gtk-doc.
|
|
218 |
* Wed Jul 07 2004 - [email protected]
|
18066
|
219 |
- ported to rpm4.
|
9397
|
220 |
* Wed Jul 07 2004 - [email protected]
|
18066
|
221 |
- added "-j $CPUS" to make to speed up builds.
|
9397
|
222 |
* Fri Feb 20 2004 - <[email protected]>
|
18066
|
223 |
- Updated Distro.
|
9397
|
224 |
* Thu Feb 12 2004 - <[email protected]>
|
|
225 |
- added a -uninstalled.pc file patch.
|
18066
|
226 |
- autotoolize the build stage.
|
9397
|
227 |
* Tue Dec 16 2003 - <[email protected]>
|
18066
|
228 |
- Update to 2.5.0.
|
9397
|
229 |
* Fri Oct 10 2003 - <[email protected]>
|
18066
|
230 |
- update to 2.4.0.
|
9397
|
231 |
* Thu Aug 14 2003 - <[email protected]>
|
18066
|
232 |
- remove *.a, *.la.
|
9397
|
233 |
* Tue May 13 2003 - [email protected]
|
18066
|
234 |
- Initial Sun release.
|