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