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