]> git.pld-linux.org Git - packages/crmsh.git/blob - crmsh.spec
92575d6f2baa4e06041033aa9aeac657645d8cbd
[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.0
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:  2b7c39a561f59d146882f4c020fa9060
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 Provides:       pacemaker-shell
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Pacemaker command line interface for management and configuration.
28
29 Contains the 'crm' utility which was part of Pacemaker < 1.1.8
30
31 %prep
32 %setup -q
33 %patch0 -p1
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__automake}
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46
47 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
48
49 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
50 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc AUTHORS ChangeLog README doc/*.html
58 %dir /etc/crm
59 %config(noreplace) %verify(not md5 mtime size) /etc/crm/crm.conf
60 %attr(755,root,root) %{_sbindir}/crm
61 %{py_sitedir}/%{name}
62 %{_datadir}/%{name}
63 %{_mandir}/man8/crm.8*
64 %{_mandir}/man8/crmsh_hb_report.8.gz
This page took 0.032308 seconds and 2 git commands to generate.