corosync/corosync.spec

389 lines
13 KiB
RPMSpec
Raw Normal View History

2009-12-08 01:38:52 +00:00
# global alphatag svn1211
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
2010-03-24 19:54:45 +00:00
Version: 1.2.1
2009-09-22 13:15:23 +00:00
Release: 1%{?alphatag:.%{alphatag}}%{?dist}
2008-09-25 06:16:38 +00:00
License: BSD
Group: System Environment/Base
URL: http://www.openais.org
2009-12-08 01:38:52 +00:00
Source0: http://developer.osdl.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
2008-09-25 06:16:38 +00:00
# Runtime bits
Requires: corosynclib = %{version}-%{release}
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
2009-12-08 01:38:52 +00:00
# Build bits
%define buildtrunk 0
%{?_with_buildtrunk: %define buildtrunk 1}
%if %{buildtrunk}
BuildRequires: autoconf automake
%endif
2009-06-10 06:59:19 +00:00
BuildRequires: nss-devel
BuildRequires: libibverbs-devel librdmacm-devel
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2008-09-25 06:16:38 +00:00
%prep
2009-12-08 01:38:52 +00:00
%setup -q -n %{name}-%{version}
2008-09-25 06:16:38 +00:00
%if %{buildtrunk}
2009-06-10 06:59:19 +00:00
./autogen.sh
%endif
2008-09-25 06:16:38 +00:00
export ibverbs_CFLAGS=-I/usr/include/infiniband \
export ibverbs_LIBS=-libverbs \
export rdmacm_CFLAGS=-I/usr/include/rdma \
export rdmacm_LIBS=-lrdmacm \
%{configure} \
--enable-nss \
2009-12-08 01:38:52 +00:00
--enable-rdma \
--with-initddir=%{_initddir}
%build
make %{_smp_mflags}
2008-09-25 06:16:38 +00:00
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## tree fixup
# drop static libs
rm -f %{buildroot}%{_libdir}/*.a
# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*
2008-09-25 06:16:38 +00:00
%clean
rm -rf %{buildroot}
2008-09-25 06:16:38 +00:00
2009-12-08 01:38:52 +00:00
%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
%post
/sbin/chkconfig --add corosync || :
%preun
if [ $1 -eq 0 ]; then
/sbin/service corosync stop &>/dev/null || :
/sbin/chkconfig --del corosync || :
fi
2009-12-08 01:38:52 +00:00
%files
2008-09-25 06:16:38 +00:00
%defattr(-,root,root,-)
%doc LICENSE SECURITY
2008-09-25 06:16:38 +00:00
%{_sbindir}/corosync
%{_sbindir}/corosync-keygen
%{_sbindir}/corosync-objctl
%{_sbindir}/corosync-cfgtool
%{_sbindir}/corosync-fplay
%{_sbindir}/corosync-pload
%{_sbindir}/corosync-cpgtool
%{_sbindir}/corosync-quorumtool
%dir %{_sysconfdir}/corosync
2009-12-08 01:38:52 +00:00
%dir %{_sysconfdir}/corosync/service.d
%dir %{_sysconfdir}/corosync/uidgid.d
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
2008-09-25 06:16:38 +00:00
%{_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
%{_libexecdir}/lcrso/quorum_votequorum.lcrso
%{_libexecdir}/lcrso/quorum_testquorum.lcrso
2008-12-10 07:42:53 +00:00
%{_libexecdir}/lcrso/vsf_quorum.lcrso
2008-09-25 06:16:38 +00:00
%{_libexecdir}/lcrso/vsf_ykd.lcrso
%dir %{_localstatedir}/lib/corosync
2009-02-02 10:19:41 +00:00
%{_mandir}/man8/corosync_overview.8*
%{_mandir}/man8/corosync-objctl.8*
%{_mandir}/man5/corosync.conf.5*
%package -n corosynclib
2009-02-02 10:19:41 +00:00
Summary: The Corosync Cluster Engine Libraries
Group: System Environment/Libraries
2009-12-08 01:38:52 +00:00
Requires: %{name} = %{version}-%{release}
2009-02-02 10:19:41 +00:00
%description -n corosynclib
2009-02-02 10:19:41 +00:00
This package contains corosync libraries.
%files -n corosynclib
2009-02-02 10:19:41 +00:00
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/libcfg.so.*
%{_libdir}/libcpg.so.*
%{_libdir}/libconfdb.so.*
%{_libdir}/libevs.so.*
%{_libdir}/libtotem_pg.so.*
%{_libdir}/liblogsys.so.*
%{_libdir}/libcoroipcc.so.*
%{_libdir}/libcoroipcs.so.*
%{_libdir}/libquorum.so.*
%{_libdir}/libvotequorum.so.*
%{_libdir}/libpload.so.*
2009-12-08 01:38:52 +00:00
%{_libdir}/libsam.so.*
2009-02-02 10:19:41 +00:00
%post -n corosynclib -p /sbin/ldconfig
2009-02-02 10:19:41 +00:00
%postun -n corosynclib -p /sbin/ldconfig
2008-09-25 06:16:38 +00:00
%package -n corosynclib-devel
Summary: The Corosync Cluster Engine Development Kit
2009-02-02 09:53:24 +00:00
Group: Development/Libraries
Requires: corosynclib = %{version}-%{release}
Requires: pkgconfig
2009-02-19 08:56:09 +00:00
Provides: corosync-devel = %{version}
Obsoletes: corosync-devel < 0.92-7
%description -n corosynclib-devel
This package contains include files and man pages used to develop using
The Corosync Cluster Engine APIs.
%files -n corosynclib-devel
2008-09-25 06:16:38 +00:00
%defattr(-,root,root,-)
%doc LICENSE README.devmap
2008-09-25 06:16:38 +00:00
%dir %{_includedir}/corosync/
%{_includedir}/corosync/cs_config.h
2009-06-10 06:59:19 +00:00
%{_includedir}/corosync/corodefs.h
%{_includedir}/corosync/coroipc_types.h
%{_includedir}/corosync/coroipcs.h
%{_includedir}/corosync/coroipcc.h
2008-09-25 06:16:38 +00:00
%{_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/list.h
%{_includedir}/corosync/mar_gen.h
2009-12-08 01:38:52 +00:00
%{_includedir}/corosync/sam.h
2008-09-25 06:16:38 +00:00
%{_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
%{_libdir}/libcfg.so
%{_libdir}/libcpg.so
%{_libdir}/libconfdb.so
%{_libdir}/libevs.so
%{_libdir}/libtotem_pg.so
%{_libdir}/liblogsys.so
%{_libdir}/libcoroipcc.so
%{_libdir}/libcoroipcs.so
%{_libdir}/libquorum.so
%{_libdir}/libvotequorum.so
%{_libdir}/libpload.so
2009-12-08 01:38:52 +00:00
%{_libdir}/libsam.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*
2009-12-08 01:38:52 +00:00
%{_mandir}/man3/sam_*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*
%{_mandir}/man8/coroipc_overview.8*
2009-12-08 01:38:52 +00:00
%{_mandir}/man8/sam_overview.8*
2008-09-25 06:16:38 +00:00
%changelog
2010-03-24 19:54:45 +00:00
* Wed Mar 24 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.1-1
- New upstream release
2009-12-08 01:38:52 +00:00
* Tue Dec 8 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.0-1
- New upstream release
- Use global instead of define
- Update Source0 url
- Use more %name macro around
- Cleanup install section. Init script is now installed by upstream
- Cleanup whitespace
- Don't deadlock between package upgrade and corosync condrestart
- Ship service.d config directory
- Fix Conflicts vs Requires
- Ship new sam library and man pages
* Fri Oct 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.2-1
- New upstream release fixes major regression on specific loads
* Wed Oct 21 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.1-1
- New upstream release
* Fri Sep 25 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.0-1
- New upstream release
- spec file updates:
* enable IB support
* explicitly define built-in features at configure time
2009-09-22 13:15:23 +00:00
* Tue Sep 22 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.1-1
- New upstream release
- spec file updates:
* use proper configure macro
* Tue Jul 28 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.0-3
- spec file updates:
* more consistent use of macros across the board
* fix directory ownership
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-07-08 19:03:18 +00:00
* Wed Jul 8 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.0-1
- New upstream release
2009-07-01 22:10:28 +00:00
* Thu Jul 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.100-1
- New upstream release
2009-06-20 07:52:36 +00:00
* Sat Jun 20 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.98-1
- New upstream release
- spec file updates:
* Drop corosync-trunk patch and alpha tag.
* Fix alphatag vs buildtrunk handling.
* Drop requirement on ais user/group and stop creating them.
* New config file locations from upstream: /etc/corosync/corosync.conf.
* Wed Jun 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.97-1.svn2233
- spec file updates:
* Update to svn version 2233 to include library linking fixes
* Wed Jun 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.97-1.svn2232
2009-06-10 06:59:19 +00:00
- New upstream release
- spec file updates:
* Drop pkgconfig fix that's now upstream
* Update to svn version 2232
2009-06-10 06:59:19 +00:00
* Define buildtrunk if we are using svn snapshots
* BuildRequires: nss-devel to enable nss crypto for network communication
* Force autogen invokation if buildtrunk is defined
* Whitespace cleanup
* Stop shipping corosync.conf in favour of a generic example
* Update file list
2009-03-30 07:00:39 +00:00
* Mon Mar 30 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.95-2
- Backport svn commit 1913 to fix pkgconfig files generation
and unbreak lvm2 build.
* Tue Mar 24 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.95-1
- New upstream release
- spec file updates:
* Drop alpha tag
* Drop local patches (no longer required)
* Allow to build from svn trunk by supporting rpmbuild --with buildtrunk
* BuildRequires autoconf automake if building from trunk
* Execute autogen.sh if building from trunk and if no configure is available
* Switch to use rpm configure macro and set standard install paths
* Build invokation now supports _smp_mflags
* Remove install section for docs and use proper doc macro instead
* Add tree fixup bits to drop static libs and html docs (only for now)
* Add LICENSE file to all subpackages
* libraries have moved to libdir. Drop ld.so.conf.d corosync file
* Update BuildRoot usage to preferred versions/names
* Tue Mar 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-5.svn1797
- Update the corosync-trunk patch for real this time.
* Tue Mar 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-4.svn1797
- Import fixes from upstream:
* Cleanup logsys format init around to use default settings (1795)
* logsys_format_set should use its own internal copy of format_buffer (1796)
* Add logsys_format_get to logsys API (1797)
- Cherry pick svn1807 to unbreak CPG.
* Mon Mar 9 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-3.svn1794
- Import fixes from upstream:
* Add reserve/release feature to totem message queue space (1793)
* Fix CG shutdown (1794)
2009-03-06 07:30:44 +00:00
* Fri Mar 6 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-2.svn1792
- Import fixes from upstream:
* Fix uninitialized memory. Spotted by valgrind (1788)
* Fix logsys_set_format by updating the right bits (1789)
* logsys: re-add support for timestamp (1790)
* Fix cpg crash (1791)
* Allow logsys_format_set to reset to default (1792)
2009-03-03 05:48:35 +00:00
* Tue Mar 3 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-1
- New upstream release.
- Drop obsolete patches.
- Add soname bump patch that was missing from upstream.
* Wed Feb 25 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-4
- Add Makefile fix to install all corosync tools (commit r1780)
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Feb 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-2
- Rename gcc-4.4 patch to match svn commit (r1767).
- Backport patch from trunk (commit r1774) to fix quorum engine.
2009-02-19 08:56:09 +00:00
* Thu Feb 19 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-1
- New upstream release.
- Drop alphatag from spec file.
- Drop trunk patch.
- Update Provides for corosynclib-devel.
- Backport gcc-4.4 build fix from trunk.
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.
- Split libraries from corosync to corosynclib.
- Rename corosync-devel to corosynclib-devel.
2009-02-02 11:15:07 +00:00
- Comply with multiarch requirements (libraries).
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.