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