/[smecontribs]/rpms/smeserver-awstats/contribs10/smeserver-awstats.spec
ViewVC logotype

Diff of /rpms/smeserver-awstats/contribs10/smeserver-awstats.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.10 by michel, Tue Mar 21 13:07:04 2023 UTC Revision 1.12 by brianr, Fri Mar 1 16:09:10 2024 UTC
# Line 1  Line 1 
1  # $Id: smeserver-awstats.spec,v 1.9 2023/02/12 19:07:17 michel Exp $  # $Id: smeserver-awstats.spec,v 1.11 2023/04/19 14:10:10 michel Exp $
2  # Authority: dungog  # Authority: dungog
3  # Name: Stephen Noble  # Name: Stephen Noble
4    
5  %define realname smeserver-awstats  %define realname smeserver-awstats
6  %define version 1.4  %define version 1.4
7  %define release 8  %define release 10
8    
9  Summary:  SME Server integration rpm for awstats  Summary:  SME Server integration rpm for awstats
10  Name: %{realname}  Name: %{realname}
# Line 17  BuildRoot: /var/tmp/%{name}-%{version} Line 17  BuildRoot: /var/tmp/%{name}-%{version}
17  URL: https://wiki.koozali.org/AWStats  URL: https://wiki.koozali.org/AWStats
18  BuildArchitectures: noarch  BuildArchitectures: noarch
19  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
20  Requires: e-smith-release >= 9  Requires: e-smith-release >= 10
21  Requires: awstats >= 6.5  Requires: awstats >= 6.5
22    Requires: perl(POSIX)
23  AutoReqProv: no  AutoReqProv: no
24  Patch0: smeserver-awstats-1.4-bz11045.patch  Patch0: smeserver-awstats-1.4-bz11045.patch
25  Patch1: smeserver-awstats-1.4-bz11998-backup.patch  Patch1: smeserver-awstats-1.4-bz11998-backup.patch
26  Patch2: smeserver-awstats-1.4-bz5925_add_qmail_stats.patch  Patch2: smeserver-awstats-1.4-bz5925_add_qmail_stats.patch
27  Patch3: smeserver-awstats-1.4-bz12324_sm2_initial.patch  Patch3: smeserver-awstats-1.4-bz12324_sm2_initial.patch
28    Patch4: smeserver-awstats-1.4-bz12324_sm2_init_bis.patch
29    Patch5: smeserver-awstats-1.4-Alter-menu-category-for-new-arrangement.patch
30    
31  %description  %description
32  SME Server integration rpm for awstats.  SME Server integration rpm for awstats.
33    
34  %changelog  %changelog
35    * Fri Mar 01 2024 Brian Read <brianr@koozali.org> 1.4-10.sme
36    - Edit SM2 Menu entry to conform to new arrangements [SME: 12493]
37    
38    * Fri Mar 24 2023 Michel Begue <mab974@misouk.com> 1.4-9.sme
39    - fix typo and Requires in .spec file [SME: 12324]
40    - (sm2) consider Daily and Hourly Reported Period
41    - (sm2) remove unnecessary file in templates directory
42    
43  * Mon Mar 20 2023 Michel Begue <mab974@misouk.com> 1.4-8.sme  * Mon Mar 20 2023 Michel Begue <mab974@misouk.com> 1.4-8.sme
44  - Initial release for server-manager (sm2) [SME: 12324]  - Initial release for server-manager (sm2) [SME: 12324]
45    
# Line 164  SME Server integration rpm for awstats. Line 175  SME Server integration rpm for awstats.
175  %patch1 -p1  %patch1 -p1
176  %patch2 -p1  %patch2 -p1
177  %patch3 -p1  %patch3 -p1
178    %patch4 -p1
179    %patch5 -p1
180    
181  %build  %build
182  perl createlinks  perl createlinks
# Line 193  rm -rf %{name}-%{version} Line 206  rm -rf %{name}-%{version}
206  %pre  %pre
207  %post  %post
208    
209    if (systemctl list-unit-files |grep smanager) then
210      echo "Smanager restart in spec file"
211      /sbin/e-smith/signal-event smanager-refresh;
212    fi
213    
214    
215  %preun  %preun
216  %postun  %postun
# Line 201  if [ $1 = 0 ] ; then Line 219  if [ $1 = 0 ] ; then
219   /bin/rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats   /bin/rm -rf /etc/e-smith/web/panels/manager/cgi-bin/.awstats
220   /bin/rm -rf /etc/e-smith/web/panels/user/html/awstats   /bin/rm -rf /etc/e-smith/web/panels/user/html/awstats
221   /bin/rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats   /bin/rm -rf /etc/e-smith/web/panels/user/cgi-bin/.awstats
222   /bin/rm -fs /usr/share/smanager/themes/default/images/awstats/icon   /bin/rm -f /usr/share/smanager/themes/default/images/awstats/icon
223   /sbin/e-smith/config setprop AWStats status removed   /sbin/e-smith/config setprop AWStats status removed
224   /sbin/e-smith/expand-template /etc/crontab   /sbin/e-smith/expand-template /etc/crontab
225  fi  fi
226    true
227    
228  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
229  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed