1 |
brianr |
1.4 |
%define phpversion 74 |
2 |
jpp |
1.1 |
|
3 |
|
|
Summary: sme server integration of dl |
4 |
|
|
Name: smeserver-dl |
5 |
|
|
Version: 0.2.3 |
6 |
brianr |
1.4 |
Release: 4%{?dist} |
7 |
jpp |
1.1 |
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 |
brianr |
1.2 |
Patch0: smeserver-dl-0.2.3-Add-Update-event-to-createlinks.patch |
13 |
brianr |
1.3 |
Patch1: smeserver-dl-0.2.3-Fix-httpd-syntax.patch |
14 |
brianr |
1.4 |
Patch2: smeserver-dl-0.2.3-Fix-up-update-routine.patch |
15 |
jpp |
1.1 |
|
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
BuildRequires: e-smith-devtools |
18 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version} |
19 |
|
|
Requires: e-smith-base |
20 |
|
|
Requires: dl |
21 |
|
|
Requires: smeserver-webapps-common |
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
smserver integration of dl |
25 |
|
|
|
26 |
|
|
%changelog |
27 |
brianr |
1.4 |
* Tue Sep 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-4.sme |
28 |
|
|
- fix up update routine to create sql db on install [SME: 11567] |
29 |
|
|
- Update php to 74 |
30 |
|
|
|
31 |
brianr |
1.3 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-3.sme |
32 |
|
|
- Fix httpd syntax and expand it intially [SME: 11567] |
33 |
|
|
|
34 |
brianr |
1.2 |
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-2.sme |
35 |
|
|
- Initial import to SME10 tree [SME: 11567] |
36 |
|
|
- Add Update event to createlinks |
37 |
|
|
|
38 |
|
|
* Mon Apr 19 2021 BogusDateBot |
39 |
|
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
40 |
|
|
by assuming the date is correct and changing the weekday. |
41 |
|
|
|
42 |
jpp |
1.1 |
* Sun Jan 21 2018 Daniel Berteaud <daniel@firewall-services.com> 0.2.3-1 |
43 |
|
|
- Use alt php binary when expiring tickets [SME: 10495] (daniel@firewall- |
44 |
|
|
services.com) |
45 |
|
|
|
46 |
|
|
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.2-1 |
47 |
|
|
- Prepare spec file for tito (daniel@firewall-services.com) |
48 |
|
|
|
49 |
|
|
* Wed Jul 26 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.1-1.sme |
50 |
|
|
- Add /var/lib/php/dl to open_basedir for the fpm pool |
51 |
|
|
- Assume MB if no unit is specified for max file size |
52 |
|
|
- Remove hardcoded PHP version, replaced at build time |
53 |
|
|
|
54 |
|
|
* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1.sme |
55 |
|
|
- Support smeserver-php-fpm |
56 |
|
|
|
57 |
|
|
* Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1.sme |
58 |
|
|
- Fix cron job output [SME: 9116] |
59 |
|
|
|
60 |
|
|
* Wed Apr 23 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.3-1.sme |
61 |
|
|
- Fix basic auth on SME9 |
62 |
|
|
|
63 |
|
|
* Tue Feb 4 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1.sme |
64 |
|
|
- Grant admin privileges to the admin user |
65 |
|
|
|
66 |
|
|
* Sun Nov 24 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1.sme |
67 |
|
|
- Automatically upgrade the database |
68 |
|
|
|
69 |
|
|
* Fri Nov 22 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme |
70 |
|
|
- First release |
71 |
|
|
|
72 |
|
|
%prep |
73 |
|
|
%setup -q |
74 |
brianr |
1.2 |
%patch0 -p1 |
75 |
brianr |
1.3 |
%patch1 -p1 |
76 |
brianr |
1.4 |
%patch2 -p1 |
77 |
jpp |
1.1 |
|
78 |
|
|
%build |
79 |
|
|
perl ./createlinks |
80 |
|
|
find root/ -type f | xargs grep -l __PHP_VERSION__ | xargs sed -i -e "s/__PHP_VERSION__/%{phpversion}/g" |
81 |
|
|
%{__mkdir_p} root/var/log/php/dl |
82 |
|
|
%{__mkdir_p} root/var/lib/php/dl/{tmp,opcache,session} |
83 |
|
|
|
84 |
|
|
%install |
85 |
|
|
rm -rf $RPM_BUILD_ROOT |
86 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
87 |
|
|
rm -f %{name}-%{version}-filelist |
88 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
89 |
|
|
--dir /var/log/php/dl 'attr(0770,root,www)' \ |
90 |
|
|
--dir /var/lib/php/dl 'attr(0770,root,www)' \ |
91 |
|
|
--dir /var/lib/php/dl/tmp 'attr(0770,root,www)' \ |
92 |
|
|
--dir /var/lib/php/dl/opcache 'attr(0770,root,www)' \ |
93 |
|
|
--dir /var/lib/php/dl/session 'attr(0770,root,www)' \ |
94 |
|
|
> %{name}-%{version}-filelist |
95 |
|
|
|
96 |
|
|
%files -f %{name}-%{version}-filelist |
97 |
|
|
%defattr(-,root,root) |
98 |
|
|
|
99 |
|
|
%clean |
100 |
|
|
rm -rf $RPM_BUILD_ROOT |
101 |
|
|
|
102 |
|
|
%postun |