File project3.diff of Package openais

--- openais.changes.orig
+++ openais.changes
@@ -1,7 +1,18 @@
 -------------------------------------------------------------------
+Tue Dec  2 11:45:24 CST 2008 - maw@pobox.com
+
+- Make the -devel subpackage require corosync-devel.
+
+-------------------------------------------------------------------
+Mon Dec  1 21:36:41 CST 2008 - maw@pobox.com
+
+- Update to version 0.91.
+
+-------------------------------------------------------------------
 Mon Dec  1 15:06:32 CST 2008 - maw@pobox.com
 
-- Build debug packages.
+- Build debug packages
+- Build sans optimization.
 
 -------------------------------------------------------------------
 Sat May  3 07:36:06 CEST 2008 - abeekhof@suse.de
--- openais.spec.orig
+++ openais.spec
@@ -15,10 +15,11 @@
 %endif
 %define ais_uid         39
 %define ais_user	ais
-# BuildRequires:  corosync-devel
+BuildRequires:  corosync-devel
 Name:           openais
 Summary:        The OpenAIS Standards-Based Cluster Framework executive and APIs
-Version:        0.82
+# taken from fedora
+Version:        0.91
 Release:        6
 License:        BSD 3-Clause
 %if 0%{?fedora_version}
@@ -28,7 +29,7 @@ Group:          Productivity/Clustering/
 %endif
 Url:            http://www.openais.org/
 # r1663
-Source0:        openais.tar.gz
+Source0:        openais-%{version}.tar.gz
 Patch1:         install.patch
 # Apply this to corogen, if necessary
 Patch2:         keygen.patch
@@ -36,6 +37,7 @@ Patch2:         keygen.patch
 Patch3:         disable-crypto.patch
 # Apply this to corogen, if necessary
 Patch4:         ucred.patch
+Patch6:         openais-enter-macro.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires(pre): /usr/sbin/useradd
 Requires(post): /sbin/chkconfig
@@ -77,6 +79,7 @@ Group:          Productivity/Clustering/
 Group:          Productivity/Clustering/HA
 %endif
 Requires:       %{name} = %{version}-%{release}
+Requires:       corosync-devel
 
 %description devel
 This package contains the libraries and include files used to develop
@@ -107,9 +110,9 @@ Authors:
 
 %debug_package
 %prep
-%setup -n openais
+%setup
 %patch1 -p1
-
+%patch6 -p1
 %build
 # -O3 required for performance reasons
 # So we get proper debug output, for now we don't compile with O3
@@ -122,10 +125,10 @@ rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LCRSODIR=%{_libexecdir}/lcrso STATICLIBS=NO
 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
-install -m 644 CHANGELOG LICENSE SECURITY README.devmap README.amf \
-	$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
+#install -m 644 CHANGELOG LICENSE SECURITY README.devmap README.amf \
+#	$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
 install -m 755 init/generic $RPM_BUILD_ROOT%{_initrddir}/openais
-install -m 755 test/openais-cfgtool $RPM_BUILD_ROOT%{_sbindir}
+# install -m 755 test/openais-cfgtool $RPM_BUILD_ROOT%{_sbindir}
 find $RPM_BUILD_ROOT -name '*.a' -type f -print0 | xargs -0 rm -f
 find $RPM_BUILD_ROOT -name '*.la' -type f -print0 | xargs -0 rm -f
 
@@ -176,111 +179,20 @@ fi
 
 %files 
 %defattr(-,root,root,-)
