1 | # Note that this is NOT a relocatable package |
---|
2 | %define name bonobo-activation |
---|
3 | %define ver @VERSION@ |
---|
4 | %define RELEASE 1 |
---|
5 | %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} |
---|
6 | %define prefix /usr |
---|
7 | %define sysconfdir /etc |
---|
8 | |
---|
9 | Name: %name |
---|
10 | Summary: Bonobo object activation framework for GNOME |
---|
11 | Version: %ver |
---|
12 | Release: %rel |
---|
13 | License: LGPL and GPL |
---|
14 | Group: System Environment/Libraries |
---|
15 | Source: %{name}-%{ver}.tar.gz |
---|
16 | URL: http://www.gnome.org/ |
---|
17 | BuildRoot: /var/tmp/%{name}-%{ver}-root |
---|
18 | Docdir: %{prefix}/share/doc |
---|
19 | |
---|
20 | %description |
---|
21 | Bonobo Activation is an object activation framework for GNOME. It uses ORBit. |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Libraries and include files for Bonobo Activation |
---|
25 | Group: Development/Libraries |
---|
26 | Requires: %name = %{PACKAGE_VERSION} |
---|
27 | Obsoletes: %{name}-devel |
---|
28 | |
---|
29 | %description devel |
---|
30 | |
---|
31 | %changelog |
---|
32 | * Sat Dec 15 2001 Ross Golder <ross@golder.org> |
---|
33 | - updated docdir to %prefix/share/doc |
---|
34 | * Sun Nov 18 2001 Ross Golder <ross@golder.org> |
---|
35 | - updated spec file (changed oaf stuff to bonobo-activation) |
---|
36 | * Tue Aug 29 2000 Maciej Stachowiak <mjs@eazel.com> |
---|
37 | - corrected Copyright field and renamed it to License |
---|
38 | * Sun May 21 2000 Ross Golder <rossigee@bigfoot.com> |
---|
39 | - created spec file (based on bonobo.spec.in) |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup |
---|
43 | |
---|
44 | %build |
---|
45 | %ifarch alpha |
---|
46 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
47 | %endif |
---|
48 | |
---|
49 | LC_ALL="" |
---|
50 | LINGUAS="" |
---|
51 | LANG="" |
---|
52 | export LC_ALL LINGUAS LANG |
---|
53 | |
---|
54 | CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \ |
---|
55 | --enable-more-warnings \ |
---|
56 | --prefix=%{prefix} \ |
---|
57 | --sysconfdir=%{sysconfdir} |
---|
58 | |
---|
59 | make -k |
---|
60 | |
---|
61 | %install |
---|
62 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
63 | make -k prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install |
---|
64 | |
---|
65 | for FILE in "$RPM_BUILD_ROOT/bin/*"; do |
---|
66 | file "$FILE" | grep -q not\ stripped && strip $FILE |
---|
67 | done |
---|
68 | |
---|
69 | %clean |
---|
70 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | %post |
---|
73 | if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then |
---|
74 | echo "%{prefix}/lib" >> /etc/ld.so.conf |
---|
75 | fi |
---|
76 | |
---|
77 | /sbin/ldconfig |
---|
78 | |
---|
79 | %postun -p /sbin/ldconfig |
---|
80 | |
---|
81 | %files |
---|
82 | %defattr(0555, bin, bin) |
---|
83 | |
---|
84 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
85 | %config %{sysconfdir}/%{name}/*.xml |
---|
86 | %{prefix}/bin/* |
---|
87 | %{prefix}/sbin/* |
---|
88 | %{prefix}/lib/*.so.* |
---|
89 | %{prefix}/lib/bonobo/servers/*.server |
---|
90 | |
---|
91 | %defattr (0444, bin, bin) |
---|
92 | %{prefix}/share/idl/bonobo-activation-2.0/*.idl |
---|
93 | %{prefix}/share/locale/*/LC_MESSAGES/*.mo |
---|
94 | |
---|
95 | %files devel |
---|
96 | |
---|
97 | %defattr(0555, bin, bin) |
---|
98 | %dir %{prefix}/include/bonobo-activation-2.0 |
---|
99 | %{prefix}/lib/*.so |
---|
100 | %{prefix}/lib/*.la |
---|
101 | |
---|
102 | %defattr(0444, bin, bin) |
---|
103 | %{prefix}/lib/pkgconfig/bonobo-activation-2.0.pc |
---|
104 | %{prefix}/include/bonobo-activation-2.0/bonobo-activation/*.h |
---|