1 |
%define phpversion 74 |
2 |
|
3 |
Summary: sme server integration of dl |
4 |
Name: smeserver-dl |
5 |
Version: 0.2.3 |
6 |
Release: 8%{?dist} |
7 |
Epoch: 9 |
8 |
License: GNU GPL version 2 |
9 |
URL: http://www.thregr.org/~wavexx/software/dl/ |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-dl-0.2.3-Add-Update-event-to-createlinks.patch |
13 |
Patch1: smeserver-dl-0.2.3-Fix-httpd-syntax.patch |
14 |
Patch2: smeserver-dl-0.2.3-Fix-up-update-routine.patch |
15 |
Patch3: smeserver-dl-0.2.3-Fix-php74-dl-call-in-httpd-fragment.patch |
16 |
Patch4: smeserver-dl-0.2.3-Fix-clamd-path.patch |
17 |
Patch5: smeserver-dl-0.2.3-Correct-clam-dir-in-60clamscan.patch |
18 |
Patch6: smeserver-dl-0.2.3-24syntax-bz12042.patch |
19 |
Patch7: smeserver-dl-0.2.3-bz12004-backup.patch |
20 |
|
21 |
BuildArchitectures: noarch |
22 |
BuildRequires: e-smith-devtools |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
24 |
Requires: e-smith-base |
25 |
Requires: dl |
26 |
Requires: e-smith-apache >= 2.6.0-19 |
27 |
Requires: smeserver-php >= 3.0.0-43 |
28 |
|
29 |
%description |
30 |
smserver integration of dl |
31 |
|
32 |
%changelog |
33 |
* Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.3-8.sme |
34 |
- use httpd 2.4 syntax [SME: 12042] |
35 |
smeserver-php provides smeserver-webapps-common |
36 |
- backup contrib [SME: 12004] |
37 |
|
38 |
* Thu Dec 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-7.sme |
39 |
- Correct-clam-dir-in-60clamscan [SME: 11820] |
40 |
|
41 |
* Fri Dec 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2.3-6.sme |
42 |
- Fix clamd path |
43 |
- Fix typo |
44 |
|
45 |
* Wed Nov 03 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-5.sme |
46 |
- php74-dl-call-in-httpd-fragment [SME: 11567] |
47 |
|
48 |
* Tue Sep 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-4.sme |
49 |
- fix up update routine to create sql db on install [SME: 11567] |
50 |
- Update php to 74 |
51 |
|
52 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-3.sme |
53 |
- Fix httpd syntax and expand it intially [SME: 11567] |
54 |
|
55 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-2.sme |
56 |
- Initial import to SME10 tree [SME: 11567] |
57 |
- Add Update event to createlinks |
58 |
|
59 |
* Mon Apr 19 2021 BogusDateBot |
60 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
61 |
by assuming the date is correct and changing the weekday. |
62 |
|
63 |
* Sun Jan 21 2018 Daniel Berteaud <daniel@firewall-services.com> 0.2.3-1 |
64 |
- Use alt php binary when expiring tickets [SME: 10495] (daniel@firewall- |
65 |
services.com) |
66 |
|
67 |
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.2-1 |
68 |
- Prepare spec file for tito (daniel@firewall-services.com) |
69 |
|
70 |
* Wed Jul 26 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.1-1.sme |
71 |
- Add /var/lib/php/dl to open_basedir for the fpm pool |
72 |
- Assume MB if no unit is specified for max file size |
73 |
- Remove hardcoded PHP version, replaced at build time |
74 |
|
75 |
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1.sme |
76 |
- Support smeserver-php-fpm |
77 |
|
78 |
* Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1.sme |
79 |
- Fix cron job output [SME: 9116] |
80 |
|
81 |
* Wed Apr 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.3-1.sme |
82 |
- Fix basic auth on SME9 |
83 |
|
84 |
* Tue Feb 4 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1.sme |
85 |
- Grant admin privileges to the admin user |
86 |
|
87 |
* Sun Nov 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1.sme |
88 |
- Automatically upgrade the database |
89 |
|
90 |
* Fri Nov 22 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme |
91 |
- First release |
92 |
|
93 |
%prep |
94 |
%setup -q |
95 |
%patch0 -p1 |
96 |
%patch1 -p1 |
97 |
%patch2 -p1 |
98 |
%patch3 -p1 |
99 |
%patch4 -p1 |
100 |
%patch5 -p1 |
101 |
%patch6 -p1 |
102 |
%patch7 -p1 |
103 |
|
104 |
%build |
105 |
perl ./createlinks |
106 |
find root/ -type f | xargs grep -l __PHP_VERSION__ | xargs sed -i -e "s/__PHP_VERSION__/%{phpversion}/g" |
107 |
%{__mkdir_p} root/var/log/php/dl |
108 |
%{__mkdir_p} root/var/lib/php/dl/{tmp,opcache,session} |
109 |
|
110 |
%install |
111 |
rm -rf $RPM_BUILD_ROOT |
112 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
113 |
rm -f %{name}-%{version}-filelist |
114 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
115 |
--dir /var/log/php/dl 'attr(0770,root,www)' \ |
116 |
--dir /var/lib/php/dl 'attr(0770,root,www)' \ |
117 |
--dir /var/lib/php/dl/tmp 'attr(0770,root,www)' \ |
118 |
--dir /var/lib/php/dl/opcache 'attr(0770,root,www)' \ |
119 |
--dir /var/lib/php/dl/session 'attr(0770,root,www)' \ |
120 |
> %{name}-%{version}-filelist |
121 |
|
122 |
%files -f %{name}-%{version}-filelist |
123 |
%defattr(-,root,root) |
124 |
|
125 |
%clean |
126 |
rm -rf $RPM_BUILD_ROOT |
127 |
|
128 |
%postun |