corosync/corosync.spec

210 lines
6.7 KiB
RPMSpec
Raw Normal View History

2009-02-02 07:19:05 +00:00
%define alphatag svn1756
2008-12-10 07:42:53 +00:00
2008-09-25 06:16:38 +00:00
Name: corosync
Summary: The Corosync Cluster Engine and Application Programming Interfaces
Version: 0.92
2009-02-02 07:19:05 +00:00
Release: 7%{?alphatag:.%{alphatag}}%{?dist}
2008-09-25 06:16:38 +00:00
License: BSD
Group: System Environment/Base
URL: http://www.openais.org
Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/corosync-%{version}.tar.gz
2009-02-02 07:19:05 +00:00
Patch0: corosync-trunk.diff
2008-09-25 06:16:38 +00:00
# Runtime bits
2008-09-25 06:16:38 +00:00
Requires(pre): /usr/sbin/useradd
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Conflicts: openais <= 0.89, openais-devel <= 0.89
2008-09-25 06:16:38 +00:00
# Setup/build bits
2008-09-25 06:16:38 +00:00
%define ais_user_uid 39
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2008-09-25 06:16:38 +00:00
%prep
%setup -q -n corosync-%{version}
2008-12-10 07:42:53 +00:00
%patch0 -p1
2008-09-25 06:16:38 +00:00
%build
# -O3 required for performance reasons
# So we get proper debug output, for now we don't compile with O3
#CFLAGS="$(echo '%{optflags}' | sed -e 's/-O[0-9]*//') -O3"
CFLAGS="$(echo '%{optflags}')"
make CFLAGS="$CFLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT STATICLIBS=NO
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT%{_initddir}
install -m 644 LICENSE SECURITY README.devmap \
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
install -m 755 init/redhat $RPM_BUILD_ROOT%{_initddir}/corosync
%clean
rm -rf $RPM_BUILD_ROOT
%description
This package contains the Corosync Cluster Engine Executive, several default
APIs and libraries, default configuration files, and an init script.
2008-09-25 06:16:38 +00:00
%pre
# Add the "ais" user
/usr/sbin/useradd -c 'The Corosync Cluster Engine' \
-u %{ais_user_uid} -s /sbin/nologin -r -d '/' ais 2> /dev/null || :
%post
/sbin/chkconfig --add corosync || :
/sbin/ldconfig > /dev/null
%preun
if [ $1 -eq 0 ]; then
/sbin/service corosync stop &>/dev/null || :
/sbin/chkconfig --del corosync || :
fi
%postun
[ "$1" -ge "1" ] && /sbin/service corosync condrestart &>/dev/null || :
/sbin/ldconfig > /dev/null
%files
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/LICENSE
%doc %{_docdir}/%{name}-%{version}/SECURITY
%{_sbindir}/corosync
%{_sbindir}/corosync-keygen
%{_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
%{_libexecdir}/lcrso/objdb.lcrso
%{_libexecdir}/lcrso/service_cfg.lcrso
%{_libexecdir}/lcrso/service_cpg.lcrso
%{_libexecdir}/lcrso/service_evs.lcrso
%{_libexecdir}/lcrso/service_confdb.lcrso
2008-12-10 07:42:53 +00:00
%{_libexecdir}/lcrso/service_pload.lcrso
2009-01-27 10:44:56 +00:00
%{_libexecdir}/lcrso/service_votequorum.lcrso
2008-12-10 07:42:53 +00:00
%{_libexecdir}/lcrso/testquorum.lcrso
%{_libexecdir}/lcrso/vsf_quorum.lcrso
2008-09-25 06:16:38 +00:00
%{_libexecdir}/lcrso/vsf_ykd.lcrso
%dir %{_libdir}/corosync
%{_libdir}/corosync/libcfg.so.*
%{_libdir}/corosync/libcpg.so.*
%{_libdir}/corosync/libconfdb.so.*
%{_libdir}/corosync/libevs.so.*
%{_libdir}/corosync/libtotem_pg.so.*
%{_libdir}/corosync/liblogsys.so.*
%{_libdir}/corosync/libcoroutil.so.*
2009-01-27 10:44:56 +00:00
%{_libdir}/corosync/libquorum.so.*
%{_libdir}/corosync/libvotequorum.so.*
2008-09-25 06:16:38 +00:00
%{_mandir}/man8/corosync_overview.8*
%{_mandir}/man8/corosync-objctl.8*
%{_mandir}/man5/corosync.conf.5*
%package devel
Summary: The Corosync Cluster Engine
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
This package contains include files and man pages used to develop using
The Corosync Cluster Engine APIs.
2008-09-25 06:16:38 +00:00
%files devel
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/README.devmap
%dir %{_includedir}/corosync/
%{_includedir}/corosync/ais_util.h
%{_includedir}/corosync/cfg.h
%{_includedir}/corosync/confdb.h
2008-12-10 07:42:53 +00:00
%{_includedir}/corosync/corotypes.h
2008-09-25 06:16:38 +00:00
%{_includedir}/corosync/cpg.h
%{_includedir}/corosync/evs.h
%{_includedir}/corosync/hdb.h
%{_includedir}/corosync/ipc_gen.h
%{_includedir}/corosync/list.h
%{_includedir}/corosync/mar_gen.h
%{_includedir}/corosync/swab.h
2009-01-27 10:44:56 +00:00
%{_includedir}/corosync/quorum.h
%{_includedir}/corosync/votequorum.h
2008-09-25 06:16:38 +00:00
%dir %{_includedir}/corosync/totem/
%{_includedir}/corosync/totem/coropoll.h
%{_includedir}/corosync/totem/totem.h
%{_includedir}/corosync/totem/totemip.h
%{_includedir}/corosync/totem/totempg.h
%dir %{_includedir}/corosync/lcr/
%{_includedir}/corosync/lcr/lcr_ckpt.h
%{_includedir}/corosync/lcr/lcr_comp.h
%{_includedir}/corosync/lcr/lcr_ifact.h
%dir %{_includedir}/corosync/engine
%{_includedir}/corosync/engine/config.h
%{_includedir}/corosync/engine/coroapi.h
%{_includedir}/corosync/engine/logsys.h
%{_includedir}/corosync/engine/objdb.h
2008-12-15 18:15:18 +00:00
%{_includedir}/corosync/engine/quorum.h
2008-09-25 06:16:38 +00:00
%{_libdir}/corosync/libcfg.so
%{_libdir}/corosync/libcpg.so
%{_libdir}/corosync/libconfdb.so
%{_libdir}/corosync/libevs.so
%{_libdir}/corosync/libtotem_pg.so
%{_libdir}/corosync/liblogsys.so
%{_libdir}/corosync/libcoroutil.so
2009-01-27 10:44:56 +00:00
%{_libdir}/corosync/libquorum.so
%{_libdir}/corosync/libvotequorum.so
2009-02-02 07:19:05 +00:00
%{_libdir}/pkgconfig/*.pc
2008-09-25 06:16:38 +00:00
%{_mandir}/man3/cpg_*3*
%{_mandir}/man3/evs_*3*
%{_mandir}/man3/confdb_*3*
2009-01-27 10:44:56 +00:00
%{_mandir}/man3/votequorum_*3*
2008-09-25 06:16:38 +00:00
%{_mandir}/man8/cpg_overview.8*
%{_mandir}/man8/evs_overview.8*
%{_mandir}/man8/confdb_overview.8*
%{_mandir}/man8/logsys_overview.8*
2009-01-27 10:44:56 +00:00
%{_mandir}/man8/votequorum_overview.8*
2008-09-25 06:16:38 +00:00
%changelog
2009-02-02 07:19:05 +00:00
* Mon Feb 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-7.svn1756
- 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.
2009-02-02 07:19:05 +00:00
2009-01-27 10:44:56 +00:00
* Tue Jan 27 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-6.svn1750
- Update to svn trunk at revision 1750 from upstream.
- Include new quorum service in the packaging.
2008-12-15 18:15:18 +00:00
* Mon Dec 15 2008 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-5.svn1709
- Update to svn trunk at revision 1709 from upstream.
- Update spec file to include new include files.
2008-12-10 07:42:53 +00:00
* Wed Dec 10 2008 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-4.svn1707
- Update to svn trunk at revision 1707 from upstream.
- Update spec file to include new lcrso services and include file.
2008-10-14 04:06:08 +00:00
* Mon Oct 13 2008 Dennis Gilmore <dennis@ausil.us> - 0.92-3
- remove ExclusiveArch line
* Fri Sep 24 2008 Steven Dake <sdake@redhat.com> - 0.92-2
- Add conflicts for openais and openais-devel packages older then 0.90.
2008-09-25 06:16:38 +00:00
* Wed Sep 24 2008 Steven Dake <sdake@redhat.com> - 0.92-1
- New upstream release corosync-0.92.
* Sun Aug 24 2008 Steven Dake <sdake@redhat.com> - 0.91-3
- move logsys_overview.8.* to devel package.
- move shared libs to main package.
* Wed Aug 20 2008 Steven Dake <sdake@redhat.com> - 0.91-2
- use /sbin/service instead of calling init script directly.
- put corosync-objctl man page in the main package.
- change all initrddir to initddir for fedora 10 guidelines.
* Thu Aug 14 2008 Steven Dake <sdake@redhat.com> - 0.91-1
- First upstream packaged version of corosync for rawhide review.