author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 8564 | df62c23d2955 |
child 9104 | d22fe5ff24b7 |
permissions | -rw-r--r-- |
5518 | 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 |
# |
|
8564 | 8 |
# Owner: alo |
9 |
# |
|
100 | 10 |
Name: librsvg |
208 | 11 |
License: LGPL |
12 |
Group: System/Libraries/GNOME |
|
8496 | 13 |
Version: 2.16.1 |
5518 | 14 |
Release: 1 |
15 |
Distribution: Java Desktop System |
|
575 | 16 |
Vendor: Sun Microsystems, Inc. |
156 | 17 |
Summary: Library for SVG support for GNOME |
8029 | 18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.16/librsvg-%{version}.tar.bz2 |
4357 | 19 |
Source1: rsvg.1.gz |
20 |
Source2: librsvg-2.3.gz |
|
6629
ad90ca8f5a7c
* librsvg.spec: Add patch, 01-no-def-file, so as not to use .def file,
dc144907
parents:
6564
diff
changeset
|
21 |
Patch1: librsvg-01-no-def-file.diff |
7599 | 22 |
Patch2: librsvg-02-fixfunc.diff |
208 | 23 |
URL: http://www.gnome.org |
100 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
25 |
Docdir: %{_docdir}/librsvg |
|
26 |
Autoreqprov: on |
|
1080 | 27 |
Prereq: /sbin/ldconfig |
100 | 28 |
|
3628 | 29 |
%define libxml2_version 2.6.7 |
30 |
%define gtk2_version 2.4.0 |
|
31 |
%define freetype2_version 2.1.7 |
|
32 |
%define popt_version 1.7 |
|
1224 | 33 |
%define libart_version 2.3.16 |
156 | 34 |
|
35 |
Requires: libxml2 >= %{libxml2_version} |
|
36 |
Requires: gtk2 >= %{gtk2_version} |
|
37 |
Requires: freetype2 >= %{freetype2_version} |
|
38 |
Requires: popt >= %{popt_version} |
|
39 |
Requires: libart_lgpl >= %{libart_version} |
|
40 |
Requires: libpng |
|
41 |
||
42 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
43 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
44 |
BuildRequires: freetype2-devel >= %{freetype2_version} |
|
45 |
BuildRequires: popt >= %{popt_version} |
|
46 |
BuildRequires: libart_lgpl-devel >= %{libart_version} |
|
47 |
BuildRequires: libpng-devel |
|
48 |
||
100 | 49 |
%description |
208 | 50 |
librsvg provides SVG support for GNOME |
156 | 51 |
|
52 |
%package devel |
|
208 | 53 |
Summary: Development Library for SVG support for GNOME |
156 | 54 |
Group: Development/Libraries/GNOME |
55 |
Requires: %{name} = %{version} |
|
56 |
Requires: libxml2-devel >= %{libxml2_version} |
|
57 |
Requires: gtk2-devel >= %{gtk2_version} |
|
58 |
Requires: freetype2-devel >= %{freetype2_version} |
|
59 |
Requires: libart_lgpl-devel >= %{libart_version} |
|
60 |
||
61 |
%description devel |
|
208 | 62 |
librsvg provides SVG support for GNOME |
100 | 63 |
|
64 |
%prep |
|
156 | 65 |
%setup -q |
6629
ad90ca8f5a7c
* librsvg.spec: Add patch, 01-no-def-file, so as not to use .def file,
dc144907
parents:
6564
diff
changeset
|
66 |
%patch1 -p1 |
7599 | 67 |
%patch2 -p1 |
4455 | 68 |
|
100 | 69 |
%build |
3263 | 70 |
%ifos linux |
71 |
if [ -x /usr/bin/getconf ]; then |
|
72 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
73 |
fi |
|
74 |
%else |
|
3846 | 75 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 76 |
%endif |
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
78 |
CPUS=1 |
|
79 |
fi |
|
80 |
||
1701 | 81 |
libtoolize --force |
5518 | 82 |
aclocal $ACLOCAL_FLAGS -I . |
1701 | 83 |
autoheader |
84 |
automake -a -c -f |
|
85 |
autoconf |
|
208 | 86 |
CFLAGS="$RPM_OPT_FLAGS" \ |
87 |
./configure --prefix=%{_prefix} \ |
|
3731 | 88 |
--sysconfdir=%{_sysconfdir} \ |
208 | 89 |
--mandir=%{_mandir} \ |
8501 | 90 |
%{gtk_doc_option} \ |
3731 | 91 |
--with-html-dir=%{_datadir}/gtk-doc/html/librsvg |
3263 | 92 |
make -j $CPUS |
100 | 93 |
|
94 |
%install |
|
208 | 95 |
make DESTDIR=$RPM_BUILD_ROOT install |
4357 | 96 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
97 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
98 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
99 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
3628 | 100 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a |
101 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la |
|
102 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.a |
|
103 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.la |
|
104 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
105 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
100 | 106 |
|
156 | 107 |
%clean |
100 | 108 |
rm -rf $RPM_BUILD_ROOT |
109 |
||
156 | 110 |
%post |
111 |
/sbin/ldconfig |
|
112 |
mkdir -p %{_sysconfdir}/gtk-2.0 |
|
113 |
gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
|
114 |
||
115 |
%postun |
|
116 |
/sbin/ldconfig |
|
117 |
gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
|
118 |
||
119 |
%files |
|
100 | 120 |
%defattr(-, root, root) |
156 | 121 |
%{_libdir}/*.so.* |
122 |
%{_libdir}/gtk-2.0/*/engines/libsvg.so |
|
123 |
%{_libdir}/gtk-2.0/*/loaders/svg_loader.so |
|
5518 | 124 |
%{_bindir} |
156 | 125 |
%{_mandir}/man1/* |
4357 | 126 |
%{_mandir}/man3/* |
5518 | 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 |
8501 | 137 |
* Fri Nov 3 2006 - [email protected] |
138 |
- use %gtk_doc_option in configure so that it can be disabled using |
|
139 |
--without-gtk-doc |
|
8496 | 140 |
* Fri Nov 03 2006 - [email protected] |
141 |
- Bump to 2.16.1. |
|
8029 | 142 |
* Thu Aug 31 2006 - [email protected] |
143 |
- Bump to 2.16.0. |
|
7811
1b6a4a331de9
2006-07-28 Dermot McCluskey - Sunsoft CDE <[email protected]>
dermotm
parents:
7599
diff
changeset
|
144 |
* Fri Jul 28 2006 - [email protected] |
1b6a4a331de9
2006-07-28 Dermot McCluskey - Sunsoft CDE <[email protected]>
dermotm
parents:
7599
diff
changeset
|
145 |
- Bump to 2.15.90. |
7599 | 146 |
* Mon Jul 10 2006 - [email protected] |
147 |
- Bump to 2.14.4. Add patch to redefine __PRETTY_FUNCTION__ to |
|
148 |
__func__ so it compiles on Solaris. |
|
6994 | 149 |
* Mon Apr 03 2006 - [email protected] |
150 |
- Bump to 2.14.3. |
|
6908 | 151 |
* Sun Mar 12 2006 - [email protected] |
152 |
- Bump to 2.14.2. |
|
6865 | 153 |
* Tue Feb 28 2006 - [email protected] |
154 |
- Bump to 2.14.1. |
|
6851 | 155 |
* Sun Feb 26 2006 - [email protected] |
156 |
- Bump to 2.14.0. |
|
6736 | 157 |
* Mon Feb 13 2006 - [email protected] |
158 |
- Bump to 2.13.93. |
|
6725 | 159 |
* Wed Feb 8 2006 - [email protected] |
160 |
- Bump to 2.13.92. |
|
6629
ad90ca8f5a7c
* librsvg.spec: Add patch, 01-no-def-file, so as not to use .def file,
dc144907
parents:
6564
diff
changeset
|
161 |
* Fri Jan 20 2006 - [email protected] |
ad90ca8f5a7c
* librsvg.spec: Add patch, 01-no-def-file, so as not to use .def file,
dc144907
parents:
6564
diff
changeset
|
162 |
- Add patch, 01-no-def-file, so as not to use .def file, to build on Solaris. |
6564
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6542
diff
changeset
|
163 |
* Sun Jan 15 2006 - [email protected] |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6542
diff
changeset
|
164 |
- Bump to 2.13.5 |
6542
811e3fa5b6b8
* librsvg.spec: Remove patch, 01-rsvg-text-void-ret, as the code
dc144907
parents:
6464
diff
changeset
|
165 |
* Mon Jan 09 2006 - [email protected] |
811e3fa5b6b8
* librsvg.spec: Remove patch, 01-rsvg-text-void-ret, as the code
dc144907
parents:
6464
diff
changeset
|
166 |
- Remove patch, 01-rsvg-text-void-ret, as the code referenced is gone. |
6464 | 167 |
* Tue Jan 03 2006 - [email protected] |
168 |
- Bump to 2.13.3. |
|
5564
d324f371b995
* openh323.spec: Remove Speex references. speex.spec used instead.
dc144907
parents:
5518
diff
changeset
|
169 |
* Tue Aug 23 2005 - [email protected] |
5573
675fbc71df68
* librsvg.spec: Add mozilla build dependency so that plugins build.
dc144907
parents:
5564
diff
changeset
|
170 |
- Add mozilla build dependency so that mozilla/plugins build. |
5518 | 171 |
* Tue Jun 14 2005 - [email protected] |
172 |
- added patch from HEAD for void functions returning values (breaks the build |
|
173 |
with Forte) |
|
174 |
* Thu May 19 2005 - [email protected] |
|
175 |
- ported to 2.9.5 |
|
4357 | 176 |
* Thu Oct 28 2004 - [email protected] |
177 |
- Add rsvg.1, librsvg-2.3 man pages |
|
3731 | 178 |
* Tue Aug 24 2004 - [email protected] |
179 |
- Corrected --with-html-dir so it uses %{_datadir}. |
|
3713 | 180 |
* Tue Aug 24 2004 - [email protected] |
181 |
- removed /usr/share/doc from file list |
|
3687 | 182 |
* Wed Aug 18 2004 - [email protected] |
3660 | 183 |
- added patch 2 to fix gtk-doc building. added --enable-gtk-doc. |
3628 | 184 |
* Wed Jul 07 2004 - [email protected] |
185 |
- ported to rpm4 |
|
3263 | 186 |
* Wed Jul 07 2004 - [email protected] |
187 |
- added "-j $CPUS" to make to speed up builds |
|
1845 | 188 |
* Fri Feb 20 2004 - <[email protected]> |
189 |
- Updated Distro |
|
1701 | 190 |
* Thu Feb 12 2004 - <[email protected]> |
191 |
- added a -uninstalled.pc file patch. |
|
192 |
- autotoolize the build stage |
|
1450 | 193 |
* Tue Dec 16 2003 - <[email protected]> |
194 |
- Update to 2.5.0 |
|
1224 | 195 |
* Fri Oct 10 2003 - <[email protected]> |
196 |
- update to 2.4.0 |
|
1058 | 197 |
* Thu Aug 14 2003 - <[email protected]> |
198 |
- remove *.a, *.la |
|
100 | 199 |
* Tue May 13 2003 - [email protected] |
156 | 200 |
- Initial Sun release |