Changed files:
cman.spec -> 1.6
Summary: General-purpose symmetric cluster manager
Summary(pl): Zarz±dca symetrycznych klastrów ogólnego przeznaczenia
Name: cman
Summary: General-purpose symmetric cluster manager
Summary(pl): Zarz±dca symetrycznych klastrów ogólnego przeznaczenia
Name: cman
-Version: 1.0
-%define bver pre32
-Release: 0.%{bver}.1
+Version: 1.01.00
+Release: 1
License: GPL v2
Group: Applications/System
License: GPL v2
Group: Applications/System
-Source0: http://people.redhat.com/cfeist/cluster/tgz/%{name}-%{version}-%{bver}.tar.gz
-# Source0-md5: 0564c8b91dfccb75de792414cccf16bd
-# from cman-kernel CVS
-Source1: cnxman-socket.h
-# NoSource1-md5: 5b10f050be925739f47b27ddb5075f5f (rev. 1.8)
+Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
+# Source0-md5: e98551b02ee8ed46ae0ab8fca193d751
URL: http://sources.redhat.com/cluster/cman/
BuildRequires: ccs-devel
BuildRequires: perl-base
URL: http://sources.redhat.com/cluster/cman/
BuildRequires: ccs-devel
BuildRequires: perl-base
%description devel -l pl
Pliki nag³ówkowe CMAN.
%description devel -l pl
Pliki nag³ówkowe CMAN.
-%prep
-%setup -q -n %{name}-%{version}-%{bver}
+%package static
+Summary: CMAN static library
+Summary(pl): Biblioteka statyczna CMAN
+Group: Development/Libraries
-install -d include/cluster
-cp -f %{SOURCE1} include/cluster
+%description static
+CMAN static library.
+%description devel -l pl
+Biblioteka statyczna CMAN.
+
+%prep
+%setup -q -n cluster-%{version}
+install -d %{name}/include/cluster
+ln -s . %{name}/include/cluster/cluster
+install %{name}-kernel/src/cnxman-socket.h %{name}/include/cluster
+
+cd %{name}
%{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
%{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile
%build
%{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
%{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile
%build
./configure \
--incdir=%{_includedir} \
--libdir=%{_libdir} \
./configure \
--incdir=%{_includedir} \
--libdir=%{_libdir} \
%install
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/*
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_libdir}/*.so.*
%{_mandir}/man5/cman.5*
%{_mandir}/man8/cman_tool.8*
#%attr(754,root,root) /etc/rc.d/init.d/cman
%{_mandir}/man5/cman.5*
%{_mandir}/man8/cman_tool.8*
#%attr(754,root,root) /etc/rc.d/init.d/cman
%defattr(644,root,root,755)
# XXX dir shared with dml-devel
%dir %{_includedir}/cluster
%defattr(644,root,root,755)
# XXX dir shared with dml-devel
%dir %{_includedir}/cluster
-%{_includedir}/cluster/cnxman-socket.h
+%{_includedir}/*.h
+%{_includedir}/cluster/*.h
+%attr(755,root,root) %{_libdir}/*.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/*.a