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