1 |
# $Id: smeserver-durep.spec,v 1.3 2021/02/22 19:02:29 jpp Exp $ |
# $Id: smeserver-durep.spec,v 1.11 2022/07/30 17:58:14 brianr Exp $ |
2 |
# Authority: unnilennnium |
# Authority: unnilennnium |
3 |
# Name: JP Pialasse |
# Name: JP Pialasse |
4 |
|
|
6 |
Name: %{name} |
Name: %{name} |
7 |
%define version 1.5.0 |
%define version 1.5.0 |
8 |
Version: %{version} |
Version: %{version} |
9 |
%define release 7 |
%define release 15 |
10 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
11 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch |
Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch |
17 |
Patch3: smeserver-durep-1.5.0-bz10893-noreboot.patch |
Patch3: smeserver-durep-1.5.0-bz10893-noreboot.patch |
18 |
Patch4: smeserver-durep-1.5.0-permissions.patch |
Patch4: smeserver-durep-1.5.0-permissions.patch |
19 |
|
Patch5: smeserver-durep-1.5.0-manager2.patch |
20 |
|
Patch6: smeserver-durep-1.5.0-Add-class-to-div-for-AdminLTE.patch |
21 |
|
Patch7: smeserver-durep-1.5.0-bz11841_localisation_dir.patch |
22 |
|
Patch8: smeserver-durep-1.5.0-bz11975.patch |
23 |
|
Patch9: smeserver-durep-1.5.0-bz12007-backup.patch |
24 |
|
Patch10: smeserver-durep-1.5.0-bz12342_sm2_bar_image.patch |
25 |
|
|
26 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
27 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
33 |
Obsoletes: smeserver-durep-saco |
Obsoletes: smeserver-durep-saco |
34 |
Obsoletes: e-smith-durep |
Obsoletes: e-smith-durep |
35 |
|
|
36 |
|
AutoReqProv: no |
37 |
|
|
38 |
%changelog |
%changelog |
39 |
|
* Wed Mar 22 2023 Michel Begue <mab974@misouk.com> 1.5.0-15.sme |
40 |
|
- allow access to bar.png image in SM2 [SME: XXXXX] |
41 |
|
|
42 |
|
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-14.sme |
43 |
|
- Re-build and link to latest devtools [SME: 11997] |
44 |
|
|
45 |
|
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
46 |
|
- add to core backup [SME: 12007] |
47 |
|
|
48 |
|
* Wed May 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme |
49 |
|
- allow access to user with userpanel [SME: 11975] |
50 |
|
|
51 |
|
* Sat Jan 08 2022 Michel Begue <mab974@misouk.com> 1.5.0-11.sme |
52 |
|
- Re-build and link to latest devtools wrong localisation directory [SME: 11841] |
53 |
|
|
54 |
|
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-10.sme |
55 |
|
- Add-class-to-div-for-AdminLTE [SME: 11835] |
56 |
|
|
57 |
|
* Thu Jun 03 2021 Michel Begue <mab974@gmail.com> 1.5.0-9.sme |
58 |
|
- first use with smeserver-manager [SME: 11618] |
59 |
|
|
60 |
|
* Thu Mar 04 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-8.sme |
61 |
|
- Re-build and link to latest devtools permissions of cgi inside spec file too |
62 |
|
|
63 |
* Thu Mar 04 2021 Michel Begue <mab974@gmail.com> 1.5.0-7.sme |
* Thu Mar 04 2021 Michel Begue <mab974@gmail.com> 1.5.0-7.sme |
64 |
- fix permissions of cgi and data files |
- Re-build and link to latest devtools permissions of cgi and data files |
65 |
|
|
66 |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-6.sme |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-6.sme |
67 |
- add smeserver-durep-update event [SME: 10893] |
- add smeserver-durep-update event [SME: 10893] |
89 |
- TODO cleaning spec file post and filelist chmod |
- TODO cleaning spec file post and filelist chmod |
90 |
|
|
91 |
* Mon Sep 10 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme |
* Mon Sep 10 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme |
92 |
- fix do not copy files and filelist [SME 7098] |
- Re-build and link to latest devtools do not copy files and filelist [SME 7098] |
93 |
- patch df of plugged disk |
- patch df of plugged disk |
94 |
|
|
95 |
* Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme |
* Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme |
114 |
%patch2 -p1 |
%patch2 -p1 |
115 |
%patch3 -p1 |
%patch3 -p1 |
116 |
%patch4 -p1 |
%patch4 -p1 |
117 |
|
%patch5 -p1 |
118 |
|
%patch6 -p1 |
119 |
|
%patch7 -p1 |
120 |
|
%patch8 -p1 |
121 |
|
%patch9 -p1 |
122 |
|
%patch10 -p1 |
123 |
|
|
124 |
%build |
%build |
125 |
perl createlinks |
perl createlinks |
129 |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
130 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
131 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
132 |
--file "/usr/local/bin/durep" '%attr(0755,root,root)' \ |
--file "/usr/local/bin/durep" 'attr(0755,root,root)' \ |
133 |
--file "/usr/sbin/durep.daily" '%attr(0755,root,root)' \ |
--file "/usr/sbin/durep.daily" 'attr(0755,root,root)' \ |
134 |
|
--file '/etc/e-smith/web/panels/manager/html/durep/durep.cgi' 'attr(0750,root,admin)' \ |
135 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
136 |
|
|
137 |
|
|
148 |
%preun -p /bin/sh |
%preun -p /bin/sh |
149 |
|
|
150 |
%postun -p /bin/sh |
%postun -p /bin/sh |
151 |
|
if [ $1 = 0 ] ; then |
152 |
|
/bin/rm -f /usr/share/smanager/themes/default/images/bar.png |
153 |
|
fi |
154 |
|
true |