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