forked from DMTF/python-redfish-utility
-
Notifications
You must be signed in to change notification settings - Fork 41
/
rdmc.spec12.in
76 lines (59 loc) · 1.83 KB
/
rdmc.spec12.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
#
# spec file for package ilorest (Version %VERSION%)
#
# norootforbuild
Name: ilorest
License: Copyright 2016-2022 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
%global debug_package %{nil}
%prep
%setup -n ilorest-%{version}
%build
mv rdmc-pyinstaller-lin.spc rdmc-pyinstaller-lin.spec
/usr/local/python3.12/bin/pyinstaller rdmc-pyinstaller-lin.spec
cp dist/ilorest ilorest
%install
install -D -m 0755 dist/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%{_libdir}/
install -D -m 0666 ./externals/*.so $RPM_BUILD_ROOT%{_libdir}/
%post
#rm -f %{_sbindir}/ilorest
%postun
#rm -f %{_sbindir}/ilorest
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_sbindir}/%{name}
%attr(644, root, root) %{_libdir}/ilorest_chif.so
%config %{_sysconfdir}/%{name}/*
%dir %{_sysconfdir}/%{name}
%defattr(444, root, root)
%changelog
* Fri Mar 26 2021 rajeevalochana.kallur@hpe.com
- Modified
* Thu Jan 19 2017 prithvi.subrahmanya.v@hpe.com
- Added post section.
* Mon Dec 07 2015 jack.g.garcia@hpe.com
- Changes for the new code.
* Fri Jun 19 2014 jorge.cisneros@hp.com
- Changes for the new code.
* Thu Jun 01 2014 james.ayvaz@hp.com
- initial version %VERSION%