forked from pool/adaptx
Accepting request 239782 from Java:packages
- Remove some redundant definitions from spec - Cleanup with spec-cleaner and fix build with xerces-j2-xml-apis OBS-URL: https://build.opensuse.org/request/show/239782 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptx?expand=0&rev=17
This commit is contained in:
commit
b439c52636
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 7 13:26:36 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Remove some redundant definitions from spec
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 7 12:34:21 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup with spec-cleaner and fix build with xerces-j2-xml-apis
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 9 11:04:07 UTC 2013 - tchvatal@suse.com
|
Mon Sep 9 11:04:07 UTC 2013 - tchvatal@suse.com
|
||||||
|
|
||||||
|
75
adaptx.spec
75
adaptx.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package adaptx
|
# spec file for package adaptx
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,60 +16,42 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
|
||||||
%define section free
|
|
||||||
|
|
||||||
Name: adaptx
|
Name: adaptx
|
||||||
Version: 0.9.13
|
Version: 0.9.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: XSLT Processor Written in Java
|
Summary: XSLT Processor Written in Java
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
|
Url: http://castor.exolab.org/
|
||||||
Source0: %{name}-%{version}-src.tar.bz2
|
Source0: %{name}-%{version}-src.tar.bz2
|
||||||
# svn export http://svn.codehaus.org/castor/adaptx
|
# svn export http://svn.codehaus.org/castor/adaptx
|
||||||
Patch0: %{name}-%{version}-xsl.patch
|
Patch0: %{name}-%{version}-xsl.patch
|
||||||
Patch1: %{name}-%{version}-icedtea-build.patch
|
Patch1: %{name}-%{version}-icedtea-build.patch
|
||||||
Url: http://castor.exolab.org/
|
|
||||||
BuildRequires: ant >= 1.6
|
BuildRequires: ant >= 1.6
|
||||||
|
BuildRequires: java-devel
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: log4j
|
BuildRequires: log4j
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: xerces-j2
|
||||||
|
BuildRequires: xerces-j2-xml-apis
|
||||||
BuildRequires: xml-commons-apis
|
BuildRequires: xml-commons-apis
|
||||||
%if %defined suse_version
|
|
||||||
BuildRequires: java-devel
|
|
||||||
%endif
|
|
||||||
Requires: ant >= 1.6
|
Requires: ant >= 1.6
|
||||||
Requires: javapackages-tools
|
Requires: javapackages-tools
|
||||||
Requires: log4j
|
Requires: log4j
|
||||||
Requires: xerces-j2
|
Requires: xerces-j2
|
||||||
Requires: xml-commons-apis
|
Requires: xml-commons-apis
|
||||||
%if ! %{gcj_support}
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if %{gcj_support}
|
BuildArch: noarch
|
||||||
BuildRequires: java-gcj-compat-devel
|
|
||||||
Requires(post): java-gcj-compat
|
|
||||||
Requires(postun): java-gcj-compat
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
AdaptX is an extensible stylesheet language (XSL) processor.
|
AdaptX is an extensible stylesheet language (XSL) processor.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
PreReq: coreutils
|
|
||||||
Summary: Javadoc for adaptx
|
Summary: Javadoc for adaptx
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires(post): /bin/rm,/bin/ln
|
|
||||||
Requires(postun): /bin/rm
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the javadoc documentation for AdaptX.
|
This package contains the javadoc documentation for AdaptX.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for adaptx
|
Summary: Documentation for adaptx
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
@ -77,8 +59,6 @@ Group: Development/Libraries/Java
|
|||||||
%description doc
|
%description doc
|
||||||
This package contains the documentation for AdaptX.
|
This package contains the documentation for AdaptX.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-src
|
%setup -q -n %{name}-%{version}-src
|
||||||
# remove CVS internal files
|
# remove CVS internal files
|
||||||
@ -93,56 +73,25 @@ done
|
|||||||
%build
|
%build
|
||||||
perl -p -i -e 's|classic|modern|' src/build.xml
|
perl -p -i -e 's|classic|modern|' src/build.xml
|
||||||
#export CLASSPATH=$(build-classpath js log4j xerces-j2 xml-commons-apis)
|
#export CLASSPATH=$(build-classpath js log4j xerces-j2 xml-commons-apis)
|
||||||
export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2)
|
export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2 xerces-j2-xml-apis)
|
||||||
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml jar javadoc
|
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml jar javadoc
|
||||||
CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar
|
CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar
|
||||||
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml doc
|
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml doc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jar
|
# jar
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 644 dist/%{name}_%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
install -m 644 dist/%{name}_%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; 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}-%{version}
|
||||||
cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr build/doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
rm -rf build/doc/javadoc
|
rm -rf build/doc/javadoc
|
||||||
%if %{gcj_support}
|
|
||||||
%{_bindir}/aot-compile-rpm
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post javadoc
|
|
||||||
rm -f %{_javadocdir}/%{name}
|
|
||||||
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%postun javadoc
|
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
rm -f %{_javadocdir}/%{name}
|
|
||||||
fi
|
|
||||||
%if %{gcj_support}
|
|
||||||
|
|
||||||
%post
|
|
||||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
||||||
then
|
|
||||||
%{_bindir}/rebuild-gcj-db
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
%if %{gcj_support}
|
|
||||||
|
|
||||||
%postun
|
|
||||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
||||||
then
|
|
||||||
%{_bindir}/rebuild-gcj-db
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0664,root,root,0755)
|
%defattr(0664,root,root,0755)
|
||||||
%doc src/etc/{CHANGELOG,contributors.html,LICENSE}
|
%doc src%{_sysconfdir}/{CHANGELOG,contributors.html,LICENSE}
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
%if %{gcj_support}
|
|
||||||
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0664,root,root,0755)
|
%defattr(0664,root,root,0755)
|
||||||
|
Loading…
Reference in New Issue
Block a user