]> git.pld-linux.org Git - packages/BitTorrent.git/blame - BitTorrent.spec
- more locale fixes, rel. 3
[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
5527405d 5Release: 3
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
5527405d 69mv -f po/nn{_NO,}.po
70mv -f po/{in,id}.po
bfce510c 71rm -rf locale
d96bdb29 72sed -i -e "s/'nb_NO'/'nb'/" BTL/language.py
5527405d 73sed -i -e "s/'nn_NO'/'nn'/" BTL/language.py
74sed -i -e "s/'in'/'id'/" BTL/language.py
9a01a1bc
JR
75
76%build
45280beb
AM
77find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
78
ee5009dd
AM
79sh makei18n.sh
80
9a01a1bc
JR
81%install
82rm -rf $RPM_BUILD_ROOT
211fa997 83install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
9a01a1bc 84
ee5009dd
AM
85python ./setup.py install \
86 --optimize=2 \
87 --root=$RPM_BUILD_ROOT
88
2177905c 89find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
8bc454ed 90install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
9a01a1bc 91
5527405d 92rm -rf locale/piglatin
ee5009dd
AM
93find locale -type f ! -name '*.mo' -exec rm "{}" ";"
94cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
95
d0846b35 96cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
211fa997
PZ
97cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98
9457d9c8
AM
99%find_lang bittorrent
100
9a01a1bc
JR
101%clean
102rm -rf $RPM_BUILD_ROOT
103
211fa997
PZ
104%post gui
105%update_desktop_database_post
106
107%postun gui
108%update_desktop_database_postun
109
9457d9c8 110%files -f bittorrent.lang
9a01a1bc 111%defattr(644,root,root,755)
e64e4cc6 112%doc LICENSE.txt README.txt credits.txt
9457d9c8
AM
113%attr(755,root,root) %{_bindir}/bittorrent-console
114%attr(755,root,root) %{_bindir}/bittorrent-curses
115%attr(755,root,root) %{_bindir}/bittorrent-tracker
116%attr(755,root,root) %{_bindir}/changetracker-console
117%attr(755,root,root) %{_bindir}/launchmany-console
118%attr(755,root,root) %{_bindir}/launchmany-curses
119%attr(755,root,root) %{_bindir}/maketorrent-console
120%attr(755,root,root) %{_bindir}/torrentinfo-console
dab3f647 121%dir %{py_sitescriptdir}/BitTorrent
122%{py_sitescriptdir}/BitTorrent/*.py[co]
ee5009dd 123%{py_sitescriptdir}/Zeroconf.py[co]
c83c870a 124%{py_sitescriptdir}/khashmir
9ad88483 125%{py_sitescriptdir}/BTL
2a041502 126%{py_sitescriptdir}/*.egg-info
8bc454ed 127%{_mandir}/man1/*
255a2487 128
129%files gui
4fba034b 130%defattr(644,root,root,755)
9457d9c8
AM
131%attr(755,root,root) %{_bindir}/bittorrent
132%attr(755,root,root) %{_bindir}/maketorrent
dab3f647 133%{py_sitescriptdir}/BitTorrent/GUI_wx
d0846b35 134%{_pixmapsdir}/*-%{version}
211fa997
PZ
135%{_pixmapsdir}/bittorrent.png
136%{_desktopdir}/%{name}.desktop
This page took 0.088846 seconds and 4 git commands to generate.