1 |
# $Id$ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
%define name tf-b4rt |
6 |
%define version 1.0.beta1 |
7 |
%define release 1 |
8 |
Summary: Torrentflux-b4rt is a web based transfer control client. |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://tf-b4rt.berlios.de/ |
14 |
Group: SMEserver/addon |
15 |
Source: torrentflux-b4rt_1.0-beta1.tar.bz2 |
16 |
BuildArchitectures: noarch |
17 |
BuildRoot: /var/tmp/%{name}-%{version} |
18 |
Requires: e-smith-release >= 7.0 |
19 |
BuildRequires: e-smith-devtools |
20 |
AutoReqProv: no |
21 |
|
22 |
%description |
23 |
http://tf-b4rt.berlios.de/ |
24 |
Torrentflux-b4rt is a web based transfer control client. |
25 |
|
26 |
Torrentflux-b4rt allows you to control your internet downloads / transfers from anywhere |
27 |
using a highly configurable web based front end. |
28 |
|
29 |
%changelog |
30 |
* Sun Sep 16 2007 Stephen Noble <support@dungog.net> 1.0-beta1 |
31 |
- initial release |
32 |
- builds from unchanged .tar.bz2 |
33 |
|
34 |
%prep |
35 |
%setup -c -n torrentflux-b4rt_1.0-beta1 |
36 |
%build |
37 |
#drop in an unchanged .tgz |
38 |
mkdir -p root/opt/ |
39 |
mv torrentflux-b4rt_1.0-beta1 root/opt/b4rt |
40 |
rm -rf root/opt/b4rt/clients #don't need these, lets save some bandwidth |
41 |
mkdir -p root/opt/b4rt/html/downloads |
42 |
mv root/opt/b4rt/html/setup.php root/opt/b4rt/setup.php #move setup from html |
43 |
mv root/opt/b4rt/doc/manual.txt root/opt/b4rt/html #make manual visible |
44 |
|
45 |
%install |
46 |
rm -rf $RPM_BUILD_ROOT |
47 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
48 |
rm -f %{name}-%{version}-filelist |
49 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
50 |
--dir '/opt/b4rt/html/inc/config' 'attr(775,www,www)' \ |
51 |
--dir '/opt/b4rt/html/downloads' 'attr(775,www,www)' \ |
52 |
> %{name}-%{version}-filelist |
53 |
|
54 |
%clean |
55 |
cd .. |
56 |
rm -rf %{name} |
57 |
|
58 |
%pre |
59 |
%preun |
60 |
%post |
61 |
%postun |
62 |
|
63 |
%files -f %{name}-%{version}-filelist |
64 |
%defattr(-,root,root) |