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