forked from cea-hpc/shine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shine.spec
63 lines (52 loc) · 1.7 KB
/
shine.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
%define vimdatadir %{_datadir}/vim/vimfiles
Name: shine
Version: 1.5
Release: 1%{?dist}
Vendor: CEA
License: GPLv2+
Summary: Lustre administration utility
Url: https://github.com/cea-hpc/shine
Source0: https://github.com/cea-hpc/shine/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Group: Development/Libraries
BuildArch: noarch
Requires: clustershell >= 1.5.1
%description
Python-based Lustre utility to easily control Lustre filesystem
devices, mount points and routers.
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# move 'shine' into /usr/sbin
mv %{buildroot}/usr/bin %{buildroot}/usr/sbin
# man pages
install -d %{buildroot}/%{_mandir}/{man1,man5}
install -p -m 0644 doc/shine.1 %{buildroot}/%{_mandir}/man1/
install -p -m 0644 doc/shine.conf.5 %{buildroot}/%{_mandir}/man5/
%files
%defattr(-,root,root)
%{_sysconfdir}/shine/*.conf.example
%config(noreplace) %{_sysconfdir}/shine/*.conf
%config(noreplace) %{_sysconfdir}/shine/models/*.lmf
%{_sbindir}/shine
%{python_sitelib}/Shine/
%{python_sitelib}/shine-*-py?.?.egg-info
%{vimdatadir}/ftdetect/*.vim
%{vimdatadir}/syntax/*.vim
%doc LICENSE README.md ChangeLog
%{_mandir}/man1/shine.1*
%{_mandir}/man5/shine.conf.5*
%{_usr}/share/shine/shine.init.redhat
%dir %{_localstatedir}/cache/shine/conf
%{_localstatedir}/cache/shine/conf/README
%changelog
* Wed May 24 2017 <[email protected]> - 1.5-1
- Update to shine 1.5
* Wed Apr 29 2015 <[email protected]> - 1.4-1
- Update to shine 1.4
* Tue Mar 11 2014 <[email protected]> - 1.3.1-1
- Update to shine 1.3.1
* Thu Oct 10 2013 <[email protected]> - 1.3-1
- Update to shine 1.3