]> git.pld-linux.org Git - packages/SiICfg.git/blob - SiICfg.spec
53c9df605432e994d88315d145afe21c96a0f221
[packages/SiICfg.git] / SiICfg.spec
1 %include        /usr/lib/rpm/macros.java
2 Summary:        SATARAID Management Utility for Linux
3 Name:           SiICfg
4 Version:        1.21
5 Release:        0.1
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
15 NoSource:       0
16 Requires:       jre > 1.4
17 ExclusiveArch:  %{ix86} %{x8664}
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _appdir %{_datadir}/%{name}
21
22 %description
23 SATARAID Management Utility for Linux supports RAID 0, 1, and 10.
24
25 Use this tool with the latest SATARAID drivers and BIOS.
26 - Latest SiI3x12 driver:1.0.0.51;
27 - Latest SiI3114 driver:1.0.0.8;
28 - Latest SiI3x12 BIOS:4.2.50;
29 - Latest SiI3114 BIOS:5.0.52;
30
31 %package doc
32 Summary:        Manual for %{name}
33 Summary(fr.UTF-8):      Documentation pour %{name}
34 Summary(it.UTF-8):      Documentazione di %{name}
35 Summary(pl.UTF-8):      PodrÄ™cznik dla %{name}
36 Group:          Documentation
37
38 %description doc
39 Documentation for %{name}.
40
41 %description doc -l fr.UTF-8
42 Documentation pour %{name}.
43
44 %description doc -l it.UTF-8
45 Documentazione di %{name}.
46
47 %description doc -l pl.UTF-8
48 Dokumentacja do %{name}.
49
50 %prep
51 %setup -q -n RAID_GUI
52 cd %{name}
53 %{__sed} -i -e 's,\r$,,' *.properties
54 cat > %{name}.sh <<'EOF'
55 #!/bin/sh
56 cd %{_appdir}
57 exec java siicfg.SiICfgMain
58 EOF
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_appdir},%{_libdir},%{_bindir}}
63 cd %{name}
64 cp -a classes image $RPM_BUILD_ROOT%{_appdir}
65 cp -a *.library *.properties vssver.scc $RPM_BUILD_ROOT%{_appdir}
66 %ifarch %{ix86}
67 install libSiCommand_i386.so $RPM_BUILD_ROOT%{_libdir}/libSiCommand.so
68 %endif
69 %ifarch %{x8664}
70 install libSiCommand_x86_64.so $RPM_BUILD_ROOT%{_libdir}/libSiCommand.so
71 %endif
72 install %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_bindir}/%{name}
80 %attr(755,root,root) %{_libdir}/libSiCommand.so
81 %{_appdir}
82
83 %files doc
84 %defattr(644,root,root,755)
85 %doc SiI_GUI.doc "SATARaid\ Manual.doc"
86 %doc SiICfg/doc/*
This page took 0.060366 seconds and 3 git commands to generate.