Accepting request 241539 from Java:packages
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/241539 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmldb-api?expand=0&rev=14
This commit is contained in:
commit
d535a2e4de
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 11 14:05:29 UTC 2014 - tchvatal@suse.com
|
||||
|
||||
- Cleanup with spec-cleaner and do not version javadoc dir.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 27 11:21:01 UTC 2014 - tchvatal@suse.com
|
||||
|
||||
|
@ -16,9 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%define bname xmldb
|
||||
%define cvs_version 20041010
|
||||
|
||||
%define bname xmldb
|
||||
%define cvs_version 20041010
|
||||
Name: xmldb-api
|
||||
Version: 0.1
|
||||
Release: 0
|
||||
@ -30,13 +29,13 @@ Url: http://xmldb-org.sourceforge.net
|
||||
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xmldb-org export -D 2004-10-10 xapi
|
||||
Source0: xmldb-xapi-%{cvs_version}-src.tar.bz2
|
||||
Patch0: xmldb-api-java5-enum.patch
|
||||
Requires: xalan-j2
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: junit
|
||||
BuildRequires: xalan-j2
|
||||
BuildArch: noarch
|
||||
Requires: xalan-j2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The API interfaces are what driver developers must implement when
|
||||
@ -44,8 +43,6 @@ creating a new driver and are the interfaces that applications are
|
||||
developed against. Along with the interfaces a concrete DriverManager
|
||||
implementation is also provides.
|
||||
|
||||
|
||||
|
||||
%package sdk
|
||||
Summary: SDK for XML:DB API
|
||||
Group: Development/Libraries/Java
|
||||
@ -69,8 +66,6 @@ test cases that can be used to help validate the driver while it is
|
||||
being developed. The test cases are still in development but there are
|
||||
enough tests currently to be useful.
|
||||
|
||||
|
||||
|
||||
%package -n xmldb-common
|
||||
Summary: XML:DB API for Java
|
||||
Group: Development/Libraries/Java
|
||||
@ -82,8 +77,6 @@ creating a new driver and are the interfaces that applications are
|
||||
developed against. Along with the interfaces a concrete DriverManager
|
||||
implementation is also provides.
|
||||
|
||||
|
||||
|
||||
%package javadoc
|
||||
Summary: XML:DB API for Java
|
||||
Group: Development/Libraries/Java
|
||||
@ -94,13 +87,11 @@ creating a new driver and are the interfaces that applications are
|
||||
developed against. Along with the interfaces a concrete DriverManager
|
||||
implementation is also provides.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n xapi
|
||||
%patch0 -p1
|
||||
find . -name "*.jar" | xargs -t rm
|
||||
# FIXME: (dwalluck): These use org.apache.xalan.xpath
|
||||
# FIXME: (dwalluck): These use org.apache.xalan.xpath
|
||||
rm src/common/org/xmldb/common/xml/queries/xalan/XPathQueryImpl.java
|
||||
rm src/common/org/xmldb/common/xml/queries/xalan/XObjectImpl.java
|
||||
rm src/common/org/xmldb/common/xml/queries/xalan/XPathQueryFactoryImpl.java
|
||||
@ -110,22 +101,21 @@ rm src/common/org/xmldb/common/xml/queries/xt/XPathQueryFactoryImpl.java
|
||||
%build
|
||||
export CLASSPATH=$(build-classpath junit xalan-j2)
|
||||
export OPT_JAR_LIST=:
|
||||
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Djarname=%{name} -Dsdk.jarname=%{name}-sdk dist
|
||||
ant \
|
||||
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
|
||||
-Djarname=%{name} -Dsdk.jarname=%{name}-sdk \
|
||||
dist
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 dist/xmldb/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
install -m 644 dist/xmldb/%{name}-sdk.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-sdk-%{version}.jar
|
||||
install -m 644 dist/xmldb/%{bname}-common.jar $RPM_BUILD_ROOT%{_javadir}/%{bname}-common-%{version}.jar
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -m 644 dist/xmldb/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
install -m 644 dist/xmldb/%{name}-sdk.jar %{buildroot}%{_javadir}/%{name}-sdk-%{version}.jar
|
||||
install -m 644 dist/xmldb/%{bname}-common.jar %{buildroot}%{_javadir}/%{bname}-common-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
# javadoc
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr src/build/javadoc/full/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr src/build/javadoc/full/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -145,7 +135,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user