Summary: jinzora installed in /opt/jinzora %define name jinzora Name: %{name} %define version 2.7.5 %define release 1 Version: %{version} Release: %{release}%{?dist} Distribution: SME Server License: GPL URL: http://www.dungog.net/sme Group: SMEserver/addon Source: %{name}-%{version}.tar.gz Packager: Stephen Noble BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0 AutoReqProv: no %description jinzora.org, Jinzora enables you to stream your digital music and videos to any internet connected computer using a web browser. %changelog * Fri Apr 6 2007 Stephen Noble - upstream release - [2.7-5] * Sun Feb 4 2007 Stephen Noble - upstream release - [2.7-1] * Sun Aug 13 2006 Stephen Noble - upstream release - [2.6-1] * Tue May 2 2006 Stephen Noble - permissions fixed - moved to /opt/jinzora - [2.3.7-2] * Sat Apr 29 2006 Stephen Noble - initial release - [2.3.7-1] %prep %setup %build #touch root/opt/jinzora/settings.php # --file '/opt/jinzora/settings.php' 'attr(660,www,www)' \ #touch root/opt/jinzora/jukebox/settings.php %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file '/opt/jinzora/jukebox/settings.php' 'attr(660,www,www)' \ --dir '/opt/jinzora/data' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/artists' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache/discussions' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache/featured' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache/nodes' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache/request' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/cache/tracks' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/counter' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/database' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/database/discussions' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/discussions' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/downloads' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/featured' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/featured/albums' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/featured/artists' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache/discussions' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache/featured' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache/nodes' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache/request' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-cache/tracks' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/id3-database' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/images' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/ratings' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/tracks' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/users' 'attr(764,www,www)' \ --dir '/opt/jinzora/data/viewed' 'attr(764,www,www)' \ --dir '/opt/jinzora/temp' 'attr(764,www,www)' \ > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean cd .. rm -rf %{name}-%{version} %pre #do we need to save settings.php ?? if [ -e /opt/jinzora/settings.php ] ; then cp /opt/jinzora/settings.php /opt/jinzora/settings.php.bak echo "/opt/jinzora/settings.php.bak created" fi %preun %post %postun %files -f %{name}-%{version}-filelist %defattr(-,root,root)