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