]> git.pld-linux.org Git - packages/Azureus.git/blob - Azureus.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/Azureus.git] / Azureus.spec
1 %include        /usr/lib/rpm/macros.java
2 Summary:        Azureus - Java BitTorrent client
3 Summary(pl.UTF-8):      Azureus - klient BitTorrenta w Javie
4 Name:           Azureus
5 Version:        3.0.4.2
6 Release:        1
7 License:        GPL
8 Group:          X11/Applications/Networking
9 Source0:        http://dl.sourceforge.net/azureus/%{name}_%{version}_source.zip
10 # Source0-md5:  fff98b2e2c2006cd71acf10116fc81c6
11 Source1:        %{name}.png
12 Source2:        %{name}.desktop
13 Source3:        %{name}.sh
14 Source4:        %{name}-build.xml
15 Patch0:         %{name}-platform.patch
16 URL:            http://azureus.sourceforge.net/
17 BuildRequires:  eclipse-swt >= 3.1.1
18 BuildRequires:  jakarta-commons-cli
19 BuildRequires:  jdk >= 1.4
20 BuildRequires:  jpackage-utils
21 BuildRequires:  junit
22 BuildRequires:  logging-log4j
23 BuildRequires:  rpm-javaprov
24 BuildRequires:  rpmbuild(macros) >= 1.300
25 BuildRequires:  sed >= 4.0
26 BuildRequires:  unzip
27 Requires:       eclipse-swt >= 3.3
28 Requires:       jakarta-commons-cli
29 Requires:       jre >= 1.4
30 Requires:       logging-log4j
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
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
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.
48
49 %prep
50 %setup -q -c
51 find '(' -name '*.java' -o -name '*.xml' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
52
53 %patch0 -p1
54 cp %{SOURCE4} build.xml
55
56 find -name 'osx' | xargs rm -r
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
62
63 %build
64 export ANT_OPTS=-Xmx256M
65 %ant jar
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_datadir}/Azureus,%{_pixmapsdir},%{_desktopdir},%{_bindir}}
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/Azureus
74 install dist/Azureus2.jar $RPM_BUILD_ROOT%{_datadir}/Azureus/Azureus.jar
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_bindir}/Azureus
82 %{_desktopdir}/Azureus.desktop
83 %{_pixmapsdir}/Azureus.png
84 %{_datadir}/Azureus
This page took 0.057764 seconds and 3 git commands to generate.