]> git.pld-linux.org Git - packages/Azureus.git/blobdiff - Azureus.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/Azureus.git] / Azureus.spec
index 2199df98a068f9d1d4fbd7e233c4b558611b5df2..2b4608798fcb3ad46bc78a3a33e4489d9f35cd21 100644 (file)
@@ -1,25 +1,29 @@
 Summary:       Azureus - Java BitTorrent client
 Summary(pl.UTF-8):     Azureus - klient BitTorrenta w Javie
 Name:          Azureus
-Version:       2.5.0.0
+Version:       3.0.4.2
 Release:       1
 License:       GPL
 Group:         X11/Applications/Networking
 Source0:       http://dl.sourceforge.net/azureus/%{name}_%{version}_source.zip
-# Source0-md5: f487f75f37674820bd3b2cc6af97ce57
+# Source0-md5: fff98b2e2c2006cd71acf10116fc81c6
 Source1:       %{name}.png
 Source2:       %{name}.desktop
 Source3:       %{name}.sh
-Patch0:                %{name}-buildfile.patch
-Patch1:                %{name}-nomacosx.patch
-Patch2:                %{name}-swt31.patch
+Source4:       %{name}-build.xml
+Patch0:                %{name}-platform.patch
 URL:           http://azureus.sourceforge.net/
 BuildRequires: eclipse-swt >= 3.1.1
 BuildRequires: jakarta-commons-cli
 BuildRequires: jdk >= 1.4
+BuildRequires: jpackage-utils
+BuildRequires: junit
 BuildRequires: logging-log4j
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: sed >= 4.0
 BuildRequires: unzip
-Requires:      eclipse-swt >= 3.1.1
+Requires:      eclipse-swt >= 3.3
 Requires:      jakarta-commons-cli
 Requires:      jre >= 1.4
 Requires:      logging-log4j
@@ -43,15 +47,21 @@ zawiera teraz wbudowany tracker łatwy do skonfigurowania i używania.
 
 %prep
 %setup -q -c
-%patch0 -p0
-%patch1 -p1
-%patch2 -p1
+find '(' -name '*.java' -o -name '*.xml' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+
+%patch0 -p1
+cp %{SOURCE4} build.xml
+
+find -name 'osx' | xargs rm -r
+find -name 'macosx' | xargs rm -r
+find -name 'win32*' | xargs rm -r
+find -name 'Win32*' | xargs rm -r
+# Remove test code
+rm org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java
 
 %build
-rm -rf org/gudy/azureus2/platform/macosx/access
-rm -rf org/gudy/azureus2/ui/swt/{osx,test}
-##export ANT_OPTS=-Xmx128M
-ant jar
+export ANT_OPTS=-Xmx256M
+%ant jar
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.078523 seconds and 4 git commands to generate.