[packages/crmsh] New package.
jajcus
jajcus at pld-linux.org
Thu Oct 25 15:31:46 CEST 2012
commit f9bcbc19dbff7822d17cde0c9f8dd97669ba5609
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Thu Oct 25 15:31:28 2012 +0200
New package.
crmsh-awk.patch | 9 +++++++++
crmsh.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+)
---
diff --git a/crmsh.spec b/crmsh.spec
new file mode 100644
index 0000000..5c9d404
--- /dev/null
+++ b/crmsh.spec
@@ -0,0 +1,61 @@
+#
+# Note: This is not noarch, as it has %{_libdir} etc. hardcoded in *.py files
+#
+%define changeset_id b6bb311c7bd3
+#
+Summary: Pacemaker command line interface for management and configuration
+Name: crmsh
+Version: 1.2.1
+Release: 1
+License: GPL v2
+Group: Applications/System
+Source0: http://hg.savannah.gnu.org/hgweb/crmsh/archive/%{changeset_id}.tar.bz2
+# Source0-md5: f4d0a4d30498c3b5ee73ff8b70eb3005
+Patch0: %{name}-awk.patch
+URL: https://savannah.nongnu.org/projects/crmsh/
+BuildRequires: asciidoc
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: pacemaker-devel >= 1.1.8
+BuildRequires: python
+BuildRequires: python-modules
+Requires: pacemaker >= 1.1.8
+Provides: pacemaker-shell
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pacemaker command line interface for management and configuration.
+
+Contains the 'crm' utility which was part of Pacemaker < 1.1.8
+
+%prep
+%setup -qn %{name}-%{changeset_id}
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README doc/*.html
+%attr(755,root,root) %{_sbindir}/crm
+%{py_sitedir}/%{name}
+%{_datadir}/%{name}
+%{_mandir}/man8/crm.8*
diff --git a/crmsh-awk.patch b/crmsh-awk.patch
new file mode 100644
index 0000000..10f053e
--- /dev/null
+++ b/crmsh-awk.patch
@@ -0,0 +1,9 @@
+diff -dur crmsh-b6bb311c7bd3.orig/test/testcases/ra.filter crmsh-b6bb311c7bd3/test/testcases/ra.filter
+--- crmsh-b6bb311c7bd3.orig/test/testcases/ra.filter 2012-10-15 20:13:49.000000000 +0200
++++ crmsh-b6bb311c7bd3/test/testcases/ra.filter 2012-10-25 14:47:52.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/awk -f
++#!/bin/awk -f
+ # reduce the providers list to heartbeat and pacemaker
+ # (prevents other providers creeping in)
+ function reduce(a) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crmsh.git/commitdiff/f9bcbc19dbff7822d17cde0c9f8dd97669ba5609
More information about the pld-cvs-commit
mailing list