1 | Summary: libglade library |
---|
2 | Name: libglade |
---|
3 | Version: @VERSION@ |
---|
4 | Release: 1 |
---|
5 | Copyright: LGPL |
---|
6 | Group: System Environment/Libraries |
---|
7 | Source: ftp://ftp.gnome.org/pub/GNOME/earthquake/sources/libglade/libglade-%{version}.tar.gz |
---|
8 | BuildRoot: /var/tmp/%{name}-root |
---|
9 | Packager: James Henstridge <james@daa.com.au> |
---|
10 | URL: http://www.gnome.org |
---|
11 | |
---|
12 | Requires: gtk+ >= 2.0.0 |
---|
13 | Requires: libxml2 >= 2.4.10 |
---|
14 | |
---|
15 | %description |
---|
16 | This library allows you to load user interfaces in your program, which are |
---|
17 | stored externally. This allows alteration of the interface without |
---|
18 | recompilation of the program. |
---|
19 | |
---|
20 | The interfaces can also be edited with GLADE. |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Libraries, includes, etc to develop libglade applications |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: libglade gtk+-devel libxml2-devel |
---|
26 | |
---|
27 | %description devel |
---|
28 | Libraries, include files, etc you can use to develop libglade applications. |
---|
29 | |
---|
30 | |
---|
31 | %changelog |
---|
32 | |
---|
33 | * Sun Nov 1 1998 James Henstridge <james@daa.com.au> |
---|
34 | |
---|
35 | - Updated the dependencies of the devel package, so users must have gtk+-devel. |
---|
36 | |
---|
37 | * Sun Oct 25 1998 James Henstridge <james@daa.com.au> |
---|
38 | |
---|
39 | - Initial release 0.0.1 |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup |
---|
43 | |
---|
44 | %build |
---|
45 | %ifarch alpha |
---|
46 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
47 | %endif |
---|
48 | |
---|
49 | CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} |
---|
50 | |
---|
51 | make |
---|
52 | |
---|
53 | %install |
---|
54 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
55 | |
---|
56 | make prefix=$RPM_BUILD_ROOT%{_prefix} install |
---|
57 | |
---|
58 | |
---|
59 | %clean |
---|
60 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
61 | |
---|
62 | %post |
---|
63 | /sbin/ldconfig |
---|
64 | |
---|
65 | CATALOG=/etc/xml/catalog |
---|
66 | /usr/bin/xmlcatalog --noout --add "system" \ |
---|
67 | "http://glade.gnome.org/glade-2.0.dtd" \ |
---|
68 | %{_prefix}/share/xml/libglade/glade-2.0.dtd $CATALOG || true |
---|
69 | |
---|
70 | %postun |
---|
71 | /sbin/ldconfig |
---|
72 | |
---|
73 | CATALOG=/etc/xml/catalog |
---|
74 | /usr/bin/xmlcatalog --noout --del \ |
---|
75 | %{_prefix}/share/xml/libglade/glade-2.0.dtd $CATALOG || true |
---|
76 | |
---|
77 | %files |
---|
78 | %defattr(-, root, root) |
---|
79 | |
---|
80 | %doc AUTHORS ChangeLog NEWS README COPYING |
---|
81 | %{_prefix}/lib/lib*.so.* |
---|
82 | %{_prefix}/lib/libglade/2.0/* |
---|
83 | %{_prefix}/share/xml/libglade/glade-2.0.dtd |
---|
84 | |
---|
85 | %files devel |
---|
86 | %defattr(-, root, root) |
---|
87 | |
---|
88 | %{_prefix}/bin/* |
---|
89 | %{_prefix}/lib/lib*.so |
---|
90 | %{_prefix}/lib/*a |
---|
91 | %{_prefix}/include/libglade-2.0/glade/* |
---|
92 | %{_prefix}/lib/pkgconfig/libglade-2.0.pc |
---|
93 | |
---|
94 | %doc test-libglade.c |
---|
95 | %doc examples/*.glade |
---|
96 | %doc %{_prefix}/share/gtk-doc/html/libglade/* |
---|