]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
BR: rpmbuild(macros) >= 1.710
[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:  rpmbuild(macros) >= 1.710
17 BuildRequires:  gettext-tools
18 BuildRequires:  python-TwistedCore
19 BuildRequires:  python-devel
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 %py_install
86
87 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
88 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
89
90 rm -rf locale/piglatin
91 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
92 cp -a locale/*  $RPM_BUILD_ROOT%{_datadir}/locale
93
94 cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
95 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
96
97 %find_lang bittorrent
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post gui
103 %update_desktop_database_post
104
105 %postun gui
106 %update_desktop_database_postun
107
108 %files -f bittorrent.lang
109 %defattr(644,root,root,755)
110 %doc LICENSE.txt README.txt credits.txt
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
119 %dir %{py_sitescriptdir}/BitTorrent
120 %{py_sitescriptdir}/BitTorrent/*.py[co]
121 %{py_sitescriptdir}/Zeroconf.py[co]
122 %{py_sitescriptdir}/khashmir
123 %{py_sitescriptdir}/BTL
124 %{py_sitescriptdir}/*.egg-info
125 %{_mandir}/man1/*
126
127 %files gui
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_bindir}/bittorrent
130 %attr(755,root,root) %{_bindir}/maketorrent
131 %{py_sitescriptdir}/BitTorrent/GUI_wx
132 %{_pixmapsdir}/*-%{version}
133 %{_pixmapsdir}/bittorrent.png
134 %{_desktopdir}/%{name}.desktop
This page took 0.036931 seconds and 3 git commands to generate.