]>
Commit | Line | Data |
---|---|---|
66c63df4 | 1 | Summary: libXML library |
2 | Name: libxml | |
945c0a30 | 3 | Version: 0.99 |
4 | Release: 1 | |
66c63df4 | 5 | Copyright: LGPL |
6 | Group: X11/Libraries | |
7 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}-%{version}.tar.gz | |
8 | BuildRoot: /tmp/%{name}-%{version}-root | |
9 | URL: http://www.gnome.org | |
10 | Prereq: /sbin/install-info | |
11 | ||
12 | %description | |
13 | This library allows you to manipulate XML files. | |
14 | ||
15 | %package devel | |
16 | Summary: Header files etc to develop libxml applications | |
17 | Group: X11/libraries | |
18 | Requires: %{name} = %{version} | |
19 | ||
20 | %description devel | |
21 | Header files etc you can use to develop libxml applications. | |
22 | ||
23 | %package static | |
24 | Summary: Static libxml libraries | |
25 | Group: X11/libraries | |
26 | Requires: %{name}-devel = %{version} | |
27 | ||
28 | %description static | |
29 | Static libxml libraries. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
945c0a30 | 35 | CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ |
36 | ./configure \ | |
66c63df4 | 37 | --prefix=/usr/X11R6 |
38 | make | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
945c0a30 | 42 | make install DESTDIR=$RPM_BUILD_ROOT |
66c63df4 | 43 | |
44 | strip $RPM_BUILD_ROOT/usr/X11R6/lib/lib*.so.*.* | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %post -p /sbin/ldconfig | |
50 | %postun -p /sbin/ldconfig | |
51 | ||
52 | %files | |
53 | %defattr(-, root, root) | |
54 | %doc AUTHORS ChangeLog NEWS README TODO | |
945c0a30 | 55 | %attr(755, root, root) /usr/X11R6/lib/lib*.so.*.* |
66c63df4 | 56 | |
57 | %files devel | |
58 | %defattr(644, root, root, 755) | |
945c0a30 | 59 | %attr(755, root, root) /usr/X11R6/bin/xml-config |
60 | %attr(755, root, root) /usr/X11R6/lib/lib*.so | |
61 | %attr(755, root, root) /usr/X11R6/lib/*.sh | |
62 | /usr/X11R6/include/gnome-xml | |
66c63df4 | 63 | |
64 | %files static | |
65 | %attr(644, root, root) /usr/X11R6/lib/*a | |
66 | ||
67 | %changelog | |
945c0a30 | 68 |