forked from pool/adaptx
This commit is contained in:
commit
b5ec918fdb
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
adaptx-0.9.6-cvs.tar.bz2
Normal file
3
adaptx-0.9.6-cvs.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:851d08e1c7601602db34c478deaa62846b55ff78c614e41d631a0dc19e7bf972
|
||||
size 2035802
|
45
adaptx-0.9.6-xsl.patch
Normal file
45
adaptx-0.9.6-xsl.patch
Normal file
@ -0,0 +1,45 @@
|
||||
--- src/doc/style/exolab.xsl.orig Thu Aug 19 11:58:23 2004
|
||||
+++ src/doc/style/exolab.xsl Thu Aug 19 11:58:47 2004
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
-<xsl:stylesheet version="1.0">
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:output method="html" indent="no"/>
|
||||
|
||||
--- src/doc/style/keywords.xsl.orig Thu Aug 19 11:58:23 2004
|
||||
+++ src/doc/style/keywords.xsl Thu Aug 19 11:58:55 2004
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
-<xsl:stylesheet version="1.0">
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:template match="keywords">
|
||||
<xsl:element name="meta">
|
||||
<xsl:attribute name="http-equiv">Keywords</xsl:attribute>
|
||||
--- src/doc/style/leftNav.xsl.orig Thu Aug 19 11:58:23 2004
|
||||
+++ src/doc/style/leftNav.xsl Thu Aug 19 11:59:00 2004
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
-<xsl:stylesheet version="1.0">
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template match="$project/navSections">
|
||||
<xsl:for-each select="section">
|
||||
--- src/doc/style/searchForm.xsl.orig Thu Aug 19 11:58:23 2004
|
||||
+++ src/doc/style/searchForm.xsl Thu Aug 19 11:59:07 2004
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
-<xsl:stylesheet version="1.0">
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template match="searchForm">
|
||||
<table width="95" border="0" cellpadding="0" cellspacing="0">
|
||||
--- src/doc/style/topNav.xsl.orig Thu Aug 19 11:58:23 2004
|
||||
+++ src/doc/style/topNav.xsl Thu Aug 19 11:59:12 2004
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
-<xsl:stylesheet version="1.0">
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:variable name="leftTopNavPos" select="5"/>
|
||||
<xsl:template match="$project/topNav">
|
30
adaptx.changes
Normal file
30
adaptx.changes
Normal file
@ -0,0 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 15 14:47:24 CEST 2006 - ro@suse.de
|
||||
|
||||
- set source=1.4 for java
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:45:41 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 27 13:20:23 CEST 2005 - jsmeix@suse.de
|
||||
|
||||
- Adjustments in the spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 18 15:26:23 CEST 2005 - jsmeix@suse.de
|
||||
|
||||
- Current version 0.9.6 from JPackage.org
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 16 15:20:33 CEST 2004 - skh@suse.de
|
||||
|
||||
- Fix prerequires of javadoc subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 5 21:33:14 CEST 2004 - skh@suse.de
|
||||
|
||||
- Initial package created with version 0.9.6 (JPackage 1.5)
|
||||
|
127
adaptx.spec
Normal file
127
adaptx.spec
Normal file
@ -0,0 +1,127 @@
|
||||
#
|
||||
# spec file for package adaptx (Version 0.9.6)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: adaptx
|
||||
BuildRequires: ant java2-devel-packages xml-commons-apis
|
||||
%{!?_with_external: %{!?_without_external: %define _without_external 1}}
|
||||
%define name adaptx
|
||||
%define version 0.9.6
|
||||
%define release 2jpp
|
||||
%define section free
|
||||
Version: 0.9.6
|
||||
Release: 24
|
||||
Summary: XSLT Processor Written in Java
|
||||
License: BSD, Other License(s), see package
|
||||
Group: Development/Libraries/Java
|
||||
Source0: %{name}-%{version}-cvs.tar.bz2
|
||||
Patch0: %{name}-%{version}-xsl.patch
|
||||
URL: http://castor.exolab.org/
|
||||
%if %{?_with_external:1}%{!?_with_external:0}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
AdaptX is an extensible stylesheet language (XSL) processor.
|
||||
|
||||
|
||||
|
||||
%package javadoc
|
||||
PreReq: coreutils
|
||||
Group: Development/Libraries/Java
|
||||
Summary: Javadoc for adaptx
|
||||
|
||||
%description javadoc
|
||||
This package contains the javadoc documentation for AdaptX.
|
||||
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for adaptx
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description doc
|
||||
This package contains the documentation for AdaptX.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
# remove CVS internal files
|
||||
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
%patch0
|
||||
|
||||
%build
|
||||
perl -p -i -e 's|classic|modern|' src/build.xml
|
||||
if ! grep -q "javac.*source=" src/build.xml ; then
|
||||
perl -p -i -e 's|<javac |<javac source=\"1.4\" |' src/build.xml
|
||||
perl -p -i -e 's|<javadoc |<javadoc source=\"1.4\" |' src/build.xml
|
||||
fi
|
||||
%if %{?_with_external:1}%{!?_with_external:0}
|
||||
export CLASSPATH=$(build-classpath adaptx xml-commons-apis)
|
||||
%else
|
||||
export CLASSPATH=dist/adaptx_%{version}.jar:$(build-classpath xml-commons-apis)
|
||||
%endif
|
||||
ant -buildfile src/build.xml jar
|
||||
ant -buildfile src/build.xml javadoc
|
||||
ant -buildfile src/build.xml doc
|
||||
|
||||
%install
|
||||
# jar
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 dist/%{name}_%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
# javadoc
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
rm -rf build/doc/javadoc
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post javadoc
|
||||
rm -f %{_javadocdir}/%{name}
|
||||
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
||||
|
||||
%postun javadoc
|
||||
if [ "$1" = "0" ]; then
|
||||
rm -f %{_javadocdir}/%{name}
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(0664,root,root,0755)
|
||||
%doc src/etc/{CHANGELOG,contributors.html,LICENSE}
|
||||
%{_javadir}/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(0664,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
%files doc
|
||||
%defattr(0664,root,root,0755)
|
||||
%doc build/doc/*
|
||||
|
||||
%changelog -n adaptx
|
||||
* Fri Sep 15 2006 - ro@suse.de
|
||||
- set source=1.4 for java
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Wed Jul 27 2005 - jsmeix@suse.de
|
||||
- Adjustments in the spec file.
|
||||
* Mon Jul 18 2005 - jsmeix@suse.de
|
||||
- Current version 0.9.6 from JPackage.org
|
||||
* Thu Sep 16 2004 - skh@suse.de
|
||||
- Fix prerequires of javadoc subpackage
|
||||
* Sun Sep 05 2004 - skh@suse.de
|
||||
- Initial package created with version 0.9.6 (JPackage 1.5)
|
Loading…
Reference in New Issue
Block a user