-%dir %{_docdir}/%{name}-%{version}
-%doc %{_docdir}/%{name}-%{version}/LICENSE
-%doc %{_docdir}/%{name}-%{version}/SECURITY
-%doc %{_docdir}/%{name}-%{version}/README.amf
-%{_sbindir}/aisexec
-%{_sbindir}/ais-keygen
-%{_sbindir}/openais-cfgtool
-%dir /etc/ais
-%config(noreplace) /etc/ais/openais.conf
-%config(noreplace) /etc/ais/amf.conf
-%config /etc/ld.so.conf.d/openais-*.conf
-%{_initrddir}/openais
-%exclude %{_sysconfdir}/init.d/ais
-%dir %{_libexecdir}/lcrso
-%{_libexecdir}/lcrso/aisparser.lcrso
-%{_libexecdir}/lcrso/objdb.lcrso
-%{_libexecdir}/lcrso/service_amf.lcrso
-%{_libexecdir}/lcrso/service_cfg.lcrso
-%{_libexecdir}/lcrso/service_ckpt.lcrso
-%{_libexecdir}/lcrso/service_clm.lcrso
-%{_libexecdir}/lcrso/service_cpg.lcrso
-%{_libexecdir}/lcrso/service_evs.lcrso
-%{_libexecdir}/lcrso/service_evt.lcrso
-%{_libexecdir}/lcrso/service_lck.lcrso
-%{_libexecdir}/lcrso/service_msg.lcrso
-%{_libexecdir}/lcrso/vsf_ykd.lcrso
-%dir %{_libdir}/openais
-%{_libdir}/openais/libaisutil.so*
-%{_libdir}/openais/libais.so*
-%{_libdir}/openais/libcpg.so*
-%{_libdir}/openais/libevs.so*
-%{_libdir}/openais/libcfg.so*
-%{_libdir}/openais/libSaAmf.so*
-%{_libdir}/openais/libSaCkpt.so*
-%{_libdir}/openais/libSaClm.so*
-%{_libdir}/openais/libSaEvt.so*
-%{_libdir}/openais/libSaLck.so*
-%{_libdir}/openais/libSaMsg.so*
-%{_libdir}/openais/libtotem_pg.so*
-%{_mandir}/man8/openais_overview.8*
-%{_mandir}/man8/cpg_overview.8*
-%{_mandir}/man8/evs_overview.8*
-%{_mandir}/man8/logsys_overview.8*
-%{_mandir}/man5/openais.conf.5*
-%{_mandir}/man5/amf.conf.5*
+%dir %{_sysconfdir}/ais
+%config(noreplace) %{_sysconfdir}/ais/*.conf
+%config(noreplace) %{_sysconfdir}/ld.so.conf.d/*.conf
+%{_sysconfdir}/init.d/*
+%{_libdir}/openais
+%{_libdir}/lcrso
+%{_prefix}/sbin/*
+%{_mandir}/man5/*
+%{_mandir}/man8/*
+
 
 %files devel
 %defattr(-,root,root,-)
-%dir %{_docdir}/%{name}-%{version}
-%doc %{_docdir}/%{name}-%{version}/CHANGELOG
-%doc %{_docdir}/%{name}-%{version}/README.devmap
-%dir %{_includedir}/openais/
-%{_includedir}/openais/ais_util.h
-%{_includedir}/openais/ipc_gen.h
-%{_includedir}/openais/mar_gen.h
-%{_includedir}/openais/swab.h
-%{_includedir}/openais/cpg.h
-%{_includedir}/openais/cfg.h
-%{_includedir}/openais/evs.h
-%{_includedir}/openais/saAis.h
-%{_includedir}/openais/saAmf.h
-%{_includedir}/openais/saCkpt.h
-%{_includedir}/openais/saClm.h
-%{_includedir}/openais/saEvt.h
-%{_includedir}/openais/saLck.h
-%{_includedir}/openais/saMsg.h
-%dir %{_includedir}/openais/totem/
-%{_includedir}/openais/totem/aispoll.h
-%{_includedir}/openais/totem/totem.h
-%{_includedir}/openais/totem/totemip.h
-%{_includedir}/openais/totem/totempg.h
-%dir %{_includedir}/openais/lcr/
-%{_includedir}/openais/lcr/lcr_ckpt.h
-%{_includedir}/openais/lcr/lcr_comp.h
-%{_includedir}/openais/lcr/lcr_ifact.h
-%dir %{_includedir}/openais/service
-%{_includedir}/openais/service/config.h
-%{_includedir}/openais/service/objdb.h
-%{_includedir}/openais/service/logsys.h
-%{_includedir}/openais/service/swab.h
-%{_includedir}/openais/service/service.h
-%{_includedir}/openais/service/timer.h
-%{_includedir}/openais/service/flow.h
-%{_includedir}/openais/service/ipc.h
-%{_mandir}/man3/cpg_dispatch.3*
-%{_mandir}/man3/cpg_fd_get.3*
-%{_mandir}/man3/cpg_finalize.3*
-%{_mandir}/man3/cpg_initialize.3*
-%{_mandir}/man3/cpg_join.3*
-%{_mandir}/man3/cpg_leave.3*
-%{_mandir}/man3/cpg_mcast_joined.3*
-%{_mandir}/man3/cpg_membership_get.3*
-%{_mandir}/man3/cpg_local_get.3*
-%{_mandir}/man3/cpg_context_get.3*
-%{_mandir}/man3/cpg_context_set.3*
-%{_mandir}/man3/evs_dispatch.3*
-%{_mandir}/man3/evs_fd_get.3*
-%{_mandir}/man3/evs_finalize.3*
-%{_mandir}/man3/evs_initialize.3*
-%{_mandir}/man3/evs_join.3*
-%{_mandir}/man3/evs_leave.3*
-%{_mandir}/man3/evs_mcast_groups.3*
-%{_mandir}/man3/evs_mcast_joined.3*
-%{_mandir}/man3/evs_membership_get.3*
-%{_sysconfdir}/init.d/ais
+%{_includedir}/openais
 
 %changelog
 * Sat May 03 2008 abeekhof@suse.de
openSUSE Build Service is sponsored by