1 |
stephdl |
1.1 |
# $Id: smeserver-updates.spec,v 1.3 2013/06/26 13:28:17 unnilennium Exp $ |
2 |
|
|
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
|
|
Summary: Update system panel for SMEserver รง |
6 |
|
|
%define name smeserver-updates |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 1.4 |
9 |
|
|
%define release 2 |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: System/Administration |
14 |
|
|
Source: %{name}-%{version}.tar.gz |
15 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
Requires: e-smith-release >= 9.0 |
18 |
|
|
BuildRequires: e-smith-devtools |
19 |
|
|
AutoReqProv: no |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
Update system panel for sme server 9 |
23 |
|
|
permitting the uploading and installing of .rpms |
24 |
|
|
|
25 |
|
|
%changelog |
26 |
|
|
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-2.sme |
27 |
|
|
- Initial release to contribs9 |
28 |
|
|
|
29 |
|
|
* Mon Jun 23 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4-1.sme |
30 |
|
|
- Initial release to sme9 |
31 |
|
|
|
32 |
|
|
* Wed Jun 26 2013 JP Pialasse <tests@pialasse.com> 1.2-5.sme |
33 |
|
|
- fixing spec file |
34 |
|
|
|
35 |
|
|
* Tue Jun 25 2013 JP Pialasse <tests@pialasse.com> 1.2-4.sme |
36 |
|
|
- fix yum path [SME: 7478] |
37 |
|
|
- patch0 |
38 |
|
|
|
39 |
|
|
* Tue Jan 23 2007 Stephen Noble <support@dungog.net> |
40 |
|
|
- install with 'yum localinstall' |
41 |
|
|
- [1.2-3] |
42 |
|
|
|
43 |
|
|
* Mon Mar 13 2006 Stephen Noble <support@dungog.net> |
44 |
|
|
- sme7 version |
45 |
|
|
- uploading and installing an rpm fixed |
46 |
|
|
- [1.2-2] |
47 |
|
|
|
48 |
|
|
* Tue Dec 13 2005 Stephen Noble <support@dungog.net> |
49 |
|
|
- sme7 version |
50 |
|
|
- removed all functions except for uploading and installing a rpm |
51 |
|
|
- yum is usually a better option |
52 |
|
|
- [1.2-1] |
53 |
|
|
|
54 |
|
|
* Tue Feb 19 2002 Darrell May <dmay@netsourced.com> |
55 |
|
|
- initial release based on: |
56 |
|
|
- eneo-update-1.0-01.noarch.rpm |
57 |
|
|
- Vendor: Eneo Tecnologia SC. |
58 |
|
|
- Packager: Juan Jesus Prieto <juanprieto@jazzfree.com> |
59 |
|
|
- [0.0.1-1] |
60 |
|
|
|
61 |
|
|
%prep |
62 |
|
|
%setup |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
%build |
66 |
|
|
perl createlinks |
67 |
|
|
|
68 |
|
|
%install |
69 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
70 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
71 |
|
|
/bin/rm -f e-smith-%{version}-filelist |
72 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
73 |
|
|
|
74 |
|
|
%clean |
75 |
|
|
cd .. |
76 |
|
|
/bin/rm -rf %{name}-%{version} |
77 |
|
|
|
78 |
|
|
%files -f %{name}-%{version}-filelist |
79 |
|
|
|
80 |
|
|
%defattr(-,root,root) |
81 |
|
|
|
82 |
|
|
%pre |
83 |
|
|
|
84 |
|
|
%post |
85 |
|
|
#new installs |
86 |
|
|
|
87 |
|
|
#echo " If panel doesnt appear run /etc/e-smith/events/actions/navigation-conf" |
88 |
|
|
|
89 |
|
|
# DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
90 |
|
|
# for db in $DBS ; do |
91 |
|
|
# r=`/sbin/e-smith/db $db get update-system` |
92 |
|
|
# if [ -z "$r" ] ; then |
93 |
|
|
# /sbin/e-smith/db $db set update-system panel Description "Update system" DescriptionWeight 4390 Heading "Administration" HeadingWeight 4000 |
94 |
|
|
# fi |
95 |
|
|
# done |
96 |
|
|
|
97 |
|
|
#if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
98 |
|
|
# /sbin/e-smith/signal-event conf-userpanel |
99 |
|
|
#fi |
100 |
|
|
|
101 |
|
|
%preun |
102 |
|
|
|
103 |
|
|
%postun |
104 |
|
|
#uninstalls |
105 |
|
|
#if [ $1 = 0 ] ; then |
106 |
|
|
# |
107 |
|
|
# DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
108 |
|
|
# for db in $DBS ; do |
109 |
|
|
# /sbin/e-smith/db $db delete update-system |
110 |
|
|
# done |
111 |
|
|
# |
112 |
|
|
# #if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
113 |
|
|
# # /sbin/e-smith/signal-event conf-userpanel |
114 |
|
|
# #fi |
115 |
|
|
# |
116 |
|
|
#fi |