packages netbeans-svnclientadapter.spec
      Pages: < 1 >  DOWNLOAD      
%define        pkgver 1.6.0
Name:          netbeans-svnclientadapter
Version:       6.7.1
Release:       2mamba
Summary:       Subversion Client Adapter
Group:         Development/Libraries/Java
Vendor:        netbeans.org
Distribution:  netbeans.6.7.1
Packager:      gil <puntogil@...>
URL:           http://subversion.netbeans.org/teepee/svnclientadapter.html
#Source:        http://subversion.netbeans.org/files/documents/193/1800/svnClientAdapter-nb6.0.1-src.zip
# svn --username guest co http://subclipse.tigris.org/svn/subclipse/tags/subclipse/1.6.0/svnClientAdapter svnClientAdapter-1.6.0
# tar -czvf svnClientAdapter-1.6.0.tar.gz svnClientAdapter-1.6.0
Source:        svnClientAdapter-%{pkgver}-src-svn.tar.gz
Patch0:        netbeans-6.7.1-svnclientadapter-1.6.0-build.patch
License:       Apache Software License Version 2.0
BuildRequires: apache-ant
BuildRequires: apache-ant-nodeps
BuildRequires: apache-ant-junit
BuildRequires: java-emma
BuildRequires: java-openjdk
BuildRequires: java-subversion
BuildRequires: jpackage-utils
Requires:      java-subversion
Requires:      jpackage-utils
Requires:      subversion
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
SVNClientAdapter is a high-level Java API for Subversion.
This is a NetBeans forked version of SvnClientAdapter.

%prep

%setup -q -n svnClientAdapter

for j in $(find . -name "*.jar"); do
	mv $j $j.no
done

%patch -p1

ln -sf %{_javadir}/svn-javahl.jar lib/svnjavahl.jar

%build

export JAVA_HOME=/usr/lib/jvm/java
export CLASSPATH=$(build-classpath emma_ant emma ant/ant-nodeps ant/ant-junit)
ant -verbose svnClientAdapter.jar

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}

install -m 644 build/lib/svnClientAdapter.jar\
	%{buildroot}%{_javadir}/%{name}-%{version}.jar

pushd %{buildroot}%{_javadir}
	ln -sf %{name}-%{version}.jar %{name}.jar
popd

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_javadir}/netbeans-svnclientadapter-%{version}.jar
%{_javadir}/netbeans-svnclientadapter.jar
%doc license.txt readme.txt

%changelog
* Fri Feb 25 2011 gil <puntogil@...> 6.7.1-2mamba
- rebuilt with OpenJDK support

* Tue Dec 15 2009 gil <puntogil@...> 6.7.1-1mamba
- update to 6.7.1

* Wed Apr 08 2009 gil <puntogil@...> 6.5-1mamba
- update to 6.5

* Mon Dec 22 2008 gil <puntogil@...> 6.1-1mamba
- package created by autospec