]>
Commit | Line | Data |
---|---|---|
8f2fe70f ER |
1 | Summary: Utility to control Areca SATA RAID controllers |
2 | Name: areca-cli | |
3 | Version: 1.86 | |
4 | Release: 1 | |
5 | # http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/Downloadable_Software_Licenses.zip | |
6 | # Linux Exception: redistributable if not modified | |
7 | License: License for Customer Use of Areca Software | |
8 | Group: Base | |
9 | Source0: http://www.areca.us/support/s_linux/cli/i386/cli32.zip | |
10 | # Source0-md5: - | |
11 | Source1: http://www.areca.us/support/s_linux/cli/x86_64/cli64.zip | |
12 | # Source1-md5: - | |
13 | Source2: http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/CLIManual.zip | |
14 | # Source2-md5: - | |
15 | URL: http://www.areca.us/support/main.htm | |
16 | ExclusiveArch: %{ix86} %{x8664} | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Utility to control Areca SATA RAID controllers. | |
21 | ||
22 | %prep | |
23 | %setup -qcT -a2 | |
24 | %ifarch %{ix86} | |
25 | %{__unzip} -qq %{SOURCE0} | |
26 | %endif | |
27 | %ifarch %{x8664} | |
28 | %{__unzip} -qq %{SOURCE1} | |
29 | %endif | |
30 | chmod a+rx cli* | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{_sbindir} | |
35 | install -p cli* $RPM_BUILD_ROOT%{_sbindir}/%{name} | |
36 | ln -s %{name} $RPM_BUILD_ROOT%{_sbindir}/$(echo cli*) | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %attr(755,root,root) %{_sbindir}/%{name} | |
44 | # this likely conflicts oneday | |
45 | %attr(755,root,root) %{_sbindir}/cli* |