19693
|
1 |
#
|
|
2 |
# spec file for package librsvg
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
100
|
8 |
Name: librsvg
|
208
|
9 |
License: LGPL
|
|
10 |
Group: System/Libraries/GNOME
|
19330
|
11 |
Version: 2.9.5
|
|
12 |
Release: 1
|
19693
|
13 |
Distribution: Java Desktop System
|
575
|
14 |
Vendor: Sun Microsystems, Inc.
|
156
|
15 |
Summary: Library for SVG support for GNOME
|
19334
|
16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.9/librsvg-%{version}.tar.bz2
|
4357
|
17 |
Source1: rsvg.1.gz
|
|
18 |
Source2: librsvg-2.3.gz
|
19408
|
19 |
Patch1: librsvg-01-rsvg-text-void-ret.diff
|
208
|
20 |
URL: http://www.gnome.org
|
100
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
Docdir: %{_docdir}/librsvg
|
|
23 |
Autoreqprov: on
|
1080
|
24 |
Prereq: /sbin/ldconfig
|
100
|
25 |
|
3628
|
26 |
%define libxml2_version 2.6.7
|
|
27 |
%define gtk2_version 2.4.0
|
|
28 |
%define freetype2_version 2.1.7
|
|
29 |
%define popt_version 1.7
|
1224
|
30 |
%define libart_version 2.3.16
|
156
|
31 |
|
|
32 |
Requires: libxml2 >= %{libxml2_version}
|
|
33 |
Requires: gtk2 >= %{gtk2_version}
|
|
34 |
Requires: freetype2 >= %{freetype2_version}
|
|
35 |
Requires: popt >= %{popt_version}
|
|
36 |
Requires: libart_lgpl >= %{libart_version}
|
|
37 |
Requires: libpng
|
|
38 |
|
|
39 |
BuildRequires: libxml2-devel >= %{libxml2_version}
|
|
40 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
41 |
BuildRequires: freetype2-devel >= %{freetype2_version}
|
|
42 |
BuildRequires: popt >= %{popt_version}
|
|
43 |
BuildRequires: libart_lgpl-devel >= %{libart_version}
|
|
44 |
BuildRequires: libpng-devel
|
|
45 |
|
100
|
46 |
%description
|
208
|
47 |
librsvg provides SVG support for GNOME
|
156
|
48 |
|
|
49 |
%package devel
|
208
|
50 |
Summary: Development Library for SVG support for GNOME
|
156
|
51 |
Group: Development/Libraries/GNOME
|
|
52 |
Requires: %{name} = %{version}
|
|
53 |
Requires: libxml2-devel >= %{libxml2_version}
|
|
54 |
Requires: gtk2-devel >= %{gtk2_version}
|
|
55 |
Requires: freetype2-devel >= %{freetype2_version}
|
|
56 |
Requires: libart_lgpl-devel >= %{libart_version}
|
|
57 |
|
|
58 |
%description devel
|
208
|
59 |
librsvg provides SVG support for GNOME
|
100
|
60 |
|
|
61 |
%prep
|
156
|
62 |
%setup -q
|
19408
|
63 |
%patch1 -p1
|
100
|
64 |
|
4455
|
65 |
|
100
|
66 |
%build
|
3263
|
67 |
%ifos linux
|
|
68 |
if [ -x /usr/bin/getconf ]; then
|
|
69 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
70 |
fi
|
|
71 |
%else
|
3846
|
72 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
73 |
%endif
|
|
74 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
75 |
CPUS=1
|
|
76 |
fi
|
|
77 |
|
1701
|
78 |
libtoolize --force
|
19243
|
79 |
aclocal $ACLOCAL_FLAGS -I .
|
1701
|
80 |
autoheader
|
|
81 |
automake -a -c -f
|
|
82 |
autoconf
|
208
|
83 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
84 |
./configure --prefix=%{_prefix} \
|
3731
|
85 |
--sysconfdir=%{_sysconfdir} \
|
208
|
86 |
--mandir=%{_mandir} \
|
3660
|
87 |
--enable-gtk-doc \
|
3731
|
88 |
--with-html-dir=%{_datadir}/gtk-doc/html/librsvg
|
3263
|
89 |
make -j $CPUS
|
100
|
90 |
|
|
91 |
%install
|
208
|
92 |
make DESTDIR=$RPM_BUILD_ROOT install
|
4357
|
93 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1
|
|
94 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3
|
|
95 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
96 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3
|
3628
|
97 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
|
|
98 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
|
|
99 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.a
|
|
100 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.la
|
|
101 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
102 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
19365
|
103 |
rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.a
|
|
104 |
rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.la
|
100
|
105 |
|
156
|
106 |
%clean
|
100
|
107 |
rm -rf $RPM_BUILD_ROOT
|
|
108 |
|
156
|
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
|
100
|
119 |
%defattr(-, root, root)
|
156
|
120 |
%{_libdir}/*.so.*
|
|
121 |
%{_libdir}/gtk-2.0/*/engines/libsvg.so
|
|
122 |
%{_libdir}/gtk-2.0/*/loaders/svg_loader.so
|
19726
|
123 |
%{_libdir}/mozilla/plugins/*.so
|
19330
|
124 |
%{_bindir}
|
156
|
125 |
%{_mandir}/man1/*
|
4357
|
126 |
%{_mandir}/man3/*
|
19330
|
127 |
%{_datadir}/pixmaps
|
100
|
128 |
|
|
129 |
%files devel
|
|
130 |
%defattr(-, root, root)
|
156
|
131 |
%{_libdir}/*.so
|
100
|
132 |
%{_libdir}/pkgconfig/*.pc
|
|
133 |
%{_includedir}/librsvg-2
|
3660
|
134 |
%{_datadir}/gtk-doc/html/librsvg
|
100
|
135 |
|
156
|
136 |
%changelog
|
19408
|
137 |
* Tue Jun 14 2005 - [email protected]
|
|
138 |
- added patch from HEAD for void functions returning values (breaks the build
|
|
139 |
with Forte)
|
|
140 |
|
19330
|
141 |
* Thu May 19 2005 - [email protected]
|
|
142 |
- ported to 2.9.5
|
19334
|
143 |
|
4357
|
144 |
* Thu Oct 28 2004 - [email protected]
|
|
145 |
- Add rsvg.1, librsvg-2.3 man pages
|
|
146 |
|
3731
|
147 |
* Tue Aug 24 2004 - [email protected]
|
|
148 |
- Corrected --with-html-dir so it uses %{_datadir}.
|
19334
|
149 |
|
3713
|
150 |
* Tue Aug 24 2004 - [email protected]
|
|
151 |
- removed /usr/share/doc from file list
|
19334
|
152 |
|
3687
|
153 |
* Wed Aug 18 2004 - [email protected]
|
3660
|
154 |
- added patch 2 to fix gtk-doc building. added --enable-gtk-doc.
|
|
155 |
|
3628
|
156 |
* Wed Jul 07 2004 - [email protected]
|
|
157 |
- ported to rpm4
|
|
158 |
|
3263
|
159 |
* Wed Jul 07 2004 - [email protected]
|
|
160 |
- added "-j $CPUS" to make to speed up builds
|
|
161 |
|
1845
|
162 |
* Fri Feb 20 2004 - <[email protected]>
|
|
163 |
- Updated Distro
|
|
164 |
|
1701
|
165 |
* Thu Feb 12 2004 - <[email protected]>
|
|
166 |
- added a -uninstalled.pc file patch.
|
|
167 |
- autotoolize the build stage
|
|
168 |
|
1450
|
169 |
* Tue Dec 16 2003 - <[email protected]>
|
|
170 |
- Update to 2.5.0
|
|
171 |
|
1224
|
172 |
* Fri Oct 10 2003 - <[email protected]>
|
|
173 |
- update to 2.4.0
|
|
174 |
|
1058
|
175 |
* Thu Aug 14 2003 - <[email protected]>
|
|
176 |
- remove *.a, *.la
|
|
177 |
|
100
|
178 |
* Tue May 13 2003 - [email protected]
|
156
|
179 |
- Initial Sun release
|