Author: jajcus Date: Fri May 26 11:25:35 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - tests disabled, as they fail (no good, but better faulty package, that none) - BRs updated - ExclusiveArch - javadoc subpackages
---- Files affected: SPECS: jakarta-commons-net.spec (1.10 -> 1.11) ---- Diffs: ================================================================ Index: SPECS/jakarta-commons-net.spec diff -u SPECS/jakarta-commons-net.spec:1.10 SPECS/jakarta-commons-net.spec:1.11 --- SPECS/jakarta-commons-net.spec:1.10 Fri May 19 13:28:19 2006 +++ SPECS/jakarta-commons-net.spec Fri May 26 13:25:28 2006 @@ -1,4 +1,8 @@ # $Revision$, $Date$ +# +# TODO: +# - check why the tests fail and fix that +# Summary: Jakarta Commons Net - utility functions and components Summary(pl): Jakarta Commons Net - funkcje i komponenty narzędziowe Name: jakarta-commons-net @@ -8,18 +12,20 @@ Group: Development/Languages/Java Source0: http://www.apache.org/dist/jakarta/commons/net/source/commons-net-%{version}-src.tar.gz # Source0-md5: ccbb3f67b55e8a7a676499db4386673c +Patch0: %{name}-disable_tests.patch URL: http://jakarta.apache.org/commons/net/ -BuildRequires: ant(junit) >= 1.5 +BuildRequires: ant-junit >= 1.5 BuildRequires: jakarta-oro >= 2.0.8 BuildRequires: jaxp +BuildRequires: jpackage-utils +BuildRequires: rpmbuild(macros) >= 1.300 BuildRequires: junit Requires: jakarta-oro >= 2.0.8 Requires: jre BuildArch: noarch +ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _javalibdir %{_datadir}/java - %description Jakarta Commons Net is a set of utility functions and reusable components that should be a help in any Java environment. @@ -28,30 +34,54 @@ Jakarta Commons Net to zestaw funkcji narzędziowych i komponentów wielokrotnego użycia, które mogą być pomocne w każdym środowisku Javy. +%package javadoc +Summary: Jakarta Commons Net documentation +Summary(pl): Dokumentacja do Jakarta Commons Net +Group: Development/Languages/Java + +%description javadoc +Jakarta Commons Net documentation. + +%description javadoc -l pl +Dokumentacja do Jakarta Commons Net. + + %prep %setup -q -n commons-net-%{version} +%patch0 -p1 %build cp LICENSE.txt LICENSE -# for tests -export CLASSPATH=%{_javadir}/oro.jar +export CLASSPATH="`build-classpath oro junit`" +export JAVA_HOME="%{java_home}" + +# needed for tests, for some reason they ignore $CLASSPATH +mkdir -p target/lib +ln -sf %{_javadir}/oro.jar target/lib + ant dist \ -Dnoget=1 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_javalibdir} +install -d $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}/%{name}-%{version}} + +install dist/*.jar $RPM_BUILD_ROOT%{_javadir} +ln -sf commons-net-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/commons-net.jar -install dist/*.jar $RPM_BUILD_ROOT%{_javalibdir} -ln -sf commons-net-%{version}.jar $RPM_BUILD_ROOT%{_javalibdir}/commons-net.jar +cp -R dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc dist/LICENSE dist/docs/api -%{_javalibdir}/*.jar +%doc dist/LICENSE +%{_javadir}/*.jar + +%files javadoc +%defattr(644,root,root,755) +%doc %{_javadocdir}/%{name}-%{version} %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -59,6 +89,12 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.11 2006/05/26 11:25:28 jajcus +- tests disabled, as they fail (no good, but better faulty package, that none) +- BRs updated +- ExclusiveArch +- javadoc subpackages + Revision 1.10 2006/05/19 11:28:19 jajcus - s/jakarta-ant/ant/ in BR ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/jakarta-commons-net.spec?r1=1.10&r2=1.11&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
