2 # Note: This is not noarch, as it has %{_libdir} etc. hardcoded in *.py files
4 %define changeset_id b6bb311c7bd3
6 Summary: Pacemaker command line interface for management and configuration
11 Group: Applications/System
12 Source0: http://hg.savannah.gnu.org/hgweb/crmsh/archive/%{changeset_id}.tar.bz2
13 # Source0-md5: f4d0a4d30498c3b5ee73ff8b70eb3005
14 Patch0: %{name}-awk.patch
15 URL: https://savannah.nongnu.org/projects/crmsh/
16 BuildRequires: asciidoc
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: pacemaker-devel >= 1.1.8
21 BuildRequires: python-modules
22 Requires: pacemaker >= 1.1.8
23 Provides: pacemaker-shell
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Pacemaker command line interface for management and configuration.
29 Contains the 'crm' utility which was part of Pacemaker < 1.1.8
32 %setup -qn %{name}-%{changeset_id}
43 rm -rf $RPM_BUILD_ROOT
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
47 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
49 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
50 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc AUTHORS ChangeLog README doc/*.html
58 %attr(755,root,root) %{_sbindir}/crm
61 %{_mandir}/man8/crm.8*