]> git.pld-linux.org Git - packages/crmsh.git/commitdiff
New package.
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 25 Oct 2012 13:31:28 +0000 (15:31 +0200)
committerJacek Konieczny <jajcus@jajcus.net>
Thu, 25 Oct 2012 13:31:28 +0000 (15:31 +0200)
crmsh-awk.patch [new file with mode: 0644]
crmsh.spec [new file with mode: 0644]

diff --git a/crmsh-awk.patch b/crmsh-awk.patch
new file mode 100644 (file)
index 0000000..10f053e
--- /dev/null
@@ -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) {
diff --git a/crmsh.spec b/crmsh.spec
new file mode 100644 (file)
index 0000000..5c9d404
--- /dev/null
@@ -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*
This page took 0.089068 seconds and 4 git commands to generate.