]>
Commit | Line | Data |
---|---|---|
6b4d5677 | 1 | %include /usr/lib/rpm/macros.java |
0e794d68 | 2 | Summary: Azureus - Java BitTorrent client |
f50a5154 | 3 | Summary(pl.UTF-8): Azureus - klient BitTorrenta w Javie |
67d6f6e7 | 4 | Name: Azureus |
6b4d5677 | 5 | Version: 3.0.4.0 |
387d925a | 6 | Release: 1 |
67d6f6e7 | 7 | License: GPL |
0e794d68 | 8 | Group: X11/Applications/Networking |
67d6f6e7 | 9 | Source0: http://dl.sourceforge.net/azureus/%{name}_%{version}_source.zip |
6b4d5677 | 10 | # Source0-md5: d76fb26dc907b9ee617556be3a165ac4 |
0e794d68 MB |
11 | Source1: %{name}.png |
12 | Source2: %{name}.desktop | |
13 | Source3: %{name}.sh | |
3afe19c8 ER |
14 | Source4: %{name}-build.xml |
15 | Patch0: %{name}-platform.patch | |
67d6f6e7 | 16 | URL: http://azureus.sourceforge.net/ |
0e794d68 | 17 | BuildRequires: eclipse-swt >= 3.1.1 |
67d6f6e7 | 18 | BuildRequires: jakarta-commons-cli |
0e794d68 | 19 | BuildRequires: jdk >= 1.4 |
9eca43d8 | 20 | BuildRequires: jpackage-utils |
13954b7f | 21 | BuildRequires: logging-log4j |
6b4d5677 | 22 | BuildRequires: rpm-javaprov |
9eca43d8 ER |
23 | BuildRequires: rpmbuild(macros) >= 1.300 |
24 | BuildRequires: sed >= 4.0 | |
3e066970 | 25 | BuildRequires: unzip |
9eca43d8 | 26 | Requires: eclipse-swt >= 3.3 |
0e794d68 | 27 | Requires: jakarta-commons-cli |
0e794d68 | 28 | Requires: jre >= 1.4 |
13954b7f | 29 | Requires: logging-log4j |
387d925a | 30 | BuildArch: noarch |
67d6f6e7 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
13870637 JB |
34 | Azureus provides a BitTorrent protocol implementation using Java |
35 | language. It offers multiple torrent downloads, queuing/priority | |
36 | systems (on torrents and files), start/stop seeding options and | |
37 | instant access to numerous pieces of information about your torrents. | |
38 | Azureus now features an embedded tracker easily set up and ready to | |
39 | use. | |
40 | ||
9d60214e JR |
41 | %description -l pl.UTF-8 |
42 | Azureus dostarcza implementację protokołu BitTorrent napisaną w języku | |
43 | Java. Oferuje ściąganie wielopotokowe, systemy kolejkowania i | |
44 | priorytetów (dla potoków i plików), opcje zatrzymywania i wznawiania | |
45 | oraz bezpośredni dostęp do wielu części informacji o potokach. Azureus | |
46 | zawiera teraz wbudowany tracker łatwy do skonfigurowania i używania. | |
67d6f6e7 | 47 | |
48 | %prep | |
13870637 | 49 | %setup -q -c |
9eca43d8 ER |
50 | find '(' -name '*.java' -o -name '*.xml' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' |
51 | ||
52 | %patch0 -p1 | |
3afe19c8 | 53 | cp %{SOURCE4} build.xml |
9eca43d8 | 54 | |
3afe19c8 | 55 | find -name 'osx' | xargs rm -r |
9eca43d8 ER |
56 | find -name 'macosx' | xargs rm -r |
57 | find -name 'win32*' | xargs rm -r | |
58 | find -name 'Win32*' | xargs rm -r | |
59 | # Remove test code | |
60 | rm org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java | |
67d6f6e7 | 61 | |
62 | %build | |
a932f518 | 63 | export ANT_OPTS=-Xmx256M |
9eca43d8 | 64 | %ant jar |
67d6f6e7 | 65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
387d925a | 68 | install -d $RPM_BUILD_ROOT{%{_datadir}/Azureus,%{_pixmapsdir},%{_desktopdir},%{_bindir}} |
67d6f6e7 | 69 | |
0e794d68 MB |
70 | install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} |
71 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
72 | install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/Azureus | |
387d925a | 73 | install dist/Azureus2.jar $RPM_BUILD_ROOT%{_datadir}/Azureus/Azureus.jar |
67d6f6e7 | 74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
0e794d68 MB |
80 | %attr(755,root,root) %{_bindir}/Azureus |
81 | %{_desktopdir}/Azureus.desktop | |
82 | %{_pixmapsdir}/Azureus.png | |
387d925a | 83 | %{_datadir}/Azureus |