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