librsvg.spec.in 5.73 KB
Newer Older
1 2 3
%define __libtoolize :
%define __spec_install_post /usr/lib/rpm/brp-compress
Name:             librsvg2
4
Summary:          An SVG library based on cairo.
5
Version:          @VERSION@
6
Release:          2
7 8 9
License:          LGPL
Group:            System Environment/Libraries
Source:           librsvg-%{version}.tar.gz
10
URL:		  http://librsvg.sourceforge.net/
11 12 13
BuildRoot:        %{_tmppath}/%{name}-%{version}-root
BuildRequires:    pkgconfig >= 0.8
Requires:         glib2 >= @GLIB_REQUIRED@
14
Requires:         cairo >= @CAIRO_REQUIRED@
15 16
Requires:         libxml2 >= @LIBXML_REQUIRED@
Requires:         pango >= @PANGOFT2_REQUIRED@
17
Requires:	  libgsf >= 1.6.0
18
BuildRequires:    glib2-devel >= @GLIB_REQUIRED@
19
BuildRequires:    cairo-devel >= @CAIRO_REQUIRED@
20 21
BuildRequires:    libxml2-devel >= @LIBXML_REQUIRED@
BuildRequires:    pango-devel >= @PANGOFT2_REQUIRED@
22
BuildRequires:	  libgsf >= 1.6.0
23

24
%description
25
An SVG library based on cairo.
26

27 28

%package devel
29 30 31 32 33 34
Summary:          Libraries and include files for developing with librsvg.
Group:            Development/Libraries
Requires:         %{name} = %{version}
Requires:         pkgconfig >= 0.8
Requires:         glib2 >= @GLIB_REQUIRED@
Requires:         glib2-devel >= @GLIB_REQUIRED@
35 36
Requires:         cairo >= @CAIRO_REQUIRED@
Requires:         cairo-devel >= @CAIRO_REQUIRED@
37 38 39 40 41
Requires:         libxml2 >= @LIBXML_REQUIRED@
Requires:         libxml2-devel >= @LIBXML_REQUIRED@
Requires:         pango >= @PANGOFT2_REQUIRED@
Requires:         pango-devel >= @PANGOFT2_REQUIRED@

42 43 44 45 46

%description devel
This package provides the necessary development libraries and include
files to allow you to develop with librsvg.

47
%package -n librsvg2-gtk
48 49
Summary:        Gtk+ 2.0 theme engine for SVG based themes
Group:          System Environment/Libraries
50 51
Requires:         gtk2 >= @GDK_PIXBUF_REQUIRED@
BuildRequires:         gtk2-devel >= @GDK_PIXBUF_REQUIRED@
52

53 54

%description -n librsvg2-gtk
55 56 57
This package installs a GTK+ 2.0 theme engine that uses SVG images. It is based
on the gdkpixbuf engine.

58
%prep
59
%setup -q -n librsvg-%{version}
60 61

%build
62
%configure --enable-svgz
63
make
64 65

%install
66
rm -rf $RPM_BUILD_ROOT
67

68
%makeinstall
69 70
# Clean out files that should not be part of the rpm.
# This is the recommended way of dealing with it for RH8
71 72
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.4.0/engines/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.4.0/loaders/*.la
73
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
74
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
75 76
mkdir -p $RPM_BUILD_DIR/librsvg-%{version}
touch $RPM_BUILD_DIR/librsvg-%{version}/debugfiles.list
77
%clean
78
rm -rf $RPM_BUILD_ROOT
79

80 81 82
%post -n librsvg2-gtk
/sbin/ldconfig
mkdir -p %{_sysconfdir}/gtk-2.0
83
gdk-pixbuf-query-loaders-32 > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
84

85 86
%postun -n librsvg2-gtk
/sbin/ldconfig
87
gdk-pixbuf-query-loaders-32 > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
88 89

%files
90
%defattr(-, root, root)
91
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO
92
%{_libdir}/*.so.*
93
%{_bindir}/rsvg
94
%{_mandir}/*/*
95 96

