corosync-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. Name: corosync
  2. Summary: The Corosync Cluster Engine and Application Programming Interfaces
  3. Summary(ja): Corosyncクラスタエンジンおよびアプリケーションプログラミングインタフェース
  4. Version: 1.2.6
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: System Environment/Base
  8. URL: http://ftp.corosync.org
  9. Source0: ftp://ftp:downloads@ftp.corosync.org/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
  10. Patch0: revision-2770.patch
  11. # Runtime bits
  12. Requires: corosynclib = %{version}-%{release}
  13. Requires(pre): shadow-utils
  14. Requires(post): chkconfig
  15. Requires(preun): chkconfig
  16. # Build bits
  17. %define buildtrunk 0
  18. %{?_with_buildtrunk: %define buildtrunk 1}
  19. %define enablerdma 0
  20. %{?_with_rdma: %define enablerdma 1}
  21. %if %{buildtrunk}
  22. BuildRequires: autoconf automake
  23. %endif
  24. BuildRequires: nss-devel
  25. %if %{enablerdma}
  26. BuildRequires: libibverbs-devel librdmacm-devel
  27. %endif
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  29. %prep
  30. %setup -q -n %{name}-%{version}
  31. %patch0
  32. %build
  33. %if %{buildtrunk}
  34. ./autogen.sh
  35. %endif
  36. %if %{enablerdma}
  37. export ibverbs_CFLAGS=-I/usr/include/infiniband \
  38. export ibverbs_LIBS=-libverbs \
  39. export rdmacm_CFLAGS=-I/usr/include/rdma \
  40. export rdmacm_LIBS=-lrdmacm \
  41. %endif
  42. %{configure} \
  43. --enable-nss \
  44. %if %{enablerdma}
  45. --enable-rdma \
  46. %endif
  47. --with-initddir=%{_initrddir}
  48. make %{_smp_mflags}
  49. %install
  50. rm -rf %{buildroot}
  51. make install DESTDIR=%{buildroot}
  52. ## tree fixup
  53. # drop static libs
  54. rm -f %{buildroot}%{_libdir}/*.a
  55. # drop docs and html docs for now
  56. rm -rf %{buildroot}%{_docdir}/*
  57. %clean
  58. rm -rf %{buildroot}
  59. %description
  60. This package contains the Corosync Cluster Engine Executive, several default
  61. APIs and libraries, default configuration files, and an init script.
  62. %post
  63. if [ $1 -eq 1 ]; then
  64. /sbin/chkconfig --add corosync || :
  65. fi
  66. %preun
  67. if [ $1 -eq 0 ]; then
  68. /sbin/service corosync stop &>/dev/null || :
  69. /sbin/chkconfig --del corosync || :
  70. fi
  71. %files
  72. %defattr(-,root,root,-)
  73. %doc LICENSE SECURITY
  74. %{_sbindir}/corosync
  75. %{_sbindir}/corosync-keygen
  76. %{_sbindir}/corosync-objctl
  77. %{_sbindir}/corosync-cfgtool
  78. %{_sbindir}/corosync-fplay
  79. %{_sbindir}/corosync-pload
  80. %{_sbindir}/corosync-cpgtool
  81. %{_sbindir}/corosync-quorumtool
  82. %dir %{_sysconfdir}/corosync
  83. %dir %{_sysconfdir}/corosync/service.d
  84. %dir %{_sysconfdir}/corosync/uidgid.d
  85. %config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
  86. %{_initrddir}/corosync
  87. %dir %{_libexecdir}/lcrso
  88. %{_libexecdir}/lcrso/coroparse.lcrso
  89. %{_libexecdir}/lcrso/objdb.lcrso
  90. %{_libexecdir}/lcrso/service_cfg.lcrso
  91. %{_libexecdir}/lcrso/service_cpg.lcrso
  92. %{_libexecdir}/lcrso/service_evs.lcrso
  93. %{_libexecdir}/lcrso/service_confdb.lcrso
  94. %{_libexecdir}/lcrso/service_pload.lcrso
  95. %{_libexecdir}/lcrso/quorum_votequorum.lcrso
  96. %{_libexecdir}/lcrso/quorum_testquorum.lcrso
  97. %{_libexecdir}/lcrso/vsf_quorum.lcrso
  98. %{_libexecdir}/lcrso/vsf_ykd.lcrso
  99. %dir %{_localstatedir}/lib/corosync
  100. %dir %{_localstatedir}/log/cluster
  101. %{_mandir}/man8/corosync_overview.8*
  102. %{_mandir}/man8/corosync.8*
  103. %{_mandir}/man8/corosync-blackbox.8*
  104. %{_mandir}/man8/corosync-objctl.8*
  105. %{_mandir}/man8/corosync-keygen.8*
  106. %{_mandir}/man8/corosync-cfgtool.8*
  107. %{_mandir}/man8/corosync-cpgtool.8*
  108. %{_mandir}/man8/corosync-fplay.8*
  109. %{_mandir}/man8/corosync-pload.8*
  110. %{_mandir}/man8/corosync-quorumtool.8*
  111. %{_mandir}/man5/corosync.conf.5*
  112. %package -n corosynclib
  113. Summary: The Corosync Cluster Engine Libraries
  114. Summary(ja): The Corosync Cluster Engine Libraries
  115. Group: System Environment/Libraries
  116. Requires: %{name} = %{version}-%{release}
  117. %description -n corosynclib
  118. This package contains corosync libraries.
  119. %files -n corosynclib
  120. %defattr(-,root,root,-)
  121. %doc LICENSE
  122. %{_libdir}/libcfg.so.*
  123. %{_libdir}/libcpg.so.*
  124. %{_libdir}/libconfdb.so.*
  125. %{_libdir}/libevs.so.*
  126. %{_libdir}/libtotem_pg.so.*
  127. %{_libdir}/liblogsys.so.*
  128. %{_libdir}/libcoroipcc.so.*
  129. %{_libdir}/libcoroipcs.so.*
  130. %{_libdir}/libquorum.so.*
  131. %{_libdir}/libvotequorum.so.*
  132. %{_libdir}/libpload.so.*
  133. %{_libdir}/libsam.so.*
  134. %post -n corosynclib -p /sbin/ldconfig
  135. %postun -n corosynclib -p /sbin/ldconfig
  136. %package -n corosynclib-devel
  137. Summary: The Corosync Cluster Engine Development Kit
  138. Summary(ja): The Corosync Cluster Engine Development Kit
  139. Group: Development/Libraries
  140. Requires: corosynclib = %{version}-%{release}
  141. Requires: pkgconfig
  142. Provides: corosync-devel = %{version}
  143. Obsoletes: corosync-devel < 0.92-7
  144. %description -n corosynclib-devel
  145. This package contains include files and man pages used to develop using
  146. The Corosync Cluster Engine APIs.
  147. %files -n corosynclib-devel
  148. %defattr(-,root,root,-)
  149. %doc LICENSE README.devmap
  150. %dir %{_includedir}/corosync/
  151. %{_includedir}/corosync/cs_config.h
  152. %{_includedir}/corosync/corodefs.h
  153. %{_includedir}/corosync/coroipc_types.h
  154. %{_includedir}/corosync/coroipcs.h
  155. %{_includedir}/corosync/coroipcc.h
  156. %{_includedir}/corosync/cfg.h
  157. %{_includedir}/corosync/confdb.h
  158. %{_includedir}/corosync/corotypes.h
  159. %{_includedir}/corosync/cpg.h
  160. %{_includedir}/corosync/evs.h
  161. %{_includedir}/corosync/hdb.h
  162. %{_includedir}/corosync/list.h
  163. %{_includedir}/corosync/mar_gen.h
  164. %{_includedir}/corosync/sam.h
  165. %{_includedir}/corosync/swab.h
  166. %{_includedir}/corosync/quorum.h
  167. %{_includedir}/corosync/votequorum.h
  168. %dir %{_includedir}/corosync/totem/
  169. %{_includedir}/corosync/totem/coropoll.h
  170. %{_includedir}/corosync/totem/totem.h
  171. %{_includedir}/corosync/totem/totemip.h
  172. %{_includedir}/corosync/totem/totempg.h
  173. %dir %{_includedir}/corosync/lcr/
  174. %{_includedir}/corosync/lcr/lcr_ckpt.h
  175. %{_includedir}/corosync/lcr/lcr_comp.h
  176. %{_includedir}/corosync/lcr/lcr_ifact.h
  177. %dir %{_includedir}/corosync/engine
  178. %{_includedir}/corosync/engine/config.h
  179. %{_includedir}/corosync/engine/coroapi.h
  180. %{_includedir}/corosync/engine/logsys.h
  181. %{_includedir}/corosync/engine/objdb.h
  182. %{_includedir}/corosync/engine/quorum.h
  183. %{_libdir}/libcfg.so
  184. %{_libdir}/libcpg.so
  185. %{_libdir}/libconfdb.so
  186. %{_libdir}/libevs.so
  187. %{_libdir}/libtotem_pg.so
  188. %{_libdir}/liblogsys.so
  189. %{_libdir}/libcoroipcc.so
  190. %{_libdir}/libcoroipcs.so
  191. %{_libdir}/libquorum.so
  192. %{_libdir}/libvotequorum.so
  193. %{_libdir}/libpload.so
  194. %{_libdir}/libsam.so
  195. %{_libdir}/pkgconfig/*.pc
  196. %{_mandir}/man3/cpg_*3*
  197. %{_mandir}/man3/evs_*3*
  198. %{_mandir}/man3/confdb_*3*
  199. %{_mandir}/man3/votequorum_*3*
  200. %{_mandir}/man3/sam_*3*
  201. %{_mandir}/man8/cpg_overview.8*
  202. %{_mandir}/man8/evs_overview.8*
  203. %{_mandir}/man8/confdb_overview.8*
  204. %{_mandir}/man8/logsys_overview.8*
  205. %{_mandir}/man8/votequorum_overview.8*
  206. %{_mandir}/man8/coroipc_overview.8*
  207. %{_mandir}/man8/sam_overview.8*
  208. %changelog
  209. * Sat Jul 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-1
  210. - initial build for Vine Linux
  211. * Mon Jul 5 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.6-1
  212. - New upstream release
  213. - Resync spec file with upstream changes
  214. * Tue May 25 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.3-1
  215. - New upstream release
  216. - Rediff revision 2770 patch
  217. * Mon May 17 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.2-1
  218. - New upstream release
  219. - Add upstream trunk revision 2770 to add cpg_model_initialize api.
  220. - Fix URL and Source0 entries.
  221. - Add workaround to broken 1.2.2 Makefile with make -j.
  222. * Wed Mar 24 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.1-1
  223. - New upstream release
  224. * Tue Dec 8 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.2.0-1
  225. - New upstream release
  226. - Use global instead of define
  227. - Update Source0 url
  228. - Use more %name macro around
  229. - Cleanup install section. Init script is now installed by upstream
  230. - Cleanup whitespace
  231. - Don't deadlock between package upgrade and corosync condrestart
  232. - Ship service.d config directory
  233. - Fix Conflicts vs Requires
  234. - Ship new sam library and man pages
  235. * Fri Oct 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.2-1
  236. - New upstream release fixes major regression on specific loads
  237. * Wed Oct 21 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.1-1
  238. - New upstream release
  239. * Fri Sep 25 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.1.0-1
  240. - New upstream release
  241. - spec file updates:
  242. * enable IB support
  243. * explicitly define built-in features at configure time
  244. * Tue Sep 22 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.1-1
  245. - New upstream release
  246. - spec file updates:
  247. * use proper configure macro
  248. * Tue Jul 28 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.0-3
  249. - spec file updates:
  250. * more consistent use of macros across the board
  251. * fix directory ownership
  252. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
  253. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  254. * Wed Jul 8 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.0-1
  255. - New upstream release
  256. * Thu Jul 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.100-1
  257. - New upstream release
  258. * Sat Jun 20 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.98-1
  259. - New upstream release
  260. - spec file updates:
  261. * Drop corosync-trunk patch and alpha tag.
  262. * Fix alphatag vs buildtrunk handling.
  263. * Drop requirement on ais user/group and stop creating them.
  264. * New config file locations from upstream: /etc/corosync/corosync.conf.
  265. * Wed Jun 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.97-1.svn2233
  266. - spec file updates:
  267. * Update to svn version 2233 to include library linking fixes
  268. * Wed Jun 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.97-1.svn2232
  269. - New upstream release
  270. - spec file updates:
  271. * Drop pkgconfig fix that's now upstream
  272. * Update to svn version 2232
  273. * Define buildtrunk if we are using svn snapshots
  274. * BuildRequires: nss-devel to enable nss crypto for network communication
  275. * Force autogen invokation if buildtrunk is defined
  276. * Whitespace cleanup
  277. * Stop shipping corosync.conf in favour of a generic example
  278. * Update file list
  279. * Mon Mar 30 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.95-2
  280. - Backport svn commit 1913 to fix pkgconfig files generation
  281. and unbreak lvm2 build.
  282. * Tue Mar 24 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.95-1
  283. - New upstream release
  284. - spec file updates:
  285. * Drop alpha tag
  286. * Drop local patches (no longer required)
  287. * Allow to build from svn trunk by supporting rpmbuild --with buildtrunk
  288. * BuildRequires autoconf automake if building from trunk
  289. * Execute autogen.sh if building from trunk and if no configure is available
  290. * Switch to use rpm configure macro and set standard install paths
  291. * Build invokation now supports _smp_mflags
  292. * Remove install section for docs and use proper doc macro instead
  293. * Add tree fixup bits to drop static libs and html docs (only for now)
  294. * Add LICENSE file to all subpackages
  295. * libraries have moved to libdir. Drop ld.so.conf.d corosync file
  296. * Update BuildRoot usage to preferred versions/names
  297. * Tue Mar 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-5.svn1797
  298. - Update the corosync-trunk patch for real this time.
  299. * Tue Mar 10 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-4.svn1797
  300. - Import fixes from upstream:
  301. * Cleanup logsys format init around to use default settings (1795)
  302. * logsys_format_set should use its own internal copy of format_buffer (1796)
  303. * Add logsys_format_get to logsys API (1797)
  304. - Cherry pick svn1807 to unbreak CPG.
  305. * Mon Mar 9 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-3.svn1794
  306. - Import fixes from upstream:
  307. * Add reserve/release feature to totem message queue space (1793)
  308. * Fix CG shutdown (1794)
  309. * Fri Mar 6 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-2.svn1792
  310. - Import fixes from upstream:
  311. * Fix uninitialized memory. Spotted by valgrind (1788)
  312. * Fix logsys_set_format by updating the right bits (1789)
  313. * logsys: re-add support for timestamp (1790)
  314. * Fix cpg crash (1791)
  315. * Allow logsys_format_set to reset to default (1792)
  316. * Tue Mar 3 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.94-1
  317. - New upstream release.
  318. - Drop obsolete patches.
  319. - Add soname bump patch that was missing from upstream.
  320. * Wed Feb 25 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-4
  321. - Add Makefile fix to install all corosync tools (commit r1780)
  322. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
  323. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  324. * Mon Feb 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-2
  325. - Rename gcc-4.4 patch to match svn commit (r1767).
  326. - Backport patch from trunk (commit r1774) to fix quorum engine.
  327. * Thu Feb 19 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-1
  328. - New upstream release.
  329. - Drop alphatag from spec file.
  330. - Drop trunk patch.
  331. - Update Provides for corosynclib-devel.
  332. - Backport gcc-4.4 build fix from trunk.
  333. * Mon Feb 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-7.svn1756
  334. - Update to svn trunk at revision 1756 from upstream.
  335. - Add support pkgconfig to devel package.
  336. - Tidy up spec files by re-organazing sections according to packages.
  337. - Split libraries from corosync to corosynclib.
  338. - Rename corosync-devel to corosynclib-devel.
  339. - Comply with multiarch requirements (libraries).
  340. * Tue Jan 27 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-6.svn1750
  341. - Update to svn trunk at revision 1750 from upstream.
  342. - Include new quorum service in the packaging.
  343. * Mon Dec 15 2008 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-5.svn1709
  344. - Update to svn trunk at revision 1709 from upstream.
  345. - Update spec file to include new include files.
  346. * Wed Dec 10 2008 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.92-4.svn1707
  347. - Update to svn trunk at revision 1707 from upstream.
  348. - Update spec file to include new lcrso services and include file.
  349. * Mon Oct 13 2008 Dennis Gilmore <dennis@ausil.us> - 0.92-3
  350. - remove ExclusiveArch line
  351. * Fri Sep 24 2008 Steven Dake <sdake@redhat.com> - 0.92-2
  352. - Add conflicts for openais and openais-devel packages older then 0.90.
  353. * Wed Sep 24 2008 Steven Dake <sdake@redhat.com> - 0.92-1
  354. - New upstream release corosync-0.92.
  355. * Sun Aug 24 2008 Steven Dake <sdake@redhat.com> - 0.91-3
  356. - move logsys_overview.8.* to devel package.
  357. - move shared libs to main package.
  358. * Wed Aug 20 2008 Steven Dake <sdake@redhat.com> - 0.91-2
  359. - use /sbin/service instead of calling init script directly.
  360. - put corosync-objctl man page in the main package.
  361. - change all initrddir to initddir for fedora 10 guidelines.
  362. * Thu Aug 14 2008 Steven Dake <sdake@redhat.com> - 0.91-1
  363. - First upstream packaged version of corosync for rawhide review.