/[packages]/updates/3/wordpress/current/SPECS/wordpress.spec
ViewVC logotype

Contents of /updates/3/wordpress/current/SPECS/wordpress.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 798126 - (show annotations) (download)
Fri Nov 21 20:06:36 2014 UTC (9 years, 4 months ago) by luigiwalser
File size: 2371 byte(s)
3.9.3
1 Summary: Personal publishing platform
2 Name: wordpress
3 Version: 3.9.3
4 Release: %mkrel 1
5 License: GPLv2+
6 Group: System/Servers
7 URL: http://wordpress.org/
8 Source0: http://wordpress.org/%{name}-%{version}.tar.gz
9 Source1: README.install.urpmi
10 Patch0: wordpress-3.9-noupdate.patch
11 Patch1: wordpress-3.9.1-disable-phpmailer-extras.patch
12 Requires: apache
13 Requires: apache-mod_php
14 Requires: mysql
15 Requires: php-mysql
16 BuildArch: noarch
17
18 %description
19 WordPress is a state-of-the-art, semantic, personal publishing platform with a
20 focus on aesthetics, Web standards, and usability. It was born out of a desire
21 for an elegant, well-architectured personal publishing system, and is the
22 official successor to b2/cafelog. While primarily geared towards functioning as
23 a Weblog, it is also a flexible CMS capable of managing many types of Web
24 sites. In addition to the basic Weblog functions, it also has an integrated
25 link manager (e.g. for blogrolls), XFN support, support for "static" pages,
26 Atom and RSS feeds for both content and comments, XML-RPC blogging API support
27 (Blogger, MetaWeblog, and Movable Type APIs), spam blocking features, advanced
28 cruft-free URL generation, a flexible theme system, and an advanced plugin API.
29
30 %prep
31 %setup -q -n %{name}
32 # Note apply patches manually and without backups...
33 %patch0 -p1
34 %patch1 -p1
35
36 # fix dir perms
37 find . -type d | xargs chmod 755
38
39 # fix file perms
40 find . -type f | xargs chmod 644
41
42 # fix file encoding
43 sed -i -e 's/\r//' license.txt
44
45 %install
46 install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
47 install -d %{buildroot}%{_sysconfdir}/%{name}
48 install -d %{buildroot}/var/www/%{name}
49
50 # Remove empty files to make rpmlint happy
51 find %{buildroot} -type f -empty -exec rm -vf {} \;
52 # These are docs, remove them from here, docify them later
53 rm -f {buildroot}%{_datadir}/wordpress/{license.txt,readme.html}
54
55 cp -aRf * %{buildroot}/var/www/%{name}/
56
57 cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf << EOF
58 Alias /%{name} /var/www/%{name}
59
60 <Directory /var/www/%{name}>
61 AllowOverride Options
62 Allow from All
63 </Directory>
64 EOF
65
66 # cleanup
67 rm -f %{buildroot}/var/www/%{name}/license.txt
68 cp %{SOURCE1} ./README.install.urpmi
69
70 %files
71 %doc README.install.urpmi
72 %doc license.txt
73 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
74 %attr(0755,apache,root) /var/www/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30