%files devel
97
%defattr(-, root, root)
98
%{_libdir}/*.*
99
%{_includedir}/librsvg-2/librsvg/*.h
100
%{_libdir}/pkgconfig/librsvg-2.0.pc
101
%{_datadir}/gtk-doc/html/rsvg/*
102

103
%files -n librsvg2-gtk
104
%defattr(-, root, root)
105
%{_bindir}/rsvg*
106 107
%{_libdir}/gtk-2.0/2.4.0/engines/*
%{_libdir}/gtk-2.0/2.4.0/loaders/*
108
%{_datadir}/pixmaps/*
109 110
# %{_datadir}/themes/bubble/gtk-2.0/*
# %{_datadir}/themes/bubble/README
111

112
%changelog
113 114
* Sat Mar 20 2004 Christian Schaller <Uraeus@gnome.org>
- Update the path for the engines and loaders
115 116 117 118
* Thu Mar 18 2004 Christian Schaller <Uraeus@gnome.org>
- Add mozilla plugins (to gtk for now)
- Add .a files since they should probably be installed

119 120
* Sun Feb 02 2003 Christian Schaller <Uraeus@linuxrising.org>
- Update to handle latest changes
121 122 123 124
- Add some fixes from the RH spec file
- renamed rsvg-gtk package to librsvg-gtk
- Improve depency listing somewhat

125 126 127
* Thu Oct 22 2002 Christian Schaller <Uraeus@linuxrising.org>
- Disabled building of example theme (as done in gtk-engines)

128 129 130 131 132
* Mon Oct 21 2002 Christian Schaller <Uraeus@linuxrising.org>
- Fixes for RH 8 
- Adding gtk theme engine
- adding gdk-loader

133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
* Tue Mar 05 2002 Chris Chabot <chabotc@reviewboard.com>
- Deps
- Formatting
- converted to .spec.in

* Sat Jan 19 2002 Chris Chabot <chabotc@reviewboard.com>
- Imported into gnome 2.0 alpha, set Requirements accordingly
- Bumped version to 1.1.1
- Minor cleanups

* Wed Jan  2 2002 Havoc Pennington <hp@redhat.com>
- new CVS snap 1.1.0.91
- remove automake/autoconf calls

* Mon Nov 26 2001 Havoc Pennington <hp@redhat.com>
- convert to librsvg2 RPM

* Tue Oct 23 2001 Havoc Pennington <hp@redhat.com>
- 1.0.2

* Fri Jul 27 2001 Alexander Larsson <alexl@redhat.com>
- Add a patch that moves the includes to librsvg-1/librsvg
- in preparation for a later librsvg 2 library.

* Tue Jul 24 2001 Havoc Pennington <hp@redhat.com>
- build requires gnome-libs-devel, #49509

* Thu Jul 19 2001 Havoc Pennington <hp@redhat.com>
- own /usr/include/librsvg

* Wed Jul 18 2001 Akira TAGOH <tagoh@redhat.com> 1.0.0-4
- fixed the linefeed problem in multibyte environment. (Bug#49310)

* Mon Jul 09 2001 Havoc Pennington <hp@redhat.com>
- put .la file back in package

* Fri Jul  6 2001 Trond Eivind Glomsrd <teg@redhat.com>
- Put changelog at the end
- Move .so files to devel subpackage
- Don't mess with ld.so.conf
- Don't use %%{prefix}, this isn't a relocatable package
- Don't define a bad docdir
- Add BuildRequires
- Use %%{_tmppath}
- Don't define name, version etc. on top of the file (why do so many do that?)
- s/Copyright/License/

* Wed May  9 2001 Jonathan Blandford <jrb@redhat.com>
- Put into Red Hat Build system

* Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com>
- removed obsoletes from sub packages and added mozilla and trilobite
subpackages

* Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com>
- created this thing