Split libraries in libcorosync

This commit is contained in:
Fabio M. Di Nitto 2009-02-02 10:19:41 +00:00
parent 6c071721ed
commit 6d557ac727

View File

@ -11,6 +11,7 @@ Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/cor
Patch0: corosync-trunk.diff
# Runtime bits
Requires: libcorosync = %{version}-%{release}
Requires(pre): /usr/sbin/useradd
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
@ -56,7 +57,6 @@ APIs and libraries, default configuration files, and an init script.
%post
/sbin/chkconfig --add corosync || :
/sbin/ldconfig > /dev/null
%preun
if [ $1 -eq 0 ]; then
@ -66,7 +66,6 @@ fi
%postun
[ "$1" -ge "1" ] && /sbin/service corosync condrestart &>/dev/null || :
/sbin/ldconfig > /dev/null
%files
%defattr(-,root,root,-)
@ -78,7 +77,6 @@ fi
%{_sbindir}/corosync-objctl
%{_sbindir}/corosync-cfgtool
%config(noreplace) /etc/corosync.conf
%config(noreplace) /etc/ld.so.conf.d/corosync-*.conf
%{_initddir}/corosync
%dir %{_libexecdir}/lcrso
%{_libexecdir}/lcrso/coroparse.lcrso
@ -92,7 +90,22 @@ fi
%{_libexecdir}/lcrso/testquorum.lcrso
%{_libexecdir}/lcrso/vsf_quorum.lcrso
%{_libexecdir}/lcrso/vsf_ykd.lcrso
%{_mandir}/man8/corosync_overview.8*
%{_mandir}/man8/corosync-objctl.8*
%{_mandir}/man5/corosync.conf.5*
%package -n libcorosync
Summary: The Corosync Cluster Engine Libraries
Group: System Environment/Libraries
Conflicts: corosync < 0.92-7
%description -n libcorosync
This package contains corosync libraries.
%files -n libcorosync
%defattr(-,root,root,-)
%dir %{_libdir}/corosync
%config(noreplace) /etc/ld.so.conf.d/corosync-*.conf
%{_libdir}/corosync/libcfg.so.*
%{_libdir}/corosync/libcpg.so.*
%{_libdir}/corosync/libconfdb.so.*
@ -102,14 +115,15 @@ fi
%{_libdir}/corosync/libcoroutil.so.*
%{_libdir}/corosync/libquorum.so.*
%{_libdir}/corosync/libvotequorum.so.*
%{_mandir}/man8/corosync_overview.8*
%{_mandir}/man8/corosync-objctl.8*
%{_mandir}/man5/corosync.conf.5*
%post -n libcorosync -p /sbin/ldconfig
%postun -n libcorosync -p /sbin/ldconfig
%package -n libcorosync-devel
Summary: The Corosync Cluster Engine Development Kit
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libcorosync = %{version}-%{release}
Requires: pkgconfig
Provides: corosync-devel = 0.92-7
Obsoletes: corosync-devel < 0.92-7
@ -176,6 +190,7 @@ The Corosync Cluster Engine APIs.
- Update to svn trunk at revision 1756 from upstream.
- Add support pkgconfig to devel package.
- Tidy up spec files by re-organazing sections according to packages.
- Split libraries from corosync to libcorosync.
- Rename corosync-devel to libcorosync-devel.
* Tue Jan 27 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-6.svn1750