]>
Commit | Line | Data |
---|---|---|
7b911a6a | 1 | Summary: libglade library |
2 | Name: libglade | |
8ad94483 | 3 | Version: 0.9 |
95bf81c7 | 4 | Release: 1 |
7b911a6a | 5 | Copyright: LGPL |
6 | Group: X11/Libraries | |
7 | Source: ftp://ftp.daa.com.au/pub/james/gnome/%{name}-%{version}.tar.gz | |
7b911a6a | 8 | BuildRequires: gnome-libs-devel |
9 | BuildRequires: gtk+-devel >= 1.2.0 | |
c8367306 | 10 | BuildRequires: libxml-devel >= 1.7.2 |
7b911a6a | 11 | BuildRequires: XFree86-devel |
c8367306 | 12 | URL: http://www.gnome.org/ |
7b911a6a | 13 | BuildRoot: /tmp/%{name}-%{version}-root |
14 | ||
15 | %define _prefix /usr/X11R6 | |
cc8e8370 | 16 | |
cc8e8370 | 17 | %description |
18 | This library allows you to load user interfaces in your program, which are | |
7b911a6a | 19 | stored externally. This allows alteration of the interface without |
cc8e8370 | 20 | recompilation of the program. |
21 | ||
22 | The interfaces can also be edited with GLADE. | |
23 | ||
24 | %package devel | |
7b911a6a | 25 | Summary: Libraries, includes, etc to develop libglade applications |
26 | Group: X11/Libraries | |
27 | Requires: %{name} = %{version} | |
cc8e8370 | 28 | |
29 | %description devel | |
30 | Libraries, include files, etc you can use to develop libglade applications. | |
31 | ||
7b911a6a | 32 | %package static |
33 | Summary: Static libglade library | |
34 | Group: X11/Development/Libraries | |
35 | Requires: %{name} = %{version} | |
cc8e8370 | 36 | |
7b911a6a | 37 | %description static |
38 | Static libglade library. | |
cc8e8370 | 39 | |
40 | %prep | |
7b911a6a | 41 | %setup -q |
cc8e8370 | 42 | |
43 | %build | |
7b911a6a | 44 | gettextize --copy --force |
9603469d | 45 | LDFLAGS="-s"; export LDFLAGS |
7b911a6a | 46 | %configure |
47 | make | |
cc8e8370 | 48 | |
49 | %install | |
7b911a6a | 50 | rm -rf $RPM_BUILD_ROOT |
51 | install -d $RPM_BUILD_ROOT/usr/src/examples/%{name} | |
cc8e8370 | 52 | |
7b911a6a | 53 | make install \ |
54 | DESTDIR=$RPM_BUILD_ROOT \ | |
c8367306 | 55 | m4datadir=%{_datadir}/aclocal |
cc8e8370 | 56 | |
7b911a6a | 57 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* |
cc8e8370 | 58 | |
7b911a6a | 59 | gzip -9nf AUTHORS ChangeLog NEWS README |
60 | ||
61 | install test-libglade.c *.glade $RPM_BUILD_ROOT/usr/src/examples/%{name} | |
cc8e8370 | 62 | |
7b911a6a | 63 | %find_lang %{name} |
cc8e8370 | 64 | |
7b911a6a | 65 | %post -p /sbin/ldconfig |
cc8e8370 | 66 | %postun -p /sbin/ldconfig |
67 | ||
7b911a6a | 68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
cc8e8370 | 70 | |
7b911a6a | 71 | %files -f %{name}.lang |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
cc8e8370 | 74 | |
75 | %files devel | |
7b911a6a | 76 | %defattr(644,root,root,755) |
77 | %doc *gz | |
78 | %docdir %{_datadir}/gnome/html/libglade | |
79 | %doc %{_datadir}/gnome/html/libglade/* | |
80 | %attr(755,root,root) %{_bindir}/* | |
81 | %attr(755,root,root) %{_libdir}/libgladeConf.sh | |
82 | %attr(755,root,root) %{_libdir}/lib*.so | |
83 | %attr(755,root,root) %{_libdir}/lib*.la | |
84 | %{_includedir}/glade | |
85 | ||
c8367306 | 86 | %{_datadir}/aclocal/* |
7b911a6a | 87 | |
88 | /usr/src/examples/%{name} | |
89 | ||
90 | %files static | |
91 | %attr(644,root,root) %{_libdir}/lib*.a |