]>
Commit | Line | Data |
---|---|---|
cf87ffbe ER |
1 | # TODO |
2 | # - split based on provided spec.in: devel, fish, utils ? | |
3 | # - additional split by requires/services (watchdog) | |
4 | Summary: GNU FreeIPMI | |
5 | Name: freeipmi | |
6 | Version: 0.1.3 | |
7 | Release: 0.5 | |
8 | License: BSD | |
9 | Group: Applications/System | |
10 | Source0: ftp://ftp.californiadigital.com/pub/freeipmi/download/0.1.3/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: c4b088f806253971759c60263722e63d | |
12 | URL: http://www.gnu.org/software/freeipmi/ | |
13 | #BuildRequires: autoconf >= 2.50 | |
14 | #BuildRequires: automake | |
15 | #BuildRequires: libltdl-devel | |
16 | #BuildRequires: libtool | |
17 | #Obsoletes: ipmitool-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | # XXX don't translate before subpackages are done | |
21 | %description | |
22 | The GNU FreeIPMI system provides "Remote-Console" (out-of-band) and | |
23 | "System Management Software" (in-band) based on IPMI v1.5/2.0 | |
24 | specification. This project includes: | |
25 | - KCS, SMIC, SSIF, LAN Drivers and C Library (libfreeipmi) | |
26 | - FreeIPMI SHell (fish) | |
27 | - Watchdog Daemon (bmc-watchdog) | |
28 | - Sensors (sensors) | |
29 | - System Event Log (sel) | |
30 | - BMC Info (bmc-info) | |
31 | - BMC Config (bmc-config) | |
32 | - IPMI Power (ipmipower) | |
33 | - IPMI Ping (ipmiping) | |
34 | - RMCP Ping (rmcpping) | |
35 | ||
36 | #%package fish | |
37 | #Summary: FreeIPMI Shell | |
38 | #Group: Applications/System | |
39 | #Requires: %{name} = %{version}-%{release} | |
40 | # | |
41 | #%description fish | |
42 | #Fish provides Shell, Extension/Plug-in and scripting interface. As a | |
43 | #shell, User has access to both in-band and out-of-band access to the | |
44 | #host BMC through a rich set of IPMI commands. | |
45 | ||
46 | %package devel | |
47 | Summary: Development package for FreeIPMI | |
48 | Group: Development/Libraries | |
49 | ||
50 | %description devel | |
51 | Development package for FreeIPMI. This package includes the FreeIPMI | |
52 | header files and static libraries. | |
53 | ||
54 | %package static | |
55 | Summary: Static FreeIPMI library | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static FreeIPMI library. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %configure | |
67 | ||
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install -j1 \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | # TODO: patch Makefile.am instead | |
77 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/freeipmi | |
78 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc doc/BUGS NEWS TODO AUTHORS README INSTALL ChangeLog | |
89 | %doc doc/ipmi-over-ts2000.texi | |
90 | %doc COPYING.* DISCLAIMER.* | |
91 | %{_sysconfdir}/init.d/bmc-watchdog | |
92 | %dir /var/lib/freeipmi | |
93 | /var/lib/freeipmi/ipckey | |
94 | %dir /var/log/freeipmi | |
95 | %{_libdir}/libfreeipmi.so.1.0.0 | |
96 | %{_libdir}/libfreeipmi.so.1 | |
97 | %attr(755,root,root) %{_sbindir}/rmcpping | |
98 | %attr(755,root,root) %{_sbindir}/ipmiping | |
99 | %attr(755,root,root) %{_sbindir}/ipmipower | |
100 | %attr(755,root,root) %{_sbindir}/bmc-watchdog | |
101 | %{_datadir}/fish/extensions | |
102 | %{_mandir}/man5/* | |
103 | %{_mandir}/man8/* | |
104 | %{_datadir}/info/freeipmi.info.* | |
105 | ||
106 | #%files fish | |
107 | #%defattr(644,root,root,755) | |
108 | %dir %{_sysconfdir}/fish | |
109 | %config(noreplace) %{_sysconfdir}/fish/sensors-conf.scm | |
110 | %config(noreplace) %{_sysconfdir}/fish/fish.scm | |
111 | %attr(755,root,root) %{_sbindir}/fish | |
112 | %attr(755,root,root) %{_sbindir}/bmc-config | |
113 | %attr(755,root,root) %{_sbindir}/bmc-info | |
114 | %attr(755,root,root) %{_sbindir}/sel | |
115 | %attr(755,root,root) %{_sbindir}/sensors | |
116 | %dir %{_datadir}/fish | |
117 | %{_mandir}/man1/* | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %doc doc/examples/ | |
122 | %doc doc/{ipmi-network-layout.fig,freeipmi-hackers-intro.sxi} | |
123 | %{_includedir}/freeipmi | |
124 | %{_libdir}/libfreeipmi.la | |
125 | %{_libdir}/libfreeipmi.so | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libfreeipmi.a |