]> git.pld-linux.org Git - packages/crmsh.git/blob - crmsh.spec
- up to 2.1.1
[packages/crmsh.git] / crmsh.spec
1 #
2 # Note: This is not noarch, as it has %{_libdir} etc. hardcoded in *.py files
3 #
4 Summary:        Pacemaker command line interface for management and configuration
5 Name:           crmsh
6 Version:        2.1.1
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/System
10 Source0:        https://github.com/crmsh/crmsh/archive/%{version}/crmsh-%{version}.tar.gz
11 # Source0-md5:  9b1e78698e5301b40081c0261abe2c8e
12 Patch0:         %{name}-awk.patch
13 URL:            http://crmsh.github.io/
14 BuildRequires:  asciidoc
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  cluster-glue-libs-devel
18 BuildRequires:  docbook-dtd45-xml
19 BuildRequires:  pacemaker-devel >= 1.1.8
20 BuildRequires:  python
21 BuildRequires:  python-modules
22 Requires:       pacemaker >= 1.1.11
23 Requires:       python-lxml
24 Provides:       pacemaker-shell
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Pacemaker command line interface for management and configuration.
29
30 Contains the 'crm' utility which was part of Pacemaker < 1.1.8
31
32 %prep
33 %setup -q
34 %patch0 -p1
35
36 %build
37 %{__aclocal}
38 %{__autoconf}
39 %{__automake}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install DESTDIR=$RPM_BUILD_ROOT
47
48 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
49
50 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
51 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc AUTHORS ChangeLog README doc/*.html
59 %dir /etc/crm
60 %config(noreplace) %verify(not md5 mtime size) /etc/crm/crm.conf
61 %attr(755,root,root) %{_sbindir}/crm
62 %{py_sitedir}/%{name}
63 %{_datadir}/%{name}
64 %{_mandir}/man8/crm.8*
65 %{_mandir}/man8/crmsh_hb_report.8.gz
This page took 0.050056 seconds and 4 git commands to generate.