]> git.pld-linux.org Git - packages/BitTorrent.git/blame - BitTorrent.spec
BR: rpmbuild(macros) >= 1.710
[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/
a2f29f94 16BuildRequires: rpmbuild(macros) >= 1.710
3ee0d26f 17BuildRequires: gettext-tools
e883a7a1 18BuildRequires: python-TwistedCore
016d21cc 19BuildRequires: python-devel
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
da0a5249 85%py_install
ee5009dd 86
2177905c 87find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
8bc454ed 88install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
9a01a1bc 89
5527405d 90rm -rf locale/piglatin
ee5009dd
AM
91find locale -type f ! -name '*.mo' -exec rm "{}" ";"
92cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
93
d0846b35 94cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
211fa997
PZ
95cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
96
9457d9c8
AM
97%find_lang bittorrent
98
9a01a1bc
JR
99%clean
100rm -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
This page took 0.059364 seconds and 4 git commands to generate.