- Cleanup with spec-cleaner and do not version javadoc dir.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmldb-api?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal 2014-07-11 14:05:39 +00:00 committed by Git OBS Bridge
parent 03909fcd47
commit 96e479cb93
2 changed files with 21 additions and 27 deletions

View File

@ -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 Fri Jun 27 11:21:01 UTC 2014 - tchvatal@suse.com

View File

@ -18,7 +18,6 @@
%define bname xmldb %define bname xmldb
%define cvs_version 20041010 %define cvs_version 20041010
Name: xmldb-api Name: xmldb-api
Version: 0.1 Version: 0.1
Release: 0 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 # 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 Source0: xmldb-xapi-%{cvs_version}-src.tar.bz2
Patch0: xmldb-api-java5-enum.patch Patch0: xmldb-api-java5-enum.patch
Requires: xalan-j2
BuildRequires: ant >= 1.6 BuildRequires: ant >= 1.6
BuildRequires: javapackages-tools BuildRequires: javapackages-tools
BuildRequires: junit BuildRequires: junit
BuildRequires: xalan-j2 BuildRequires: xalan-j2
BuildArch: noarch Requires: xalan-j2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
The API interfaces are what driver developers must implement when 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 developed against. Along with the interfaces a concrete DriverManager
implementation is also provides. implementation is also provides.
%package sdk %package sdk
Summary: SDK for XML:DB API Summary: SDK for XML:DB API
Group: Development/Libraries/Java 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 being developed. The test cases are still in development but there are
enough tests currently to be useful. enough tests currently to be useful.
%package -n xmldb-common %package -n xmldb-common
Summary: XML:DB API for Java Summary: XML:DB API for Java
Group: Development/Libraries/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 developed against. Along with the interfaces a concrete DriverManager
implementation is also provides. implementation is also provides.
%package javadoc %package javadoc
Summary: XML:DB API for Java Summary: XML:DB API for Java
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -94,8 +87,6 @@ creating a new driver and are the interfaces that applications are
developed against. Along with the interfaces a concrete DriverManager developed against. Along with the interfaces a concrete DriverManager
implementation is also provides. implementation is also provides.
%prep %prep
%setup -q -n xapi %setup -q -n xapi
%patch0 -p1 %patch0 -p1
@ -110,22 +101,21 @@ rm src/common/org/xmldb/common/xml/queries/xt/XPathQueryFactoryImpl.java
%build %build
export CLASSPATH=$(build-classpath junit xalan-j2) export CLASSPATH=$(build-classpath junit xalan-j2)
export OPT_JAR_LIST=: 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 %install
# jars # jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 %{buildroot}%{_javadir}
install -m 644 dist/xmldb/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 dist/xmldb/%{name}.jar %{buildroot}%{_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/%{name}-sdk.jar %{buildroot}%{_javadir}/%{name}-sdk-%{version}.jar
install -m 644 dist/xmldb/%{bname}-common.jar $RPM_BUILD_ROOT%{_javadir}/%{bname}-common-%{version}.jar install -m 644 dist/xmldb/%{bname}-common.jar %{buildroot}%{_javadir}/%{bname}-common-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done) (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
# javadoc # javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr src/build/javadoc/full/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr src/build/javadoc/full/* %{buildroot}%{_javadocdir}/%{name}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
@ -145,7 +135,6 @@ rm -rf $RPM_BUILD_ROOT
%files javadoc %files javadoc
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog