author | tom68 |
Sun, 14 Apr 2013 13:08:58 +0000 | |
branch | spec-files-extra |
changeset 10667 | aa770532c74a |
parent 10241 | 378a226b1250 |
child 10668 | 6b99e695a073 |
permissions | -rw-r--r-- |
7012 | 1 |
# |
2 |
||
3 |
%include Solaris.inc |
|
4 |
||
5 |
%define src_name wordpress |
|
6 |
%define targetdirname wordpress |
|
7 |
#set to blank if not text part like ".RC2" is in the version string. IPS can't handle non-numeric version strings |
|
8 |
#mind to include a "dot" if non empty |
|
9 |
#%define src_name_minor_extra |
|
10 |
%define src_name_minor_extra |
|
11 |
%define apache2_majorversion 2 |
|
12 |
%define apache2_version 2.2 |
|
13 |
#IPS_component_version: <numeric-only> |
|
14 |
||
15 |
Name: SFEwordpress |
|
10193 | 16 |
IPS_Package_Name: web/service/wordpress |
17 |
Summary: Blogging software |
|
10667 | 18 |
Version: 3.5.1 |
10241 | 19 |
Source: http://wordpress.org/wordpress-3.4.1.tar.gz |
7666 | 20 |
#Source: http://wordpress.org/wordpress-%{version}%{src_name_minor_extra}.zip |
7543
2c9ed2f4c737
ufraw.copyright,unbound.copyright,unpaper.copyright,vala.copyright,viking.copyright,
nbprashanth
parents:
7335
diff
changeset
|
21 |
License: GPLv2 |
10193 | 22 |
Group: Web Services/Portals |
7543
2c9ed2f4c737
ufraw.copyright,unbound.copyright,unpaper.copyright,vala.copyright,viking.copyright,
nbprashanth
parents:
7335
diff
changeset
|
23 |
SUNW_Copyright: wordpress.copyright |
7012 | 24 |
SUNW_BaseDir: / |
25 |
URL: http://www.wordpress.org/index.html |
|
26 |
#Source2: %{src_name}-htaccess-protect-backend |
|
27 |
Source3: %{src_name}.conf.example |
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}%{src_name_minor_extra}-build |
|
29 |
%include default-depend.inc |
|
30 |
||
31 |
#Requires: Apache2 and php |
|
32 |
#Requires: optional mcrypt in php |
|
33 |
||
34 |
%prep |
|
35 |
%setup -q -c -T -a0 -n %{src_name}-%{version}%{src_name_minor_extra} |
|
36 |
#cp -p %{SOURCE2} . |
|
37 |
||
38 |
#copy example apache config |
|
39 |
cp -p %{SOURCE3} . |
|
40 |
||
41 |
[ -f .htaccess.default ] && mv .htaccess.default .htaccess |
|
42 |
[ -f ._htaccess ] && mv ._htaccess .htaccess |
|
43 |
||
44 |
#%build |
|
45 |
||
46 |
#dummy - noting to make |
|
47 |
||
48 |
%install |
|
49 |
rm -rf $RPM_BUILD_ROOT |
|
50 |
||
51 |
mkdir -p $RPM_BUILD_ROOT/etc/apache%{apache2_majorversion}/%{apache2_version}/samples-conf.d/ |
|
52 |
mv %{src_name}.conf.example $RPM_BUILD_ROOT/etc/apache%{apache2_majorversion}/%{apache2_version}/samples-conf.d/%{src_name}.conf |
|
53 |
||
54 |
cd wordpress |
|
55 |
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/ |
|
56 |
cp -pr * $RPM_BUILD_ROOT/%{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/ |
|
57 |
#just in case we places an .htaccess or .htpasswd file here: |
|
58 |
#cp -pr .ht* $RPM_BUILD_ROOT/%{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/ |
|
59 |
#mv %{src_name}-htaccess-protect-backend $RPM_BUILD_ROOT/%{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/.htaccess |
|
60 |
ln -s %{src_name}-%{version}%{src_name_minor_extra} $RPM_BUILD_ROOT/%{_localstatedir}/%{src_name} |
|
61 |
||
62 |
%clean |
|
63 |
rm -rf $RPM_BUILD_ROOT |
|
64 |
||
65 |
#the script is found automaticly in ext-sources w/o a Source<n> keyword |
|
66 |
%iclass renamenew -f i.renamenew |
|
67 |
||
68 |
%files |
|
69 |
%defattr (0640, webservd, bin) |
|
70 |
%dir %attr (0755, root, sys) %{_localstatedir} |
|
71 |
%attr (0750, webservd, bin) %{_localstatedir}/%{src_name} |
|
72 |
%dir %attr (0750, webservd, bin) %{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra} |
|
73 |
%{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/* |
|
74 |
#don't let wordpress modify it's files - for security owned by root and not writable by the webservd userid |
|
75 |
#places explicitly needed writable are system/logs, system/html, system/tmp |
|
76 |
%defattr (0644, root, bin) |
|
77 |
#example %dir %attr (0750, webservd, bin) %{_localstatedir}/%{src_name}-%{version}%{src_name_minor_extra}/writable_file_this_is |
|
78 |
||
79 |
%defattr (-, root, bin) |
|
80 |
%dir %attr(0755, root, sys) %{_sysconfdir} |
|
81 |
%class(renamenew) %{_sysconfdir}/apache%{apache2_majorversion}/%{apache2_version}/samples-conf.d/%{src_name}.conf |
|
82 |
||
83 |
||
84 |
%changelog |
|
10667 | 85 |
* Sun Apr 14 2013 - Thomas Wagner |
86 |
- bump to 3.5.1 |
|
10241 | 87 |
* Sat Aug 25 2012 - Ken Mays <[email protected]> |
88 |
- bump to 3.4.1 |
|
7666 | 89 |
* Tue Sep 14 2011 - Ken Mays <[email protected]> |
90 |
- bump to 3.2.1 |
|
7543
2c9ed2f4c737
ufraw.copyright,unbound.copyright,unpaper.copyright,vala.copyright,viking.copyright,
nbprashanth
parents:
7335
diff
changeset
|
91 |
* Mon Jul 25 2011 - N.B.Prashanth |
2c9ed2f4c737
ufraw.copyright,unbound.copyright,unpaper.copyright,vala.copyright,viking.copyright,
nbprashanth
parents:
7335
diff
changeset
|
92 |
- Added SUNW_Copyright |
7335 | 93 |
* Thu Apr 26 2011 - Thomas Wagner |
94 |
- bump to 3.1.2 - security fix - upgrade stongly recommended |
|
7012 | 95 |
* Thu Jan 13 2011 - Thomas Wagner |
96 |
- bump to 3.0.4 - security fix - upgrade stongly recommended |
|
97 |
* Wed Aug 25 2010 - Thomas Wagner |
|
98 |
- initial version |