-
Notifications
You must be signed in to change notification settings - Fork 1
/
clustershell.spec
158 lines (123 loc) · 5.85 KB
/
clustershell.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: clustershell
Version: 1.6
Release: 3%{?dist}
Summary: Python framework for efficient cluster administration
Group: System Environment/Base
License: CeCILL-C
URL: http://clustershell.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: python-devel python-setuptools
%description
Tools and event-based Python library to execute commands on cluster nodes in
parallel depending on selected engine and worker mechanisms. The library
provides also advanced NodeSet and NodeGroups handling methods to ease and
improve administration of large compute clusters or server farms. Three
convenient command line utilities, clush, clubak and nodeset, allow traditional
shell scripts to benefit some useful features offered by the library.
%package -n vim-%{name}
Summary: VIM files for ClusterShell
Group: System Environment/Base
Requires: clustershell = %{version}-%{release}, vim-common
%description -n vim-%{name}
Syntax highlighting in the VIM editor for ClusterShell configuration files.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# config files
install -d %{buildroot}/%{_sysconfdir}/clustershell/groups.conf.d
install -p -m 0644 conf/*.conf conf/groups %{buildroot}/%{_sysconfdir}/clustershell/
install -p -m 0644 conf/groups.conf.d/README conf/groups.conf.d/*.conf.example %{buildroot}/%{_sysconfdir}/clustershell/groups.conf.d
# man pages
install -d %{buildroot}/%{_mandir}/{man1,man5}
install -p -m 0644 doc/man/man1/clubak.1 %{buildroot}/%{_mandir}/man1/
install -p -m 0644 doc/man/man1/clush.1 %{buildroot}/%{_mandir}/man1/
install -p -m 0644 doc/man/man1/nodeset.1 %{buildroot}/%{_mandir}/man1/
install -p -m 0644 doc/man/man5/clush.conf.5 %{buildroot}/%{_mandir}/man5/
install -p -m 0644 doc/man/man5/groups.conf.5 %{buildroot}/%{_mandir}/man5/
# docs and example scripts
install -d %{buildroot}/%{_defaultdocdir}/%{name}-%{version}/examples
install -p -m 0644 README ChangeLog Licence_CeCILL-C_V1-en.txt Licence_CeCILL-C_V1-fr.txt %{buildroot}/%{_defaultdocdir}/%{name}-%{version}/
install -p -m 0755 doc/examples/*.py %{buildroot}/%{_defaultdocdir}/%{name}-%{version}/examples/
# vim addons
%define vimdatadir %{_datadir}/vim/vimfiles
install -d %{buildroot}/%{vimdatadir}/{ftdetect,syntax}
install -p -m 0644 doc/extras/vim/ftdetect/clustershell.vim %{buildroot}/%{vimdatadir}/ftdetect/
install -p -m 0644 doc/extras/vim/syntax/clushconf.vim %{buildroot}/%{vimdatadir}/syntax/
install -p -m 0644 doc/extras/vim/syntax/groupsconf.vim %{buildroot}/%{vimdatadir}/syntax/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc %{_defaultdocdir}/%{name}-%{version}/
%{_mandir}/man1/clubak.1*
%{_mandir}/man1/clush.1*
%{_mandir}/man1/nodeset.1*
%{_mandir}/man5/clush.conf.5*
%{_mandir}/man5/groups.conf.5*
%dir %{_sysconfdir}/clustershell
%config(noreplace) %{_sysconfdir}/clustershell/clush.conf
%config(noreplace) %{_sysconfdir}/clustershell/groups
%config(noreplace) %{_sysconfdir}/clustershell/groups.conf
%dir %{_sysconfdir}/clustershell/groups.conf.d
%doc %{_sysconfdir}/clustershell/groups.conf.d/README
%doc %{_sysconfdir}/clustershell/groups.conf.d/*.conf.example
%{python_sitelib}/ClusterShell/
%{python_sitelib}/ClusterShell-*-py?.?.egg-info
%{_bindir}/clubak
%{_bindir}/clush
%{_bindir}/nodeset
%files -n vim-%{name}
%defattr(-,root,root,-)
%{vimdatadir}/ftdetect/clustershell.vim
%{vimdatadir}/syntax/clushconf.vim
%{vimdatadir}/syntax/groupsconf.vim
%changelog
* Tue Apr 23 2013 David Hrbáč <[email protected]> - 1.6-3
- import and rebuild
* Wed Feb 13 2013 Fedora Release Engineering <[email protected]> - 1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jul 18 2012 Fedora Release Engineering <[email protected]> - 1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Apr 08 2012 Stephane Thiell <[email protected]> 1.6-1
- update to 1.6
* Thu Jun 09 2011 Stephane Thiell <[email protected]> 1.5.1-1
- update to 1.5.1
* Wed Jun 08 2011 Stephane Thiell <[email protected]> 1.5-1
- update to 1.5
* Sat Mar 19 2011 Stephane Thiell <[email protected]> 1.4.3-1
- update to 1.4.3
* Tue Mar 15 2011 Stephane Thiell <[email protected]> 1.4.2-1
- update to 1.4.2
* Sun Feb 13 2011 Stephane Thiell <[email protected]> 1.4.1-1
- update to 1.4.1
* Sat Jan 15 2011 Stephane Thiell <[email protected]> 1.4-1
- update to 1.4
* Wed Oct 20 2010 Stephane Thiell <[email protected]> 1.3.3-1
- update to 1.3.3
* Fri Sep 10 2010 Stephane Thiell <[email protected]> 1.3.2-1
- renamed Vim subpackage to vim-clustershell
- update to 1.3.2
* Sun Sep 05 2010 Stephane Thiell <[email protected]> 1.3.1-2
- added -vim subpackage for .vim files
* Fri Sep 03 2010 Stephane Thiell <[email protected]> 1.3.1-1
- removed -n from setup line
- own clustershell config directory for proper uninstall
- install vim syntax addons in vimfiles, thus avoiding vim version detection
- update to 1.3.1
* Sun Aug 22 2010 Stephane Thiell <[email protected]> 1.3-4
- fixed BuildRoot tag in accordance with EPEL guidelines
- python_sitelib definition: prefer global vs define
- preserve timestamps and fix permissions when installing files
* Sat Aug 21 2010 Stephane Thiell <[email protected]> 1.3-3
- use a full URL to the package in Source0
* Fri Aug 20 2010 Stephane Thiell <[email protected]> 1.3-2
- various improvements per first review request
* Thu Aug 19 2010 Stephane Thiell <[email protected]> 1.3-1
- initial build candidate for Fedora