packages: phorum/phorum.spec - template subpackages

glen glen at pld-linux.org
Mon Jan 11 15:40:26 CET 2010


Author: glen                         Date: Mon Jan 11 14:40:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- template subpackages

---- Files affected:
packages/phorum:
   phorum.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: packages/phorum/phorum.spec
diff -u packages/phorum/phorum.spec:1.29 packages/phorum/phorum.spec:1.30
--- packages/phorum/phorum.spec:1.29	Wed Jan  6 19:23:58 2010
+++ packages/phorum/phorum.spec	Mon Jan 11 15:40:21 2010
@@ -1,9 +1,10 @@
 # $Revision$, $Date$
+%define		themever	5.2
 Summary:	Phorum is a web based message board written in PHP
 Summary(pl.UTF-8):	Phorum - implementacja forum WWW w PHP
 Name:		phorum
-Version:	5.2.14
-Release:	0.4
+Version:	%{themever}.14
+Release:	0.7
 License:	Apache-like
 Group:		Applications/WWW
 Source0:	http://www.phorum.org/downloads/%{name}-%{version}.tar.bz2
@@ -16,6 +17,7 @@
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	webapps
 Requires:	webserver(php) >= 4.3.0
+Requires:   %{name}(theme) = %{themever}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -55,6 +57,33 @@
 pierwszej instalacji. Potem należy go odinstalować, jako że
 pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
 
+%package theme-classic
+Summary:    Classic theme for Phorum
+Group:      Applications/WWW
+Requires:   %{name} = %{version}-%{release}
+Provides:   %{name}(theme) = %{themever}
+
+%description theme-classic
+Classic theme for Phorum.
+
+%package theme-emerald
+Summary:    Emerald theme for Phorum
+Group:      Applications/WWW
+Requires:   %{name} = %{version}-%{release}
+Provides:   %{name}(theme) = %{themever}
+
+%description theme-emerald
+Emerald theme for Phorum.
+
+%package theme-lightweight
+Summary:    Lightweight theme for Phorum
+Group:      Applications/WWW
+Requires:   %{name} = %{version}-%{release}
+Provides:   %{name}(theme) = %{themever}
+
+%description theme-lightweight
+Lightweight theme for Phorum.
+
 %prep
 %setup -q
 find '(' -name '*.php' -o -name '*.css' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
@@ -82,9 +111,12 @@
 # samples
 mv portable scripts docs
 
-# TODO: move themes images to htdocs
-#mv $RPM_BUILD_ROOT%{_appdir}/{,htdocs/}templates/default/images
-#mv $RPM_BUILD_ROOT%{_appdir}/{,htdocs/}templates/default/images
+# move themes images to htdocs
+for a in templates/*/images; do
+	d=$(dirname "$a");
+	install -d htdocs/$d
+	mv $a htdocs/$d
+done
 
 %patch0 -p1
 %patch1 -p1
@@ -95,7 +127,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/htdocs/templates/default,/var/cache/phorum}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/cache/phorum}
 cp -a *.php htdocs include mods templates $RPM_BUILD_ROOT%{_appdir}
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
@@ -154,7 +186,7 @@
 %{_appdir}/include/cache
 
 %dir %{_appdir}/htdocs
-%{_appdir}/htdocs/templates
+%dir %{_appdir}/htdocs/templates
 %{_appdir}/htdocs/images
 
 %{_appdir}/htdocs/addon.php
@@ -190,12 +222,30 @@
 %{_appdir}/include/admin
 %{_appdir}/include/db/upgrade
 
+%files theme-classic
+%defattr(644,root,root,755)
+%{_appdir}/templates/classic
+%{_appdir}/htdocs/templates/classic
+
+%files theme-emerald
+%defattr(644,root,root,755)
+%{_appdir}/templates/emerald
+%{_appdir}/htdocs/templates/emerald
+
+%files theme-lightweight
+%defattr(644,root,root,755)
+%{_appdir}/templates/lightweight
+%{_appdir}/htdocs/templates/lightweight
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2010/01/11 14:40:21  glen
+- template subpackages
+
 Revision 1.29  2010/01/06 18:23:58  glen
 - patch after moving files around (easier for further changes)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/phorum/phorum.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list