1 | # Note that this is NOT a relocatable package |
---|
2 | %define name librsvg |
---|
3 | %define ver @VERSION@ |
---|
4 | %define RELEASE 0_cvs_0 |
---|
5 | %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} |
---|
6 | %define prefix /usr |
---|
7 | %define sysconfdir /etc |
---|
8 | |
---|
9 | Name: %name |
---|
10 | Vendor: GNOME |
---|
11 | Distribution: CVS |
---|
12 | Summary: Raph's SVG library |
---|
13 | Version: %ver |
---|
14 | Release: %rel |
---|
15 | Copyright: LGPL |
---|
16 | Group: System Environment/Libraries |
---|
17 | Source: %{name}-%{ver}.tar.gz |
---|
18 | URL: http://nautilus.eazel.com/ |
---|
19 | BuildRoot: /var/tmp/%{name}-%{ver}-root |
---|
20 | Docdir: %{prefix}/doc |
---|
21 | Requires: glib >= @GLIB_REQUIRED@ |
---|
22 | Requires: gtk+ >= @GTK_REQUIRED@ |
---|
23 | Requires: libxml >= @LIBXML_REQUIRED@ |
---|
24 | Requires: gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@ |
---|
25 | Requires: popt >= @POPT_REQUIRED@ |
---|
26 | Requires: freetype >= @FREETYPE_REQUIRED@ |
---|
27 | Requires: libpng |
---|
28 | |
---|
29 | %description |
---|
30 | Eazel Extension Library |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Libraries and include files for developing with librsvg. |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %name = %{PACKAGE_VERSION} |
---|
36 | |
---|
37 | %description devel |
---|
38 | This package provides the necessary development libraries and include |
---|
39 | files to allow you to develop with librsvg. |
---|
40 | |
---|
41 | %changelog |
---|
42 | * Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com> |
---|
43 | - removed obsoletes from sub packages and added mozilla and trilobite |
---|
44 | subpackages |
---|
45 | |
---|
46 | * Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com> |
---|
47 | - created this thing |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup |
---|
51 | |
---|
52 | %build |
---|
53 | %ifarch alpha |
---|
54 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
55 | %endif |
---|
56 | |
---|
57 | LC_ALL="" |
---|
58 | LINGUAS="" |
---|
59 | LANG="" |
---|
60 | export LC_ALL LINGUAS LANG |
---|
61 | |
---|
62 | ## Warning! Make sure there are no spaces or tabs after the \ |
---|
63 | ## continuation character, or else the rpm demons will eat you. |
---|
64 | CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{prefix} \ |
---|
65 | --sysconfdir=%{sysconfdir} |
---|
66 | |
---|
67 | make -k |
---|
68 | make check |
---|
69 | |
---|
70 | %install |
---|
71 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
72 | make -k prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install |
---|
73 | for FILE in "$RPM_BUILD_ROOT/bin/*"; do |
---|
74 | file "$FILE" | grep -q not\ stripped && strip $FILE |
---|
75 | done |
---|
76 | |
---|
77 | %clean |
---|
78 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
79 | |
---|
80 | %post |
---|
81 | if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then |
---|
82 | echo "%{prefix}/lib" >> /etc/ld.so.conf |
---|
83 | fi |
---|
84 | /sbin/ldconfig |
---|
85 | |
---|
86 | %postun -p /sbin/ldconfig |
---|
87 | |
---|
88 | %files |
---|
89 | |
---|
90 | %defattr(0555, bin, bin) |
---|
91 | %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README |
---|
92 | %{_libdir}/*.so* |
---|
93 | |
---|
94 | %files devel |
---|
95 | |
---|
96 | %defattr(0555, bin, bin) |
---|
97 | %{_libdir}/*.la |
---|
98 | %{_libdir}/*.sh |
---|
99 | %{_bindir}/librsvg-config |
---|
100 | |
---|
101 | %defattr(0444, bin, bin) |
---|
102 | %{_includedir}/librsvg-1/librsvg/*.h |
---|
103 | %{_datadir}/aclocal/librsvg.m4 |
---|
104 | %{_libdir}/pkgconfig/librsvg-1.0.pc |
---|
105 | |
---|
106 | |
---|