forked from HewlettPackard/python-redfish-utility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdmc.spec.in
84 lines (66 loc) · 2.19 KB
/
rdmc.spec.in
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
%global __os_install_post %{nil}
#
# spec file for package ilorest (Version %VERSION%)
#
# norootforbuild
Name: ilorest
License: Copyright 2016-2021 Hewlett Packard Enterprise Development LP
Group: System/Configuration/Packaging
AutoReqProv: on
Version: %VERSION%
Release: %RELEASE%
Source0: ilorest-%{version}.tar.bz2
Url: https://www.hpe.com/info/restfulapi
Vendor: Hewlett Packard Enterprise
Packager: Hewlett Packard Enterprise
Summary: RESTful Interface Tool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRequires: which
%description
Command line interface for managing HPE ProLiant Servers
Authors:
--------
Hewlett Packard Enterprise
%prep
%setup -n ilorest-%{version}
%build
mv rdmc-pyinstaller-lin.spc rdmc-pyinstaller-lin.spec
/usr/local/python3.8/bin/pyinstaller rdmc-pyinstaller-lin.spec
cp dist/ilorest ilorest
%install
install -D -m 0755 ilorest $RPM_BUILD_ROOT%{_sbindir}/ilorest
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ilorest
install -D -m 0644 rdmc-linux.conf $RPM_BUILD_ROOT%{_sysconfdir}/ilorest/redfish.conf
#mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
#install -D -m 0644 docs/sphinx/_build/man/ilorest.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
#mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/*
#install -D -m 0644 etc/bash_completion.d/ilorest.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
mkdir -p $RPM_BUILD_ROOT%{_libdir}/
install -D -m 0666 ./externals/*.so $RPM_BUILD_ROOT%{_libdir}/
%post
#rm -f %{_sbindir}/hprest
%postun
#rm -f %{_sbindir}/hprest
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_sbindir}/%{name}
%attr(644, root, root) %{_libdir}/ilorest_chif.so
%config %{_sysconfdir}/%{name}/*
#%doc README
#%doc %_mandir/man8/ilorest.8.gz
%dir %{_sysconfdir}/%{name}
#%{_sysconfdir}/bash_completion.d/*
%defattr(444, root, root)
%changelog
* Fri Mar 26 2021 [email protected]
- Modified
* Thu Jan 19 2017 [email protected]
- Added post section.
* Mon Dec 07 2015 [email protected]
- Changes for the new code.
* Fri Jun 19 2014 [email protected]
- Changes for the new code.
* Thu Jun 01 2014 [email protected]
- initial version %VERSION%