source: trunk/third/bonobo-activation/bonobo-activation.spec.in @ 18311

Revision 18311, 2.5 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18310, which included commits to RCS files with non-trunk default branches.
Line 
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
9Name:           %name
10Summary:        Bonobo object activation framework for GNOME
11Version:        %ver
12Release:        %rel
13License:        LGPL and GPL
14Group:          System Environment/Libraries
15Source:         %{name}-%{ver}.tar.gz
16URL:            http://www.gnome.org/
17BuildRoot:      /var/tmp/%{name}-%{ver}-root
18Docdir:         %{prefix}/share/doc
19
20%description
21Bonobo Activation is an object activation framework for GNOME. It uses ORBit.
22
23%package devel
24Summary:        Libraries and include files for Bonobo Activation
25Group:          Development/Libraries
26Requires:       %name = %{PACKAGE_VERSION}
27Obsoletes:      %{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
49LC_ALL=""
50LINGUAS=""
51LANG=""
52export LC_ALL LINGUAS LANG
53
54CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
55        --enable-more-warnings \
56        --prefix=%{prefix} \
57        --sysconfdir=%{sysconfdir}
58
59make -k
60
61%install
62[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
63make -k prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
64
65for FILE in "$RPM_BUILD_ROOT/bin/*"; do
66        file "$FILE" | grep -q not\ stripped && strip $FILE
67done
68
69%clean
70[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
71
72%post
73if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
74        echo "%{prefix}/lib" >> /etc/ld.so.conf
75fi
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
Note: See TracBrowser for help on using the repository browser.