]> git.pld-linux.org Git - packages/BitTorrent.git/blame - BitTorrent.spec
- massive change ( validate errors warrings from desktop-file-validate)
[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
79658934 4Version: 5.0.8
9ad88483 5Release: 1
14149364 6License: BitTorrent Open Source License
9a01a1bc 7Group: Applications/Communications
9ad88483 8Source0: http://download.bittorrent.com/dl/%{name}-%{version}.tar.gz
79658934 9# Source0-md5: 43935e080fade4726fa07bb2565f5f48
211fa997 10Source1: %{name}.desktop
8bc454ed 11Patch0: %{name}-man_pages.patch
25b75907 12Patch1: %{name}-morei18n.patch
f22a5ccd 13Patch2: %{name}-pl.patch
e64e4cc6 14URL: http://www.bittorrent.com/
72d21b93 15BuildRequires: python-devel
803478f1 16BuildRequires: python-devel-tools
e883a7a1 17BuildRequires: python-TwistedCore
2db6b2ff 18BuildRequires: rpm-pythonprov
18f44be2 19BuildRequires: sed >= 4.0
a0740cf6 20%pyrequires_eq python-modules
1ff8a532 21Requires: python-Crypto
a17fd1cc 22Requires: python-TwistedCore
753840bb 23Requires: python-TwistedWeb
72d21b93 24BuildArch: noarch
9a01a1bc
JR
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
ef74b234
JB
28BitTorrent is a tool for distributing files. It's extremely easy to
29use - downloads are started by clicking on hyperlinks. Whenever more
30than one person is downloading at once they send pieces of the file(s)
31to each other, thus relieving the central server's bandwidth burden.
32Even with many simultaneous downloads, the upload burden on the
33central server remains quite small, since each new downloader
34introduces new upload capacity.
35
6c7588b7
JR
36%description -l pl.UTF-8
37BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe
38w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza.
39Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku
40między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy
41wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera
42pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe
43możliwości ściągania.
9a01a1bc 44
255a2487 45%package gui
46Summary: GUI for BitTorrent
54f475c0 47Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTorrenta
255a2487 48Group: X11/Applications
3958913c 49Requires: %{name} = %{version}-%{release}
c8346753 50Requires: python-wxPython
255a2487 51
52%description gui
14149364 53GUI for BitTorrent.
255a2487 54
6c7588b7
JR
55%description gui -l pl.UTF-8
56Graficzny 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 64mv -f po/nb{_NO,}.po
bfce510c
JB
65rm -rf locale
66sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py
9a01a1bc
JR
67
68%build
45280beb
AM
69find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
70
ee5009dd
AM
71sh makei18n.sh
72
9a01a1bc
JR
73%install
74rm -rf $RPM_BUILD_ROOT
211fa997 75install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
9a01a1bc 76
ee5009dd
AM
77python ./setup.py install \
78 --optimize=2 \
79 --root=$RPM_BUILD_ROOT
80
2177905c 81find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
8bc454ed 82install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
9a01a1bc 83
ee5009dd
AM
84rm -rf locale/{in,nn_NO,piglatin}
85find locale -type f ! -name '*.mo' -exec rm "{}" ";"
86cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
87
d0846b35 88cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
211fa997
PZ
89cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
90
9457d9c8
AM
91%find_lang bittorrent
92
9a01a1bc
JR
93%clean
94rm -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
This page took 0.148803 seconds and 4 git commands to generate.