File php-suhosin.spec of Package php-suhosin
1
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
2
%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined")
3
%global php_version %(php-config --version 2>/dev/null || echo 0)
4
5
Name: php-suhosin
6
Version: 0.9.33
7
Release: 1%{?dist}
8
Summary: Suhosin is an advanced protection system for PHP installations
9
10
Group: Development/Languages
11
License: PHP
12
URL: http://www.hardened-php.net/suhosin/
13
Source0: http://download.suhosin.org/suhosin-%{version}.tgz
14
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
16
BuildRequires: php-devel
17
Requires: php(zend-abi) = %{php_zend_api}
18
Requires: php(api) = %{php_apiver}
19
20
%description
21
Suhosin is an advanced protection system for PHP installations. It was designed
22
to protect servers and users from known and unknown flaws in PHP applications
23
and the PHP core.
24
25
%prep
26
%setup -q -n suhosin-%{version}
27
28
%build
29
%{_bindir}/phpize
30
%configure
31
make %{?_smp_mflags}
32
33
%install
34
rm -rf $RPM_BUILD_ROOT
35
make install INSTALL_ROOT=$RPM_BUILD_ROOT
36
37
# install configuration
38
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/php.d
39
%{__cp} suhosin.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.d/suhosin.ini
40
41
%clean
42
rm -rf $RPM_BUILD_ROOT
43
44
%files
45
%defattr(-,root,root,-)
46
%doc Changelog
47
%doc CREDITS
48
%config(noreplace) %{_sysconfdir}/php.d/suhosin.ini
49
%{php_extdir}/suhosin.so
50
51
%changelog
52
* Sun Nov 25 2012 Carsten Schoene <cs@linux-administrator.com> - 0.9.33-1
53
- update to version 0.9.33
54
55
* Sun Jul 22 2010 Carsten Schoene <cs@linux-administrator.com> - 0.9.32.1-1
56
- update to version 0.9.32.1
57
58
* Fri Apr 02 2010 Andy Thompson <andy@webtatic.com> 0.9.31-1
59
- Update to version 0.9.31
60
61
* Mon Sep 07 2009 Andy Thompson <andy@webtatic.com> 0.9.29-1
62
- CentOS build from Fedora SPRM
63
- Update to version 0.9.29
64
65
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.27-2
66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
67
68
* Tue Aug 26 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.27-1
69
- Update to version 0.9.27
70
71
* Thu Aug 7 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.25-1
72
- Update to version 0.9.25
73
74
* Wed Jun 18 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.24-1
75
- Update to version 0.9.24
76
77
* Tue Apr 29 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.23-1
78
- Update to version 0.9.23
79
- Some specfile updates for review
80
81
* Fri Jan 4 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.22-2
82
- Use short name for license
83
84
* Wed Dec 5 2007 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> 0.9.22-1
85
- Initial packaging of 0.9.22
86