1 |
brianr |
1.2 |
# $Id: smeserver-usbdisksmanager.spec,v 1.1 2020/10/29 19:30:02 brianr Exp $ |
2 |
brianr |
1.1 |
# 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.2 |
14 |
brianr |
1.2 |
%define release 8 |
15 |
brianr |
1.1 |
Version: %{version} |
16 |
|
|
Release: %{release}%{?dist} |
17 |
|
|
License: GNU GPL version 2 |
18 |
|
|
Group: SMEserver/addon |
19 |
|
|
Source: %{name}-%{version}.tar.gz |
20 |
|
|
Patch0: smeserver-usbdisksmanager-1.2-locale-2016-03-09.patch |
21 |
|
|
Patch1: smeserver-usbdisksmanager-1.2-sme9fix.patch |
22 |
|
|
Patch2: smeserver-usbdisksmanager-1.2-sme9fix2.patch |
23 |
|
|
Patch3: smeserver-usbdisksmanager-1.2-bz10294-tidy-options.patch |
24 |
brianr |
1.2 |
Patch4: smeserver-usbdisksmanager-1.2-Add-link-in-createlinks-to-wrapper.patch |
25 |
|
|
|
26 |
brianr |
1.1 |
BuildRoot: /var/tmp/e-smith-buildroot |
27 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
28 |
|
|
BuildArchitectures: noarch |
29 |
|
|
Requires: smeserver-release >= 8.0 |
30 |
|
|
AutoReqProv: no |
31 |
|
|
|
32 |
|
|
%changelog |
33 |
brianr |
1.2 |
* Thu Oct 29 2020 Brian Read <brianr@bjsystems.co.uk> 1.2-8.sme |
34 |
|
|
- Initial import into SME10 tree [SME: 11076] |
35 |
|
|
- Add link to wrapper in createlinks |
36 |
|
|
|
37 |
brianr |
1.1 |
* Sun Jan 13 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-7.sme |
38 |
|
|
- tidy mount options to remove managed and pamconsole options [SME: 10294] |
39 |
|
|
|
40 |
|
|
* Sat Mar 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme |
41 |
|
|
- fix mount does not work [SME: 8597] |
42 |
|
|
- new default for mounting options |
43 |
|
|
|
44 |
|
|
* Fri Mar 24 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme |
45 |
|
|
- fix multiple issues for SME9 [SME: 8597] |
46 |
|
|
|
47 |
|
|
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.2-3.sme |
48 |
|
|
- apply locale 2016-03-09 patch |
49 |
|
|
|
50 |
|
|
* Fri Sep 25 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-2.sme |
51 |
|
|
- Initial release to contribs9 |
52 |
|
|
|
53 |
|
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.0-3.sme |
54 |
|
|
- apply locale 2013-07-14 patch |
55 |
|
|
* Tue Jun 26 2012 JP PIALASSE tests@pialasse.com 1.0-2.sme |
56 |
|
|
- manager interface display fix [SME 6989] |
57 |
|
|
- blkid cache removed for manager listing [SME 6990] |
58 |
|
|
- Apply local 2012-06-26 |
59 |
|
|
* Sat Jun 16 2012 JP PIALASSE tests@pialasse.com 1.0-1.sme |
60 |
|
|
- Initial version |
61 |
|
|
|
62 |
|
|
%description |
63 |
|
|
Web interface to manage removable hard drive, and auto mount to a point script |
64 |
|
|
|
65 |
|
|
%prep |
66 |
|
|
%setup |
67 |
|
|
%patch0 -p1 |
68 |
|
|
%patch1 -p1 |
69 |
|
|
%patch2 -p1 |
70 |
|
|
%patch3 -p1 |
71 |
brianr |
1.2 |
%patch4 -p1 |
72 |
|
|
|
73 |
|
|
%build |
74 |
|
|
perl createlinks |
75 |
brianr |
1.1 |
|
76 |
|
|
%install |
77 |
|
|
|
78 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
79 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
80 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
81 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
82 |
|
|
|
83 |
|
|
%files -f %{name}-%{version}-filelist |
84 |
|
|
%defattr(750,root,root) |
85 |
|
|
%{installdir_usbdisks_sh}/usbdisks.sh |
86 |
|
|
%defattr(4750,root,admin) |
87 |
|
|
%{installdir_usbdisksmanager}/usbdisks |
88 |
|
|
|
89 |
|
|
%clean |
90 |
|
|
rm -rf $RPM_BUILD_ROOT |
91 |
|
|
|