1 |
Summary: jinzora installed in /opt/jinzora |
2 |
%define name jinzora |
3 |
Name: %{name} |
4 |
%define version 2.7.5 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildArchitectures: noarch |
13 |
BuildRoot: /var/tmp/%{name}-%{version} |
14 |
Requires: e-smith-release >= 7.0 |
15 |
AutoReqProv: no |
16 |
|
17 |
%description |
18 |
jinzora.org, |
19 |
Jinzora enables you to stream your digital music and videos |
20 |
to any internet connected computer using a web browser. |
21 |
|
22 |
%changelog |
23 |
* Fri Apr 6 2007 Stephen Noble <stephen@dungog.net> |
24 |
- upstream release |
25 |
- [2.7-5] |
26 |
|
27 |
* Sun Feb 4 2007 Stephen Noble <support@dungog.net> |
28 |
- upstream release |
29 |
- [2.7-1] |
30 |
|
31 |
* Sun Aug 13 2006 Stephen Noble <support@dungog.net> |
32 |
- upstream release |
33 |
- [2.6-1] |
34 |
|
35 |
* Tue May 2 2006 Stephen Noble <support@dungog.net> |
36 |
- permissions fixed |
37 |
- moved to /opt/jinzora |
38 |
- [2.3.7-2] |
39 |
|
40 |
* Sat Apr 29 2006 Stephen Noble <support@dungog.net> |
41 |
- initial release |
42 |
- [2.3.7-1] |
43 |
|
44 |
%prep |
45 |
%setup |
46 |
|
47 |
%build |
48 |
#touch root/opt/jinzora/settings.php |
49 |
# --file '/opt/jinzora/settings.php' 'attr(660,www,www)' \ |
50 |
#touch root/opt/jinzora/jukebox/settings.php |
51 |
|
52 |
%install |
53 |
rm -rf $RPM_BUILD_ROOT |
54 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
55 |
rm -f %{name}-%{version}-filelist |
56 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
57 |
--file '/opt/jinzora/jukebox/settings.php' 'attr(660,www,www)' \ |
58 |
--dir '/opt/jinzora/data' 'attr(764,www,www)' \ |
59 |
--dir '/opt/jinzora/data/artists' 'attr(764,www,www)' \ |
60 |
--dir '/opt/jinzora/data/cache' 'attr(764,www,www)' \ |
61 |
--dir '/opt/jinzora/data/cache/discussions' 'attr(764,www,www)' \ |
62 |
--dir '/opt/jinzora/data/cache/featured' 'attr(764,www,www)' \ |
63 |
--dir '/opt/jinzora/data/cache/nodes' 'attr(764,www,www)' \ |
64 |
--dir '/opt/jinzora/data/cache/request' 'attr(764,www,www)' \ |
65 |
--dir '/opt/jinzora/data/cache/tracks' 'attr(764,www,www)' \ |
66 |
--dir '/opt/jinzora/data/counter' 'attr(764,www,www)' \ |
67 |
--dir '/opt/jinzora/data/database' 'attr(764,www,www)' \ |
68 |
--dir '/opt/jinzora/data/database/discussions' 'attr(764,www,www)' \ |
69 |
--dir '/opt/jinzora/data/discussions' 'attr(764,www,www)' \ |
70 |
--dir '/opt/jinzora/data/downloads' 'attr(764,www,www)' \ |
71 |
--dir '/opt/jinzora/data/featured' 'attr(764,www,www)' \ |
72 |
--dir '/opt/jinzora/data/featured/albums' 'attr(764,www,www)' \ |
73 |
--dir '/opt/jinzora/data/featured/artists' 'attr(764,www,www)' \ |
74 |
--dir '/opt/jinzora/data/id3-cache' 'attr(764,www,www)' \ |
75 |
--dir '/opt/jinzora/data/id3-cache/discussions' 'attr(764,www,www)' \ |
76 |
--dir '/opt/jinzora/data/id3-cache/featured' 'attr(764,www,www)' \ |
77 |
--dir '/opt/jinzora/data/id3-cache/nodes' 'attr(764,www,www)' \ |
78 |
--dir '/opt/jinzora/data/id3-cache/request' 'attr(764,www,www)' \ |
79 |
--dir '/opt/jinzora/data/id3-cache/tracks' 'attr(764,www,www)' \ |
80 |
--dir '/opt/jinzora/data/id3-database' 'attr(764,www,www)' \ |
81 |
--dir '/opt/jinzora/data/images' 'attr(764,www,www)' \ |
82 |
--dir '/opt/jinzora/data/ratings' 'attr(764,www,www)' \ |
83 |
--dir '/opt/jinzora/data/tracks' 'attr(764,www,www)' \ |
84 |
--dir '/opt/jinzora/data/users' 'attr(764,www,www)' \ |
85 |
--dir '/opt/jinzora/data/viewed' 'attr(764,www,www)' \ |
86 |
--dir '/opt/jinzora/temp' 'attr(764,www,www)' \ |
87 |
> %{name}-%{version}-filelist |
88 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
89 |
|
90 |
%clean |
91 |
cd .. |
92 |
rm -rf %{name}-%{version} |
93 |
|
94 |
%pre |
95 |
#do we need to save settings.php ?? |
96 |
if [ -e /opt/jinzora/settings.php ] ; then |
97 |
cp /opt/jinzora/settings.php /opt/jinzora/settings.php.bak |
98 |
echo "/opt/jinzora/settings.php.bak created" |
99 |
fi |
100 |
|
101 |
%preun |
102 |
%post |
103 |
%postun |
104 |
|
105 |
%files -f %{name}-%{version}-filelist |
106 |
%defattr(-,root,root) |
107 |
|