]>
Commit | Line | Data |
---|---|---|
e4545d97 ER |
1 | %include /usr/lib/rpm/macros.java |
2 | Summary: SATARAID Management Utility for Linux | |
3 | Name: SiICfg | |
4 | Version: 1.21 | |
d31a697f | 5 | Release: 0.3 |
e4545d97 ER |
6 | License: ? |
7 | Group: Development/Languages/Java | |
8 | URL: http://www.siliconimage.com/support/supportsearchresults.aspx?pid=29&cid=11&ctid=2&osid=2 | |
9 | BuildRequires: jpackage-utils | |
10 | BuildRequires: rpm-javaprov | |
11 | BuildRequires: rpmbuild(macros) >= 1.300 | |
12 | Requires: jpackage-utils | |
13 | Source0: http://www.siliconimage.com/docs/RAID_GUI_v%{version}.tar.gz | |
14 | # NoSource0-md5: 49e8716dba710a975fb1e7a28376c2be | |
d31a697f | 15 | BuildRequires: sed >= 4.0 |
e4545d97 ER |
16 | NoSource: 0 |
17 | Requires: jre > 1.4 | |
18 | ExclusiveArch: %{ix86} %{x8664} | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _appdir %{_datadir}/%{name} | |
22 | ||
23 | %description | |
24 | SATARAID Management Utility for Linux supports RAID 0, 1, and 10. | |
25 | ||
26 | Use this tool with the latest SATARAID drivers and BIOS. | |
27 | - Latest SiI3x12 driver:1.0.0.51; | |
28 | - Latest SiI3114 driver:1.0.0.8; | |
29 | - Latest SiI3x12 BIOS:4.2.50; | |
30 | - Latest SiI3114 BIOS:5.0.52; | |
31 | ||
32 | %package doc | |
33 | Summary: Manual for %{name} | |
34 | Summary(fr.UTF-8): Documentation pour %{name} | |
35 | Summary(it.UTF-8): Documentazione di %{name} | |
36 | Summary(pl.UTF-8): Podręcznik dla %{name} | |
37 | Group: Documentation | |
38 | ||
39 | %description doc | |
40 | Documentation for %{name}. | |
41 | ||
42 | %description doc -l fr.UTF-8 | |
43 | Documentation pour %{name}. | |
44 | ||
45 | %description doc -l it.UTF-8 | |
46 | Documentazione di %{name}. | |
47 | ||
48 | %description doc -l pl.UTF-8 | |
49 | Dokumentacja do %{name}. | |
50 | ||
51 | %prep | |
52 | %setup -q -n RAID_GUI | |
53 | cd %{name} | |
54 | %{__sed} -i -e 's,\r$,,' *.properties | |
55 | cat > %{name}.sh <<'EOF' | |
56 | #!/bin/sh | |
57 | cd %{_appdir} | |
d31a697f ER |
58 | %if "%{_lib}" != "lib" |
59 | export LD_LIBRARY_PATH=%{_libdir} | |
60 | %endif | |
61 | exec java -cp %{_appdir}/classes:%{_appdir}/classes/jh.jar:%{_appdir}/classes/mail.jar siicfg.SiICfgMain | |
e4545d97 ER |
62 | EOF |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_libdir},%{_bindir}} | |
67 | cd %{name} | |
68 | cp -a classes image $RPM_BUILD_ROOT%{_appdir} | |
69 | cp -a *.library *.properties vssver.scc $RPM_BUILD_ROOT%{_appdir} | |
70 | %ifarch %{ix86} | |
71 | install libSiCommand_i386.so $RPM_BUILD_ROOT%{_libdir}/libSiCommand.so | |
72 | %endif | |
73 | %ifarch %{x8664} | |
74 | install libSiCommand_x86_64.so $RPM_BUILD_ROOT%{_libdir}/libSiCommand.so | |
75 | %endif | |
76 | install %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name} | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_bindir}/%{name} | |
84 | %attr(755,root,root) %{_libdir}/libSiCommand.so | |
85 | %{_appdir} | |
86 | ||
87 | %files doc | |
88 | %defattr(644,root,root,755) | |
89 | %doc SiI_GUI.doc "SATARaid\ Manual.doc" | |
90 | %doc SiICfg/doc/* |