1 | %define __libtoolize : |
---|
2 | %define __spec_install_post /usr/lib/rpm/brp-compress |
---|
3 | Name: librsvg2 |
---|
4 | Summary: An SVG library based on libart. |
---|
5 | Version: 2.2.3 |
---|
6 | Release: 2 |
---|
7 | License: LGPL |
---|
8 | Group: System Environment/Libraries |
---|
9 | Source: librsvg-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildRequires: pkgconfig >= 0.8 |
---|
12 | Requires: glib2 >= 2.0.0 |
---|
13 | Requires: libart_lgpl >= 2.3.10 |
---|
14 | Requires: libxml2 >= 2.4.7 |
---|
15 | Requires: pango >= 1.0.0 |
---|
16 | Requires: libgsf >= 1.6.0 |
---|
17 | BuildRequires: glib2-devel >= 2.0.0 |
---|
18 | BuildRequires: libart_lgpl-devel >= 2.3.10 |
---|
19 | BuildRequires: libxml2-devel >= 2.4.7 |
---|
20 | BuildRequires: pango-devel >= 1.0.0 |
---|
21 | BuildRequires: libgsf >= 1.6.0 |
---|
22 | |
---|
23 | %description |
---|
24 | An SVG library based on libart. |
---|
25 | |
---|
26 | |
---|
27 | %package devel |
---|
28 | Summary: Libraries and include files for developing with librsvg. |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version} |
---|
31 | Requires: pkgconfig >= 0.8 |
---|
32 | Requires: glib2 >= 2.0.0 |
---|
33 | Requires: glib2-devel >= 2.0.0 |
---|
34 | Requires: libart_lgpl >= 2.3.10 |
---|
35 | Requires: libart_lgpl-devel >= 2.3.10 |
---|
36 | Requires: libxml2 >= 2.4.7 |
---|
37 | Requires: libxml2-devel >= 2.4.7 |
---|
38 | Requires: pango >= 1.0.0 |
---|
39 | Requires: pango-devel >= 1.0.0 |
---|
40 | |
---|
41 | |
---|
42 | %description devel |
---|
43 | This package provides the necessary development libraries and include |
---|
44 | files to allow you to develop with librsvg. |
---|
45 | |
---|
46 | %package -n librsvg2-gtk |
---|
47 | Summary: Gtk+ 2.0 theme engine for SVG based themes |
---|
48 | Group: System Environment/Libraries |
---|
49 | Requires: gtk2 >= 1.3.7 |
---|
50 | BuildRequires: gtk2-devel >= 1.3.7 |
---|
51 | |
---|
52 | |
---|
53 | %description -n librsvg2-gtk |
---|
54 | This package installs a GTK+ 2.0 theme engine that uses SVG images. It is based |
---|
55 | on the gdkpixbuf engine. |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q -n librsvg-%{version} |
---|
59 | |
---|
60 | %build |
---|
61 | %configure --enable-svgz |
---|
62 | make |
---|
63 | |
---|
64 | %install |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | |
---|
67 | %makeinstall |
---|
68 | # Clean out files that should not be part of the rpm. |
---|
69 | # This is the recommended way of dealing with it for RH8 |
---|
70 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/engines/*.la |
---|
71 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/engines/*.a |
---|
72 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/loaders/*.la |
---|
73 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/loaders/*.a |
---|
74 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
75 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
76 | |
---|
77 | |
---|
78 | %clean |
---|
79 | rm -rf $RPM_BUILD_ROOT |
---|
80 | |
---|
81 | %post -n librsvg2-gtk |
---|
82 | /sbin/ldconfig |
---|
83 | mkdir -p %{_sysconfdir}/gtk-2.0 |
---|
84 | gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
---|
85 | |
---|
86 | %postun -n librsvg2-gtk |
---|
87 | /sbin/ldconfig |
---|
88 | gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
---|
89 | |
---|
90 | %files |
---|
91 | %defattr(-, root, root) |
---|
92 | %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO |
---|
93 | %{_libdir}/*.so.* |
---|
94 | %{_bindir}/rsvg |
---|
95 | %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
---|
96 | %{_mandir}/*/* |
---|
97 | |
---|
98 | %files devel |
---|
99 | %defattr(-, root, root) |
---|
100 | %{_libdir}/*.so |
---|
101 | %{_includedir}/librsvg-2/librsvg/*.h |
---|
102 | %{_libdir}/pkgconfig/librsvg-2.0.pc |
---|
103 | %{_datadir}/doc/librsvg/html/* |
---|
104 | |
---|
105 | %files -n librsvg2-gtk |
---|
106 | %defattr(-, root, root) |
---|
107 | %{_libdir}/gtk-2.0/2.2.0/engines/*.so |
---|
108 | %{_libdir}/gtk-2.0/2.2.0/loaders/*.so |
---|
109 | # %{_datadir}/themes/bubble/gtk-2.0/* |
---|
110 | # %{_datadir}/themes/bubble/README |
---|
111 | |
---|
112 | %changelog |
---|
113 | * Sun Feb 02 2003 Christian Schaller <Uraeus@linuxrising.org> |
---|
114 | - Update to handle latest changes |
---|
115 | - Add some fixes from the RH spec file |
---|
116 | - renamed rsvg-gtk package to librsvg-gtk |
---|
117 | - Improve depency listing somewhat |
---|
118 | |
---|
119 | * Thu Oct 22 2002 Christian Schaller <Uraeus@linuxrising.org> |
---|
120 | - Disabled building of example theme (as done in gtk-engines) |
---|
121 | |
---|
122 | * Mon Oct 21 2002 Christian Schaller <Uraeus@linuxrising.org> |
---|
123 | - Fixes for RH 8 |
---|
124 | - Adding gtk theme engine |
---|
125 | - adding gdk-loader |
---|
126 | |
---|
127 | * Tue Mar 05 2002 Chris Chabot <chabotc@reviewboard.com> |
---|
128 | - Deps |
---|
129 | - Formatting |
---|
130 | - converted to .spec.in |
---|
131 | |
---|
132 | * Sat Jan 19 2002 Chris Chabot <chabotc@reviewboard.com> |
---|
133 | - Imported into gnome 2.0 alpha, set Requirements accordingly |
---|
134 | - Bumped version to 1.1.1 |
---|
135 | - Minor cleanups |
---|
136 | |
---|
137 | * Wed Jan 2 2002 Havoc Pennington <hp@redhat.com> |
---|
138 | - new CVS snap 1.1.0.91 |
---|
139 | - remove automake/autoconf calls |
---|
140 | |
---|
141 | * Mon Nov 26 2001 Havoc Pennington <hp@redhat.com> |
---|
142 | - convert to librsvg2 RPM |
---|
143 | |
---|
144 | * Tue Oct 23 2001 Havoc Pennington <hp@redhat.com> |
---|
145 | - 1.0.2 |
---|
146 | |
---|
147 | * Fri Jul 27 2001 Alexander Larsson <alexl@redhat.com> |
---|
148 | - Add a patch that moves the includes to librsvg-1/librsvg |
---|
149 | - in preparation for a later librsvg 2 library. |
---|
150 | |
---|
151 | * Tue Jul 24 2001 Havoc Pennington <hp@redhat.com> |
---|
152 | - build requires gnome-libs-devel, #49509 |
---|
153 | |
---|
154 | * Thu Jul 19 2001 Havoc Pennington <hp@redhat.com> |
---|
155 | - own /usr/include/librsvg |
---|
156 | |
---|
157 | * Wed Jul 18 2001 Akira TAGOH <tagoh@redhat.com> 1.0.0-4 |
---|
158 | - fixed the linefeed problem in multibyte environment. (Bug#49310) |
---|
159 | |
---|
160 | * Mon Jul 09 2001 Havoc Pennington <hp@redhat.com> |
---|
161 | - put .la file back in package |
---|
162 | |
---|
163 | * Fri Jul 6 2001 Trond Eivind Glomsrød <teg@redhat.com> |
---|
164 | - Put changelog at the end |
---|
165 | - Move .so files to devel subpackage |
---|
166 | - Don't mess with ld.so.conf |
---|
167 | - Don't use %%{prefix}, this isn't a relocatable package |
---|
168 | - Don't define a bad docdir |
---|
169 | - Add BuildRequires |
---|
170 | - Use %%{_tmppath} |
---|
171 | - Don't define name, version etc. on top of the file (why do so many do that?) |
---|
172 | - s/Copyright/License/ |
---|
173 | |
---|
174 | * Wed May 9 2001 Jonathan Blandford <jrb@redhat.com> |
---|
175 | - Put into Red Hat Build system |
---|
176 | |
---|
177 | * Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com> |
---|
178 | - removed obsoletes from sub packages and added mozilla and trilobite |
---|
179 | subpackages |
---|
180 | |
---|
181 | * Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com> |
---|
182 | - created this thing |
---|
183 | |
---|