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