Group :: Development/Java
RPM: netbeans-resolver
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Packager: Igor Vlasenko <viy at altlinux.ru>
BuildRequires: /proc
BuildRequires: jpackage-1.6-compat
%define patched_resolver_ver 1.1
%define patched_resolver xml-commons-resolver-%{patched_resolver_ver}
Name: netbeans-resolver
Version: 6.1
Release: alt1_5jpp6
Summary: Resolver subproject of xml-commons patched for NetBeans
Group: Development/Java
License: ASL 1.1
URL: http://xml.apache.org/commons/
Source0: http://www.apache.org/dist/xml/commons/%{patched_resolver}.zip
# see http://hg.netbeans._org/main/file/721f72486327/o.apache.xml.resolver/external/readme.txt
Patch0: %{name}-%{version}.patch
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: ant
BuildRequires: dos2unix
Requires: jpackage-utils
%description
Resolver subproject of xml-commons, version %{patched_resolver_ver} with
a patch for NetBeans.
%prep
%setup -q -n %{patched_resolver}
# remove all binary libs and prebuilt javadocs
find . -name "*.jar" -exec rm -f {} \;
%{__rm} -rf docs
%patch0 -p1 -b .sav
dos2unix -k KEYS
dos2unix -k LICENSE.resolver.txt
%build
%{ant} -f resolver.xml jar
%install
# JARs
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p build/resolver.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%files
%{_javadir}/*
%doc LICENSE.resolver.txt KEYS
%changelog
…
Full changelog you can see here
BuildRequires: /proc
BuildRequires: jpackage-1.6-compat
%define patched_resolver_ver 1.1
%define patched_resolver xml-commons-resolver-%{patched_resolver_ver}
Name: netbeans-resolver
Version: 6.1
Release: alt1_5jpp6
Summary: Resolver subproject of xml-commons patched for NetBeans
Group: Development/Java
License: ASL 1.1
URL: http://xml.apache.org/commons/
Source0: http://www.apache.org/dist/xml/commons/%{patched_resolver}.zip
# see http://hg.netbeans._org/main/file/721f72486327/o.apache.xml.resolver/external/readme.txt
Patch0: %{name}-%{version}.patch
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: ant
BuildRequires: dos2unix
Requires: jpackage-utils
%description
Resolver subproject of xml-commons, version %{patched_resolver_ver} with
a patch for NetBeans.
%prep
%setup -q -n %{patched_resolver}
# remove all binary libs and prebuilt javadocs
find . -name "*.jar" -exec rm -f {} \;
%{__rm} -rf docs
%patch0 -p1 -b .sav
dos2unix -k KEYS
dos2unix -k LICENSE.resolver.txt
%build
%{ant} -f resolver.xml jar
%install
# JARs
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p build/resolver.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%files
%{_javadir}/*
%doc LICENSE.resolver.txt KEYS
%changelog
…
Full changelog you can see here