diff --git a/README.md b/README.md index 8e5fe4f..e1a2905 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # wordpress +WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. +WordPress is both free and priceless at the same time. + +More simply, WordPress is what you use when you want to work with your blogging software, not fight it. + diff --git a/wordpress-db-config b/wordpress-db-config new file mode 100644 index 0000000..06ee4cb --- /dev/null +++ b/wordpress-db-config @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/wordpress.spec b/wordpress.spec new file mode 100644 index 0000000..d58da36 --- /dev/null +++ b/wordpress.spec @@ -0,0 +1,295 @@ +%define serverdir %(apxs -q htdocsdir 2>/dev/null) + +# To create a customized installation of wordpress: +# autospec -u wordpress -a5 \ +# -d "installdir=%serverdir/../www.example.com, \ +# sitename=example, \ +# adminmail=webmaster@example.com" + +%if "%{?installdir}" == "" + %define installdir %{serverdir}/wordpress +%endif + +%if "%{?sitename}" != "" + %if "%{?servername}" == "" + %define servername %(basename %installdir 2>/dev/null) + %endif + %define serverlogdir %(apxs -q logfiledir 2>/dev/null) +%else + %if "%{?aliasdir}" == "" + %define aliasdir /wordpress + %endif +%endif + +#%define i18n_version svn20090213 +%define it_version %(echo %version | cut -d. -f1-2 | tr . _) + +Name: %{?sitename:%sitename-website-}wordpress +Version: 3.9.1 +Release: 1mamba +Summary: A semantic personal publishing platform +Group: Applications/Web +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://wordpress.org +Source: http://wordpress.org/wordpress-%{version}.tar.gz +Source1: wordpress-db-config +# To get new version: +# svn co http://svn.automattic.com/wordpress-i18n +# find wordpress-i18n -name .svn -prune -exec rm -fr \{} \; +# tar cjf wordpress-i8n-%{i18n_version}.tar.bz2 wordpress-i18n +# Download is HUGE so this method is skipped +#Source2: http://www.wordpress-it.it/wp-content/archives/it_IT_%{it_version}.zip +Source2: http://www.wpitaly.it/download/it_IT_%{it_version}.zip +License: GPL +BuildArch: noarch +Requires: apache-mod_php >= 4.2 +Requires: mysql >= 4.0 +Requires: php-mysql +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. +WordPress is both free and priceless at the same time. + +More simply, WordPress is what you use when you want to work with your blogging software, not fight it. + +%prep +%setup -q -n %{name} +mkdir -p wp-content/languages +pushd wp-content/languages +unzip -o %{S:2} "*.po" +popd + +find . -name '*~' -delete + +%build +pushd wp-content/languages +msgfmt -o it.mo it*.po +rm -f *.po +popd + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{installdir} +cp -a * %{buildroot}%{installdir}/ + +rm -f %{buildroot}%{installdir}/{license.txt,readme.html} +mv %{buildroot}%{installdir}/wp-config-sample.php \ + %{buildroot}%{installdir}/wp-config.php + +install -d %{buildroot}%{installdir}/config.d +install -m 0644 %{S:1} %{buildroot}%{installdir}/config.d/db.php +%if "%{?sitename}" != "" +cat > %{buildroot}%{installdir}/config.d/general.php << EOF +uri = 'http://%{servername}'; + +// What are you going to call me? +\$bb->name = '%{sitename} blog'; + +// This must be set before you run the install script. +\$bb->admin_email = '%{adminmail}'; + +?> +EOF +%endif + +install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d +%if "%{?sitename}" != "" +cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{servername}.conf << EOF +%else +cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF +%endif +%if "%{?sitename}" == "" +%if "%(dirname %installdir)" != "%{serverdir}" +Alias %{aliasdir} %{installdir} + +%endif +%endif + + AllowOverride Options + Order allow,deny + Allow from All + +%if "%{?sitename}" != "" +%if "%(dirname %installdir)" != "%{serverdir}" + + + %{?adminmail:ServerAdmin %adminmail} + DocumentRoot %{installdir} + ServerName %{servername} + ErrorLog %{serverlogdir}/%{servername}-error_log + CustomLog %{serverlogdir}/%{servername}-access_log common + +%endif +%endif +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ $1 -ge 1 ]; then + service httpd condrestart +fi +: + +%preun +if [ $1 -eq 0 ]; then +#erase + service httpd condrestart +fi +: + +%files +%defattr(-,root,root) +%if "%{?sitename}" != "" +%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{servername}.conf +%else +%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf +%endif +%config(noreplace) %{installdir}/wp-config.php +%config(noreplace) %{installdir}/config.d/db.php +%if "%{?sitename}" != "" +%config(noreplace) %{installdir}/config.d/general.php +%endif +%dir %{installdir} +%{installdir}/* +%doc license.txt readme.html + +%changelog +* Fri May 09 2014 Automatic Build System 3.9.1-1mamba +- automatic version update by autodist + +* Fri Apr 18 2014 Automatic Build System 3.9-1mamba +- automatic version update by autodist + +* Tue Apr 15 2014 Automatic Build System 3.8.3-1mamba +- automatic version update by autodist + +* Wed Apr 09 2014 Automatic Build System 3.8.2-1mamba +- automatic version update by autodist + +* Fri Jan 24 2014 Automatic Build System 3.8.1-1mamba +- automatic version update by autodist + +* Sat Dec 14 2013 Automatic Build System 3.8-1mamba +- automatic version update by autodist + +* Wed Oct 30 2013 Automatic Build System 3.7.1-1mamba +- automatic version update by autodist + +* Sat Oct 26 2013 Automatic Build System 3.7-1mamba +- automatic version update by autodist + +* Mon Sep 16 2013 Automatic Build System 3.6.1-1mamba +- update to 3.6.1 + +* Sat Aug 10 2013 Automatic Build System 3.6-1mamba +- automatic version update by autodist + +* Wed Jul 17 2013 Automatic Build System 3.5.2-1mamba +- automatic version update by autodist + +* Mon Feb 25 2013 Automatic Build System 3.5.1-1mamba +- automatic version update by autodist + +* Fri Sep 07 2012 Automatic Build System 3.4.2-1mamba +- automatic version update by autodist + +* Thu Jun 28 2012 Automatic Build System 3.4.1-1mamba +- automatic version update by autodist + +* Thu Jun 14 2012 Automatic Build System 3.4-1mamba +- automatic version update by autodist + +* Sat Apr 21 2012 Automatic Build System 3.3.2-1mamba +- automatic version update by autodist + +* Wed Jan 04 2012 Automatic Build System 3.3.1-1mamba +- automatic version update by autodist + +* Tue Dec 13 2011 Automatic Build System 3.3-1mamba +- automatic version update by autodist + +* Wed Jul 13 2011 Automatic Build System 3.2.1-1mamba +- automatic update by autodist + +* Tue Jul 05 2011 Automatic Build System 3.2-1mamba +- automatic update by autodist + +* Sat Jul 02 2011 Automatic Build System 3.1.4-1mamba +- automatic update by autodist + +* Thu May 26 2011 Automatic Build System 3.1.3-1mamba +- automatic update by autodist + +* Wed Apr 27 2011 Automatic Build System 3.1.2-1mamba +- automatic update by autodist + +* Wed Apr 06 2011 Automatic Build System 3.1.1-1mamba +- automatic update by autodist + +* Thu Feb 24 2011 Automatic Build System 3.1-1mamba +- automatic update by autodist + +* Tue Feb 08 2011 Automatic Build System 3.0.5-1mamba +- automatic update by autodist + +* Thu Dec 30 2010 Automatic Build System 3.0.4-1mamba +- automatic update by autodist + +* Thu Dec 09 2010 Automatic Build System 3.0.3-1mamba +- automatic update to 3.0.3 by autodist + +* Wed Dec 01 2010 Automatic Build System 3.0.2-1mamba +- automatic update to 3.0.2 by autodist + +* Fri Jul 30 2010 Automatic Build System 3.0.1-1mamba +- automatic update to 3.0.1 by autodist + +* Fri Jun 25 2010 Automatic Build System 3.0-1mamba +- automatic update by autodist + +* Wed Apr 14 2010 Automatic Build System 2.9.2-1mamba +- automatic update by autodist + +* Wed Dec 23 2009 Automatic Build System 2.9-1mamba +- automatic update by autodist + +* Thu Nov 19 2009 Automatic Build System 2.8.6-1mamba +- automatic update by autodist + +* Tue Aug 18 2009 Automatic Build System 2.8.4-1mamba +- automatic update by autodist + +* Thu Aug 06 2009 Automatic Build System 2.8.3-1mamba +- automatic update by autodist + +* Fri Jul 24 2009 Automatic Build System 2.8.2-1mamba +- automatic update by autodist + +* Sun Jul 12 2009 Automatic Build System 2.8.1-1mamba +- automatic update by autodist + +* Fri Jun 19 2009 Automatic Build System 2.8-1mamba +- automatic update by autodist + +* Fri Feb 13 2009 Silvan Calarco 2.7.1-2mamba +- added italian translation + +* Fri Feb 13 2009 Silvan Calarco 2.7.1-1mamba +- update to 2.7.1 + +* Mon Dec 22 2008 Silvan Calarco 2.7-1mamba +- automatic update by autodist + +* Wed Oct 01 2008 Silvan Calarco 2.6.2-1mamba +- automatic update by autodist + +* Mon May 21 2007 Stefano Cotta Ramusino 2.2-1mamba +- package created by autospec