]> git.pld-linux.org Git - packages/corosync.git/blame - corosync.spec
- updated to 1.4.2
[packages/corosync.git] / corosync.spec
CommitLineData
a1f7a440 1#
ab0d79a4 2# Conditional build:
4169d0ae
JB
3%bcond_with apidocs # build apidocs (man3 pages are provided anyway)
4%bcond_without dbus # DBus events
5%bcond_without rdma # RDMA support
6%bcond_without snmp # SNMP protocol support
2805ff24 7#
ab0d79a4 8Summary: Corosync - OSI Certified implementation of a complete cluster engine
a1f7a440 9Summary(pl.UTF-8): Corosync - implementacja silnika klastrowego certyfikowana przez OSI
ab0d79a4 10Name: corosync
4169d0ae 11Version: 1.4.2
ee1ccba1 12Release: 1
ab0d79a4 13License: BSD
14Group: Base
e7c18d27 15Source0: ftp://ftp:downloads@corosync.org/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
4169d0ae 16# Source0-md5: 061ee5522097fee69475b38a66bf1d6a
bc47be90 17Patch0: %{name}-makefile.patch
ab0d79a4 18URL: http://www.corosync.org/
a1f7a440 19BuildRequires: autoconf >= 2.61
ab0d79a4 20BuildRequires: automake
4169d0ae 21%{?with_dbus:BuildRequires: dbus-devel}
2805ff24
JB
22%{?with_apidocs:BuildRequires: doxygen}
23%if %{with rdma}
24BuildRequires: libibverbs-devel
25BuildRequires: librdmacm-devel
26%endif
4169d0ae 27%{?with_snmp:BuildRequires: net-snmp-devel}
40252af1 28BuildRequires: nss-devel
9d8c645a 29BuildRequires: pkgconfig
a1f7a440 30Requires: %{name}-libs = %{version}-%{release}
ab0d79a4 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
4169d0ae
JB
33# short_service_name_get() is defined in executable
34%define skip_post_check_so libcoroipcs\.so.*
35
ab0d79a4 36%description
37The Corosync Cluster Engine is an OSI Certified implementation of a
38complete cluster engine.
39
a1f7a440
JB
40%description -l pl.UTF-8
41Corosync Cluster Engine to implementacja pełnego silnika klastrowego
42certyfikowana przez OSI.
43
ab0d79a4 44%package libs
a1f7a440
JB
45Summary: Corosync Cluster Engine libraries
46Summary(pl.UTF-8): Biblioteki silnika klastrowego Corosync
ab0d79a4 47Group: Libraries
48
49%description libs
a1f7a440
JB
50This package contains the libraries of Corosync Cluster Engine, an OSI
51Certified implementation of a complete cluster engine.
52
53%description libs -l pl.UTF-8
a1e347d6 54Ten pakiet zawiera biblioteki Corosync Cluster Engine - pełnego
55silnika klastrowego certyfikowanego przez OSI.
ab0d79a4 56
57%package devel
a1f7a440
JB
58Summary: Header files for Corosync libraries
59Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Corosync
ab0d79a4 60Group: Development/Libraries
61Requires: %{name}-libs = %{version}-%{release}
3398ab62 62Conflicts: openais-devel < 1.0
ab0d79a4 63
64%description devel
a1f7a440 65This package contains the include files used to develop using Corosync
ab0d79a4 66APIs.
67
a1f7a440
JB
68%description devel -l pl.UTF-8
69Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów z
70użyciem API Corosync.
71
ab0d79a4 72%package static
a1f7a440
JB
73Summary: Corosync static libraries
74Summary(pl.UTF-8): Statyczne biblioteki Corosync
ab0d79a4 75Group: Development/Libraries
76Requires: %{name}-devel = %{version}-%{release}
77
78%description static
a1f7a440
JB
79This package contains the Corosync static libraries.
80
81%description static -l pl.UTF-8
82Ten pakiet zawiera statyczne biblioteki Corosync.
ab0d79a4 83
4169d0ae
JB
84%package -n mibs-corosync
85Summary: Corosync SNMP MIB data
86Summary(pl.UTF-8): Dane SNMP MIB dla Corosync
87Group: Applications/System
88Requires: mibs-dirs
89
90%description -n mibs-corosync
91Corosync SNMP MIB data.
92
93%description -n mibs-corosync -l pl.UTF-8
94Dane SNMP MIB dla Corosync.
95
ab0d79a4 96%prep
97%setup -q
bc47be90 98%patch0 -p1
ab0d79a4 99
100%build
101%{__aclocal}
102%{__autoconf}
a1f7a440 103%{__autoheader}
ab0d79a4 104%{__automake}
4169d0ae 105# options not yet supported: monitoring, watchdog, augeas
ab0d79a4 106%configure \
4169d0ae 107 %{?with_dbus:--enable-dbus} \
ab0d79a4 108 --enable-nss \
2805ff24 109 %{?with_rdma:--enable-rdma} \
4169d0ae 110 %{?with_snmp:--enable-snmp} \
a1f7a440 111 --with-initddir=/etc/rc.d/init.d \
ab0d79a4 112 --with-lcrso-dir=%{_libdir}/lcrso
113
114%{__make}
115
116%{?with_apidocs:%{__make} doxygen}
a1e347d6 117
ab0d79a4 118%install
119rm -rf $RPM_BUILD_ROOT
a1f7a440 120
ab0d79a4 121%{__make} install \
122 DESTDIR=$RPM_BUILD_ROOT
ab0d79a4 123
a1e347d6 124%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/corosync
a1f7a440
JB
125
126sed -e 's/^/#/' $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example \
127 >$RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf
4169d0ae 128%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example*
ab0d79a4 129
130%{?with_apidocs:install doc/api/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3}
131
132%clean
133rm -rf $RPM_BUILD_ROOT
134
364ac3e0 135%post libs -p /sbin/ldconfig
136%postun libs -p /sbin/ldconfig
137
ab0d79a4 138%files
139%defattr(644,root,root,755)
4169d0ae 140%doc AUTHORS ChangeLog LICENSE README.devmap README.recovery SECURITY TODO conf/corosync.conf.example*
a1f7a440 141%attr(754,root,root) /etc/rc.d/init.d/corosync
4169d0ae 142%attr(754,root,root) /etc/rc.d/init.d/corosync-notifyd
ab0d79a4 143%dir %{_sysconfdir}/corosync
144%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/corosync.conf
e7c18d27 145%attr(755,root,root) %{_bindir}/corosync-blackbox
ab0d79a4 146%attr(755,root,root) %{_sbindir}/corosync
147%attr(755,root,root) %{_sbindir}/corosync-cfgtool
a1f7a440 148%attr(755,root,root) %{_sbindir}/corosync-cpgtool
ab0d79a4 149%attr(755,root,root) %{_sbindir}/corosync-fplay
150%attr(755,root,root) %{_sbindir}/corosync-keygen
4169d0ae 151%attr(755,root,root) %{_sbindir}/corosync-notifyd
ab0d79a4 152%attr(755,root,root) %{_sbindir}/corosync-objctl
153%attr(755,root,root) %{_sbindir}/corosync-pload
40252af1 154%attr(755,root,root) %{_sbindir}/corosync-quorumtool
ab0d79a4 155%attr(755,root,root) %{_libdir}/lcrso/*.lcrso
a1f7a440
JB
156%{_mandir}/man5/corosync.conf.5*
157%{_mandir}/man8/corosync.8*
158%{_mandir}/man8/corosync-blackbox.8*
159%{_mandir}/man8/corosync-cfgtool.8*
160%{_mandir}/man8/corosync-cpgtool.8*
161%{_mandir}/man8/corosync-fplay.8*
162%{_mandir}/man8/corosync-keygen.8*
4169d0ae 163%{_mandir}/man8/corosync-notifyd.8*
a1f7a440
JB
164%{_mandir}/man8/corosync-objctl.8*
165%{_mandir}/man8/corosync-pload.8*
166%{_mandir}/man8/corosync-quorumtool.8*
ab0d79a4 167
168%files libs
169%defattr(644,root,root,755)
ab0d79a4 170%attr(755,root,root) %{_libdir}/libcfg.so.4.*.*
171%attr(755,root,root) %ghost %{_libdir}/libcfg.so.4
172%attr(755,root,root) %{_libdir}/libconfdb.so.4.*.*
173%attr(755,root,root) %ghost %{_libdir}/libconfdb.so.4
174%attr(755,root,root) %{_libdir}/libcoroipcc.so.4.*.*
175%attr(755,root,root) %ghost %{_libdir}/libcoroipcc.so.4
176%attr(755,root,root) %{_libdir}/libcoroipcs.so.4.*.*
177%attr(755,root,root) %ghost %{_libdir}/libcoroipcs.so.4
178%attr(755,root,root) %{_libdir}/libcpg.so.4.*.*
179%attr(755,root,root) %ghost %{_libdir}/libcpg.so.4
180%attr(755,root,root) %{_libdir}/libevs.so.4.*.*
181%attr(755,root,root) %ghost %{_libdir}/libevs.so.4
182%attr(755,root,root) %{_libdir}/liblogsys.so.4.*.*
183%attr(755,root,root) %ghost %{_libdir}/liblogsys.so.4
184%attr(755,root,root) %{_libdir}/libpload.so.4.*.*
185%attr(755,root,root) %ghost %{_libdir}/libpload.so.4
1c7457c7 186%attr(755,root,root) %{_libdir}/libsam.so.4.*.*
187%attr(755,root,root) %ghost %{_libdir}/libsam.so.4
ab0d79a4 188%attr(755,root,root) %{_libdir}/libquorum.so.4.*.*
189%attr(755,root,root) %ghost %{_libdir}/libquorum.so.4
190%attr(755,root,root) %{_libdir}/libtotem_pg.so.4.*.*
191%attr(755,root,root) %ghost %{_libdir}/libtotem_pg.so.4
192%attr(755,root,root) %{_libdir}/libvotequorum.so.4.*.*
193%attr(755,root,root) %ghost %{_libdir}/libvotequorum.so.4
a1f7a440 194%dir %{_libdir}/lcrso
ab0d79a4 195
196%files devel
197%defattr(644,root,root,755)
a1f7a440
JB
198%attr(755,root,root) %{_libdir}/libcfg.so
199%attr(755,root,root) %{_libdir}/libconfdb.so
200%attr(755,root,root) %{_libdir}/libcoroipcc.so
201%attr(755,root,root) %{_libdir}/libcoroipcs.so
202%attr(755,root,root) %{_libdir}/libcpg.so
203%attr(755,root,root) %{_libdir}/libevs.so
204%attr(755,root,root) %{_libdir}/liblogsys.so
205%attr(755,root,root) %{_libdir}/libpload.so
206%attr(755,root,root) %{_libdir}/libsam.so
207%attr(755,root,root) %{_libdir}/libquorum.so
208%attr(755,root,root) %{_libdir}/libtotem_pg.so
209%attr(755,root,root) %{_libdir}/libvotequorum.so
ab0d79a4 210%{_includedir}/corosync
a1f7a440
JB
211%{_pkgconfigdir}/corosync.pc
212%{_pkgconfigdir}/libcfg.pc
213%{_pkgconfigdir}/libconfdb.pc
214%{_pkgconfigdir}/libcoroipcc.pc
215%{_pkgconfigdir}/libcoroipcs.pc
216%{_pkgconfigdir}/libcpg.pc
217%{_pkgconfigdir}/libevs.pc
218%{_pkgconfigdir}/liblogsys.pc
219%{_pkgconfigdir}/libpload.pc
220%{_pkgconfigdir}/libquorum.pc
221%{_pkgconfigdir}/libsam.pc
222%{_pkgconfigdir}/libtotem_pg.pc
223%{_pkgconfigdir}/libvotequorum.pc
224%{_mandir}/man3/confdb_*.3*
225%{_mandir}/man3/cpg_*.3*
226%{_mandir}/man3/evs_*.3*
227%{_mandir}/man3/sam_*.3*
228%{_mandir}/man3/votequorum_*.3*
229# should be man7...
230%{_mandir}/man8/confdb_overview.8*
231%{_mandir}/man8/coroipc_overview.8*
232%{_mandir}/man8/corosync_overview.8*
233%{_mandir}/man8/cpg_overview.8*
234%{_mandir}/man8/evs_overview.8*
235%{_mandir}/man8/logsys_overview.8*
236%{_mandir}/man8/sam_overview.8*
237%{_mandir}/man8/votequorum_overview.8*
ab0d79a4 238
239%files static
240%defattr(644,root,root,755)
241%{_libdir}/libcfg.a
242%{_libdir}/libconfdb.a
243%{_libdir}/libcoroipcc.a
244%{_libdir}/libcoroipcs.a
245%{_libdir}/libcpg.a
246%{_libdir}/libevs.a
247%{_libdir}/liblcr.a
248%{_libdir}/liblogsys.a
249%{_libdir}/libpload.a
1c7457c7 250%{_libdir}/libsam.a
ab0d79a4 251%{_libdir}/libquorum.a
252%{_libdir}/libtotem_pg.a
253%{_libdir}/libvotequorum.a
4169d0ae
JB
254
255%if %{with snmp}
256%files -n mibs-corosync
257%defattr(644,root,root,755)
258%{_datadir}/snmp/mibs/COROSYNC-MIB.txt
259%endif
This page took 0.102963 seconds and 4 git commands to generate.