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