1 |
# $Id: smeserver-usbdisksmanager.spec,v 1.25 2012/03/20 15:39:31 slords Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
4 |
|
5 |
Summary: smeserver-usbdisksmanager |
6 |
%define name smeserver-usbdisksmanager |
7 |
|
8 |
# Variable representing installation directories: |
9 |
%define installdir_usbdisksmanager /etc/e-smith/web/functions |
10 |
%define installdir_usbdisks_sh /usr/sbin |
11 |
|
12 |
Name: %{name} |
13 |
%define version 1.0 |
14 |
%define release 1 |
15 |
Version: %{version} |
16 |
Release: %{release}%{?dist} |
17 |
License: GNU GPL version 2 |
18 |
Group: SMEserver/addon |
19 |
Source: %{name}-%{version}.tgz |
20 |
BuildRoot: /var/tmp/e-smith-buildroot |
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
BuildArchitectures: noarch |
23 |
Requires: smeserver-release >= 8.0 |
24 |
AutoReqProv: no |
25 |
|
26 |
%changelog |
27 |
* Sat Jun 16 2012 JP PIALASSE tests@pialasse.com 1.0-1.sme |
28 |
- Initial version |
29 |
|
30 |
%description |
31 |
Web interface to manage removable hard drive, and auto mount to a point script |
32 |
|
33 |
%prep |
34 |
%setup |
35 |
|
36 |
%install |
37 |
|
38 |
/bin/rm -rf $RPM_BUILD_ROOT |
39 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
40 |
/bin/rm -f %{name}-%{version}-filelist |
41 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
42 |
|
43 |
%files -f %{name}-%{version}-filelist |
44 |
%defattr(750,root,root) |
45 |
%{installdir_usbdisks_sh}/usbdisks.sh |
46 |
%defattr(4750,root,admin) |
47 |
%{installdir_usbdisksmanager}/usbdisks |
48 |
|
49 |
%clean |
50 |
rm -rf $RPM_BUILD_ROOT |
51 |
|