Compare commits
24 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9a6ade4b7 | ||
|
|
2171ebe1fe | ||
|
|
72ba158e54 | ||
|
|
29766b174a | ||
|
|
47e963e729 | ||
|
|
7c53647227 | ||
|
|
3d47a00762 | ||
|
|
a7f8dd0c4c | ||
|
|
6a800c8bc1 | ||
|
|
6ac746e078 | ||
|
|
fe720f1d6c | ||
|
|
7e1e830b1f | ||
|
|
41db784031 | ||
|
|
0ae40dcacf | ||
|
|
6f7778ff39 | ||
|
|
294ed0232a | ||
|
|
4be0ae5d22 | ||
|
|
dae160a214 | ||
|
|
be9829762a | ||
|
|
eed37d5306 | ||
|
|
8985abf471 | ||
|
|
2525000809 | ||
|
|
dad5c10457 | ||
|
|
5c46fc29a4 |
6 changed files with 1 additions and 243 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
xml-stylebook-1.0.tar.gz
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
11b3e4d6e4e2b45ceb161b99c91b2893 xml-stylebook-1.0.tar.gz
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
--- build.xml.orig 2004-12-14 15:54:50.000000000 +0000
|
||||
+++ build.xml 2010-06-12 19:50:39.976589551 +0100
|
||||
@@ -54,17 +54,16 @@
|
||||
<property name="build.dir" value="./build"/>
|
||||
<property name="build.src" value="${build.dir}/src"/>
|
||||
<property name="build.dest" value="${build.dir}/classes"/>
|
||||
+ <property name="build.javadoc" value="${build.dir}/javadoc"/>
|
||||
<property name="src.dir" value="./src"/>
|
||||
<property name="bin.dir" value="./bin"/>
|
||||
- <condition property="sun.codec.present" >
|
||||
- <available classname="com.sun.image.codec.jpeg.JPEGCodec"/>
|
||||
- </condition>
|
||||
</target>
|
||||
|
||||
<target name="prepare" depends="init">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<mkdir dir="${build.src}"/>
|
||||
<mkdir dir="${build.dest}"/>
|
||||
+ <mkdir dir="${build.javadoc}"/>
|
||||
<copy todir="${build.src}">
|
||||
<fileset dir="${src.dir}"/>
|
||||
</copy>
|
||||
@@ -86,15 +85,14 @@
|
||||
|
||||
<!--Compile and Package to work with Xalan-J 2 -->
|
||||
<target name="compile2" depends="prepare">
|
||||
- <javac srcdir="${src.dir}" excludes="org/apache/stylebook/processors/XalanProcessor.java" destdir="${build.dest}" debug="${debug}">
|
||||
+ <javac srcdir="${src.dir}" excludes="org/apache/stylebook/processors/XalanProcessor.java" destdir="${build.dest}" debug="${debug}" target="1.5" source="1.5">
|
||||
<exclude name="**/org/apache/stylebook/processors/XalanProcessor.java"/>
|
||||
- <exclude name="**/org/apache/stylebook/printers/ImagePrinter.java" unless="sun.codec.present"/>
|
||||
</javac>
|
||||
<copy todir="${build.dest}/org/apache/stylebook/data">
|
||||
<fileset dir="${build.src}/org/apache/stylebook/data"/>
|
||||
</copy>
|
||||
</target>
|
||||
- <target name="package2" depends="compile2">
|
||||
+ <target name="package2" depends="compile2,javadoc">
|
||||
<replace file="${build.dest}/org/apache/stylebook/data/engine.xml" token="XalanProcessor" value="Xalan2Processor"/>
|
||||
<jar jarfile="${bin.dir}/${name}-${version-xalan-2}.jar" basedir="${build.dest}" includes="org/**"/>
|
||||
</target>
|
||||
@@ -103,4 +101,25 @@
|
||||
<deltree dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
+ <target name="javadoc" depends="prepare">
|
||||
+ <javadoc destdir="${build.javadoc}"
|
||||
+ packagenames="*"
|
||||
+ noindex="false"
|
||||
+ splitindex="true"
|
||||
+ use="true"
|
||||
+ version="true"
|
||||
+ author="true"
|
||||
+ windowtitle="${name} ${version-xalan-2}"
|
||||
+ doctitle="${name} ${version-xalan-2} JavaDoc">
|
||||
+ <fileset dir="${build.src}">
|
||||
+ <exclude name="**/XalanProcessor.java"/>
|
||||
+ <exclude name="**/stylebook/data**"/>
|
||||
+ </fileset>
|
||||
+ <classpath>
|
||||
+ <pathelement path="${bin.dir}"/>
|
||||
+ </classpath>
|
||||
+ <link href="/usr/share/javadoc/java" offline="true" packagelistLoc="/usr/share/javadoc/java"/>
|
||||
+ </javadoc>
|
||||
+ </target>
|
||||
+
|
||||
</project>
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
--- src/org/apache/stylebook/printers/ImagePrinter.java 1999-11-30 07:28:54.000000000 -0500
|
||||
+++ src/org/apache/stylebook/printers/ImagePrinter.java 2009-01-07 17:00:13.802150149 -0500
|
||||
@@ -8,7 +8,10 @@
|
||||
package org.apache.stylebook.printers;
|
||||
|
||||
import org.apache.stylebook.*;
|
||||
-import com.sun.image.codec.jpeg.*;
|
||||
+import javax.imageio.*;
|
||||
+import javax.imageio.plugins.jpeg.*;
|
||||
+import javax.imageio.metadata.*;
|
||||
+import javax.imageio.stream.*;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
@@ -144,11 +147,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
- // Write out image (highest quality for jpeg data)
|
||||
- JPEGEncodeParam jpar=JPEGCodec.getDefaultJPEGEncodeParam(img);
|
||||
- jpar.setQuality(1,true);
|
||||
- JPEGImageEncoder jenc=JPEGCodec.createJPEGEncoder(out,jpar);
|
||||
- jenc.encode(img);
|
||||
+ ImageWriter encoder = (ImageWriter)ImageIO.getImageWritersByFormatName("JPEG").next();
|
||||
+ JPEGImageWriteParam param = new JPEGImageWriteParam(null);
|
||||
+
|
||||
+ param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
|
||||
+ param.setCompressionQuality(1);
|
||||
+
|
||||
+ encoder.setOutput(ImageIO.createImageOutputStream(out));
|
||||
+ encoder.write((IIOMetadata) null, new IIOImage(img,null,null), param);
|
||||
+
|
||||
out.flush();
|
||||
}
|
||||
|
||||
|
|
@ -1,140 +0,0 @@
|
|||
Name: xml-stylebook
|
||||
Version: 1.0
|
||||
Release: 0.5.b3_xalan2.svn313293%{?dist}
|
||||
Summary: Apache XML Stylebook
|
||||
Group: Development/Libraries
|
||||
License: ASL 1.1
|
||||
URL: http://xml.apache.org/
|
||||
|
||||
# How to generate this tarball:
|
||||
# $ svn export http://svn.apache.org/repos/asf/xml/stylebook/trunk/@313293 xml-stylebook-1.0
|
||||
# $ tar zcf xml-stylebook-1.0.tar.gz xml-stylebook-1.0
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
# Patch to fix an NPE in Xalan-J2's docs generation (from JPackage)
|
||||
Patch0: %{name}-image-printer.patch
|
||||
|
||||
# Patch the build script to build javadocs
|
||||
Patch1: %{name}-build-javadoc.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: java-javadoc
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: jaxp_parser_impl
|
||||
BuildRequires: dejavu-sans-fonts
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description
|
||||
Apache XML Stylebook is a HTML documentation generator.
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: java-javadoc
|
||||
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%package demo
|
||||
Summary: Examples for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description demo
|
||||
Examples demonstrating the use of %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
|
||||
# Remove bundled binaries
|
||||
rm -r bin/*.jar
|
||||
|
||||
# Don't include this sample theme because it contains an errant font
|
||||
rm -r styles/christmas/
|
||||
|
||||
# Make sure upstream hasn't sneaked in any jars we don't know about
|
||||
JARS=""
|
||||
for j in `find -name "*.jar"`; do
|
||||
if [ ! -L $j ]; then
|
||||
JARS="$JARS $j"
|
||||
fi
|
||||
done
|
||||
if [ ! -z "$JARS" ]; then
|
||||
echo "These jars should be deleted and symlinked to system jars: $JARS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
%build
|
||||
ant
|
||||
|
||||
# Build the examples (this serves as a good test suite)
|
||||
pushd docs
|
||||
rm run.bat
|
||||
java -classpath "$(build-classpath jaxp_parser_impl):../bin/stylebook-%{version}-b3_xalan-2.jar" \
|
||||
org.apache.stylebook.StyleBook "targetDirectory=../results" book.xml ../styles/apachexml
|
||||
popd
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# jars
|
||||
install -pD -T bin/stylebook-%{version}-b3_xalan-2.jar \
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do \
|
||||
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
|
||||
# javadoc
|
||||
install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
||||
|
||||
# examples
|
||||
install -d %{buildroot}%{_datadir}/%{name}
|
||||
cp -pr docs %{buildroot}%{_datadir}/%{name}
|
||||
cp -pr styles %{buildroot}%{_datadir}/%{name}
|
||||
cp -pr results %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE.txt
|
||||
%{_javadir}/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%files demo
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sat Jun 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.5.b3_xalan2.svn313293
|
||||
- Link to local java API docs properly and fix requires on javadoc package.
|
||||
- Build with source and target levels of 1.5 so we don't have to require 1.6.
|
||||
|
||||
* Mon Apr 22 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.4.b3_xalan2.svn313293
|
||||
- Remove font from demo package to comply with guidelines. RHBZ #567912
|
||||
|
||||
* Mon Jan 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.3.b3_xalan2.svn313293
|
||||
- Build the examples (this serves as a good test suite.)
|
||||
- Patch the build script to build javadocs.
|
||||
- Add a build dep on a font package because the JDK is missing a dependency
|
||||
to function correctly in headless mode. See RHBZ #478480 and #521523.
|
||||
|
||||
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.2.b3_xalan2.svn313293
|
||||
- Add patch from JPackage to fix NPE in Xalan-J2 doc generation.
|
||||
|
||||
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.1.b3_xalan2.svn313293
|
||||
- Initial stab at packaging trunk version of stylebook.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue