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