]> git.pld-linux.org Git - packages/crmsh.git/blob - crmsh.spec
New package.
[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 b6bb311c7bd3
5 #
6 Summary:        Pacemaker command line interface for management and configuration
7 Name:           crmsh
8 Version:        1.2.1
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:  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
20 BuildRequires:  python
21 BuildRequires:  python-modules
22 Requires:       pacemaker >= 1.1.8
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 -qn %{name}-%{changeset_id}
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 %attr(755,root,root) %{_sbindir}/crm
59 %{py_sitedir}/%{name}
60 %{_datadir}/%{name}
61 %{_mandir}/man8/crm.8*
This page took 0.071628 seconds and 3 git commands to generate.