- disable javadoc build

OBS-URL: https://build.opensuse.org/package/show/Java:packages/regexp?expand=0&rev=6
This commit is contained in:
Michal Vyskocil 2013-08-23 11:13:17 +00:00 committed by Git OBS Bridge
parent bbbad5c4da
commit 077be67a95
2 changed files with 17 additions and 44 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 23 11:13:04 UTC 2013 - mvyskocil@suse.com
- disable javadoc build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 8 09:57:25 UTC 2010 - mvyskocil@suse.cz Mon Nov 8 09:57:25 UTC 2010 - mvyskocil@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package regexp (Version 1.5) # spec file for package regexp
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2008, JPackage Project # Copyright (c) 2000-2008, JPackage Project
# All rights reserved. # All rights reserved.
# #
@ -16,16 +16,15 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
# icecream 0 # icecream 0
%define full_name jakarta-%{name} %define full_name jakarta-%{name}
%define section free %define section free
Name: regexp Name: regexp
Version: 1.5 Version: 1.5
Release: 1 Release: 0
Summary: Simple regular expressions API Summary: Simple regular expressions API
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -42,7 +41,9 @@ BuildRequires: xml-commons-apis-bootstrap
#!BuildIgnore: xml-commons-jaxp-1.3-apis #!BuildIgnore: xml-commons-jaxp-1.3-apis
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ant java-1_5_0-gcj-compat-devel xml-commons-apis-bootstrap BuildRequires: ant
BuildRequires: java-1_5_0-gcj-compat-devel
BuildRequires: xml-commons-apis-bootstrap
%description %description
Regexp is a 100% Pure Java Regular Expression package that was Regexp is a 100% Pure Java Regular Expression package that was
@ -52,26 +53,6 @@ quite well to the test of time. It includes complete Javadoc
documentation as well as a simple Applet for visual debugging and documentation as well as a simple Applet for visual debugging and
testing suite for compatibility. testing suite for compatibility.
%package javadoc
License: Apache-2.0
PreReq: coreutils
Group: Development/Libraries/Java
Summary: Javadoc for regexp
%description javadoc
Regexp is a 100% Pure Java Regular Expression package that was
graciously donated to the Apache Software Foundation by Jonathan Locke.
He originally wrote this software back in 1996 and it has stood up
quite well to the test of time. It includes complete Javadoc
documentation as well as a simple Applet for visual debugging and
testing suite for compatibility.
This package contains the javadoc documentation for regexp.
%prep %prep
%setup -q -n %{full_name}-%{version} %setup -q -n %{full_name}-%{version}
# remove all binary libs # remove all binary libs
@ -81,37 +62,24 @@ find . -type f -name "*.jar" | xargs -t rm
export OPT_JAR_LIST=: export OPT_JAR_LIST=:
export CLASSPATH= export CLASSPATH=
mkdir lib mkdir lib
ant -Djakarta-site2.dir=. jar javadocs ant -Djakarta-site2.dir=. jar
%install %install
# jars # jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 build/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -r docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
[ -d docs/api ] && rm -rf docs/api [ -d docs/api ] && rm -rf docs/api
# depmap frags
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
# pom # pom
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms %{__mkdir_p} %{buildroot}%{_mavenpomdir}
%{__install} -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom %{__install} -p -m 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc LICENSE %doc LICENSE
%{_javadir}/*.jar %{_javadir}/*.jar
%{_datadir}/maven2/poms/* %{_mavenpomdir}/*
%{_mavendepmapfragdir}/* %{_mavendepmapfragdir}/*
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog %changelog