]>
Commit | Line | Data |
---|---|---|
ef74b234 | 1 | Summary: BitTorrent - a tool for distributing files |
54f475c0 | 2 | Summary(pl.UTF-8): BitTorrent - narzędzie do rozpowszechniania plików |
9a01a1bc | 3 | Name: BitTorrent |
79658934 | 4 | Version: 5.0.8 |
9ad88483 | 5 | Release: 1 |
14149364 | 6 | License: BitTorrent Open Source License |
9a01a1bc | 7 | Group: Applications/Communications |
9ad88483 | 8 | Source0: http://download.bittorrent.com/dl/%{name}-%{version}.tar.gz |
79658934 | 9 | # Source0-md5: 43935e080fade4726fa07bb2565f5f48 |
211fa997 | 10 | Source1: %{name}.desktop |
8bc454ed | 11 | Patch0: %{name}-man_pages.patch |
25b75907 | 12 | Patch1: %{name}-morei18n.patch |
f22a5ccd | 13 | Patch2: %{name}-pl.patch |
e64e4cc6 | 14 | URL: http://www.bittorrent.com/ |
72d21b93 | 15 | BuildRequires: python-devel |
803478f1 | 16 | BuildRequires: python-devel-tools |
e883a7a1 | 17 | BuildRequires: python-TwistedCore |
2db6b2ff | 18 | BuildRequires: rpm-pythonprov |
18f44be2 | 19 | BuildRequires: sed >= 4.0 |
a0740cf6 | 20 | %pyrequires_eq python-modules |
1ff8a532 | 21 | Requires: python-Crypto |
a17fd1cc | 22 | Requires: python-TwistedCore |
753840bb | 23 | Requires: python-TwistedWeb |
72d21b93 | 24 | BuildArch: noarch |
9a01a1bc JR |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
ef74b234 JB |
28 | BitTorrent is a tool for distributing files. It's extremely easy to |
29 | use - downloads are started by clicking on hyperlinks. Whenever more | |
30 | than one person is downloading at once they send pieces of the file(s) | |
31 | to each other, thus relieving the central server's bandwidth burden. | |
32 | Even with many simultaneous downloads, the upload burden on the | |
33 | central server remains quite small, since each new downloader | |
34 | introduces new upload capacity. | |
35 | ||
6c7588b7 JR |
36 | %description -l pl.UTF-8 |
37 | BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe | |
38 | w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza. | |
39 | Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku | |
40 | między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy | |
41 | wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera | |
42 | pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe | |
43 | możliwości ściągania. | |
9a01a1bc | 44 | |
255a2487 | 45 | %package gui |
46 | Summary: GUI for BitTorrent | |
54f475c0 | 47 | Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTorrenta |
255a2487 | 48 | Group: X11/Applications |
3958913c | 49 | Requires: %{name} = %{version}-%{release} |
c8346753 | 50 | Requires: python-wxPython |
255a2487 | 51 | |
52 | %description gui | |
14149364 | 53 | GUI for BitTorrent. |
255a2487 | 54 | |
6c7588b7 JR |
55 | %description gui -l pl.UTF-8 |
56 | Graficzny interfejs użytkownika dla BitTorrenta. | |
255a2487 | 57 | |
9a01a1bc JR |
58 | %prep |
59 | %setup -q | |
8bc454ed | 60 | %patch0 -p1 |
25b75907 | 61 | %patch1 -p1 |
f22a5ccd | 62 | %patch2 -p1 |
25b75907 | 63 | |
25b75907 | 64 | mv -f po/nb{_NO,}.po |
bfce510c JB |
65 | rm -rf locale |
66 | sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py | |
9a01a1bc JR |
67 | |
68 | %build | |
45280beb AM |
69 | find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";" |
70 | ||
ee5009dd AM |
71 | sh makei18n.sh |
72 | ||
9a01a1bc JR |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
211fa997 | 75 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1} |
9a01a1bc | 76 | |
ee5009dd AM |
77 | python ./setup.py install \ |
78 | --optimize=2 \ | |
79 | --root=$RPM_BUILD_ROOT | |
80 | ||
2177905c | 81 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm |
8bc454ed | 82 | install debian/* $RPM_BUILD_ROOT%{_mandir}/man1 |
9a01a1bc | 83 | |
ee5009dd AM |
84 | rm -rf locale/{in,nn_NO,piglatin} |
85 | find locale -type f ! -name '*.mo' -exec rm "{}" ";" | |
86 | cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale | |
87 | ||
d0846b35 | 88 | cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png |
211fa997 PZ |
89 | cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
90 | ||
9457d9c8 AM |
91 | %find_lang bittorrent |
92 | ||
9a01a1bc JR |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
211fa997 PZ |
96 | %post gui |
97 | %update_desktop_database_post | |
98 | ||
99 | %postun gui | |
100 | %update_desktop_database_postun | |
101 | ||
9457d9c8 | 102 | %files -f bittorrent.lang |
9a01a1bc | 103 | %defattr(644,root,root,755) |
e64e4cc6 | 104 | %doc LICENSE.txt README.txt credits.txt |
9457d9c8 AM |
105 | %attr(755,root,root) %{_bindir}/bittorrent-console |
106 | %attr(755,root,root) %{_bindir}/bittorrent-curses | |
107 | %attr(755,root,root) %{_bindir}/bittorrent-tracker | |
108 | %attr(755,root,root) %{_bindir}/changetracker-console | |
109 | %attr(755,root,root) %{_bindir}/launchmany-console | |
110 | %attr(755,root,root) %{_bindir}/launchmany-curses | |
111 | %attr(755,root,root) %{_bindir}/maketorrent-console | |
112 | %attr(755,root,root) %{_bindir}/torrentinfo-console | |
dab3f647 | 113 | %dir %{py_sitescriptdir}/BitTorrent |
114 | %{py_sitescriptdir}/BitTorrent/*.py[co] | |
ee5009dd | 115 | %{py_sitescriptdir}/Zeroconf.py[co] |
c83c870a | 116 | %{py_sitescriptdir}/khashmir |
9ad88483 | 117 | %{py_sitescriptdir}/BTL |
8bc454ed | 118 | %{_mandir}/man1/* |
255a2487 | 119 | |
120 | %files gui | |
4fba034b | 121 | %defattr(644,root,root,755) |
9457d9c8 AM |
122 | %attr(755,root,root) %{_bindir}/bittorrent |
123 | %attr(755,root,root) %{_bindir}/maketorrent | |
dab3f647 | 124 | %{py_sitescriptdir}/BitTorrent/GUI_wx |
d0846b35 | 125 | %{_pixmapsdir}/*-%{version} |
211fa997 PZ |
126 | %{_pixmapsdir}/bittorrent.png |
127 | %{_desktopdir}/%{name}.desktop |