bd12e78
Name:          xml-stylebook
bd12e78
Version:       1.0
7e1e830
Release:       0.18.b3_xalan2.svn313293%{?dist}
bd12e78
Summary:       Apache XML Stylebook
bd12e78
Group:         Development/Libraries
bd12e78
License:       ASL 1.1
bd12e78
URL:           http://xml.apache.org/
bd12e78
bd12e78
# How to generate this tarball:
bd12e78
#  $ svn export http://svn.apache.org/repos/asf/xml/stylebook/trunk/@313293 xml-stylebook-1.0
bd12e78
#  $ tar zcf xml-stylebook-1.0.tar.gz xml-stylebook-1.0
bd12e78
Source0:       %{name}-%{version}.tar.gz
bd12e78
bd12e78
# Patch to fix an NPE in Xalan-J2's docs generation (from JPackage)
bd12e78
Patch0:        %{name}-image-printer.patch
bd12e78
bd12e78
# Patch the build script to build javadocs
bd12e78
Patch1:        %{name}-build-javadoc.patch
bd12e78
bd12e78
BuildArch:     noarch
bd12e78
bd12e78
BuildRequires: java-devel >= 1:1.6.0
6d427c4
BuildRequires: java-javadoc
bd12e78
BuildRequires: jpackage-utils
bd12e78
BuildRequires: ant
mbooth dad5c10
BuildRequires: xml-commons-apis
Mat Booth 294ed02
BuildRequires: xerces-j2
bd12e78
BuildRequires: dejavu-sans-fonts
Stanislav Ochotnicky 6f7778f
Requires:      java-headless
bd12e78
Requires:      jpackage-utils
mbooth dad5c10
Requires:      xml-commons-apis
Mat Booth 294ed02
Requires:      xerces-j2
bd12e78
bd12e78
%description
bd12e78
Apache XML Stylebook is a HTML documentation generator.
bd12e78
bd12e78
%package       javadoc
6d427c4
Summary:       API documentation for %{name}
bd12e78
Group:         Documentation
6d427c4
Requires:      java-javadoc
bd12e78
bd12e78
%description   javadoc
6d427c4
%{summary}.
bd12e78
bd12e78
%package       demo
bd12e78
Summary:       Examples for %{name}
bd12e78
Group:         Development/Libraries
bd12e78
Requires:      %{name} = %{version}-%{release}
bd12e78
bd12e78
%description   demo
bd12e78
Examples demonstrating the use of %{name}.
bd12e78
bd12e78
%prep
bd12e78
%setup -q
bd12e78
%patch0 -p0
bd12e78
%patch1 -p0
bd12e78
bd12e78
# Remove bundled binaries
bd12e78
rm -r bin/*.jar
bd12e78
55283aa
# Don't include this sample theme because it contains an errant font
55283aa
rm -r styles/christmas/
55283aa
bd12e78
# Make sure upstream hasn't sneaked in any jars we don't know about
bd12e78
JARS=""
bd12e78
for j in `find -name "*.jar"`; do
bd12e78
  if [ ! -L $j ]; then
bd12e78
    JARS="$JARS $j"
bd12e78
  fi
bd12e78
done
bd12e78
if [ ! -z "$JARS" ]; then
bd12e78
   echo "These jars should be deleted and symlinked to system jars: $JARS"
bd12e78
   exit 1
bd12e78
fi
bd12e78
bd12e78
%build
bd12e78
ant
bd12e78
bd12e78
# Build the examples (this serves as a good test suite)
bd12e78
pushd docs
bd12e78
rm run.bat
mbooth dad5c10
java -classpath "$(build-classpath xml-commons-apis):$(build-classpath jaxp_parser_impl):../bin/stylebook-%{version}-b3_xalan-2.jar" \
bd12e78
  org.apache.stylebook.StyleBook "targetDirectory=../results" book.xml ../styles/apachexml
bd12e78
popd
bd12e78
bd12e78
%install
bd12e78
# jars
bd12e78
install -pD -T bin/stylebook-%{version}-b3_xalan-2.jar \
Mat Booth 4be0ae5
  %{buildroot}%{_javadir}/%{name}.jar
bd12e78
bd12e78
# javadoc
Mat Booth 4be0ae5
install -d %{buildroot}%{_javadocdir}/%{name}
Mat Booth 4be0ae5
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
bd12e78
bd12e78
# examples
bd12e78
install -d %{buildroot}%{_datadir}/%{name}
bd12e78
cp -pr docs %{buildroot}%{_datadir}/%{name}
bd12e78
cp -pr styles %{buildroot}%{_datadir}/%{name}
bd12e78
cp -pr results %{buildroot}%{_datadir}/%{name}
bd12e78
bd12e78
%files
bd12e78
%doc LICENSE.txt
bd12e78
%{_javadir}/*
bd12e78
bd12e78
%files javadoc
Mat Booth 4be0ae5
%doc LICENSE.txt
bd12e78
%{_javadocdir}/%{name}
bd12e78
bd12e78
%files demo
bd12e78
%{_datadir}/%{name} 
bd12e78
bd12e78
%changelog
7e1e830
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.18.b3_xalan2.svn313293
7e1e830
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7e1e830
41db784
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.17.b3_xalan2.svn313293
41db784
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41db784
0ae40dc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.16.b3_xalan2.svn313293
0ae40dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0ae40dc
Stanislav Ochotnicky 6f7778f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.15.b3_xalan2.svn313293
Stanislav Ochotnicky 6f7778f
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 6f7778f
Mat Booth 294ed02
* Mon Aug 12 2013 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.14.b3_xalan2.svn313293
Mat Booth 294ed02
- Prefer xerces-j2 instead of gcj for providing jaxp_parser_impl
Mat Booth 294ed02
Mat Booth 4be0ae5
* Sat Aug 10 2013 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.13.b3_xalan2.svn313293
Mat Booth 4be0ae5
- Update for newer guidelines
Mat Booth 4be0ae5
dae160a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.b3_xalan2.svn313293
dae160a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dae160a
be98297
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.11.b3_xalan2.svn313293
be98297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
be98297
eed37d5
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.10.b3_xalan2.svn313293
eed37d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eed37d5
8985abf
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.9.b3_xalan2.svn313293
8985abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8985abf
2525000
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b3_xalan2.svn313293
2525000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2525000
mbooth dad5c10
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.7.b3_xalan2.svn313293
mbooth dad5c10
- Really fix FTBFS this time.
mbooth dad5c10
mbooth 5c46fc2
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.6.b3_xalan2.svn313293
mbooth 5c46fc2
- Fix FTBFS due to ant upgrade.
mbooth 5c46fc2
6d427c4
* Sat Jun 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.5.b3_xalan2.svn313293
6d427c4
- Link to local java API docs properly and fix requires on javadoc package.
6d427c4
- Build with source and target levels of 1.5 so we don't have to require 1.6.
6d427c4
Mat Booth 4be0ae5
* Thu Apr 22 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.4.b3_xalan2.svn313293
55283aa
- Remove font from demo package to comply with guidelines. RHBZ #567912
55283aa
bd12e78
* Mon Jan 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.3.b3_xalan2.svn313293
bd12e78
- Build the examples (this serves as a good test suite.)
bd12e78
- Patch the build script to build javadocs.
bd12e78
- Add a build dep on a font package because the JDK is missing a dependency
bd12e78
  to function correctly in headless mode. See RHBZ #478480 and #521523.
bd12e78
bd12e78
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.2.b3_xalan2.svn313293
bd12e78
- Add patch from JPackage to fix NPE in Xalan-J2 doc generation.
bd12e78
bd12e78
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.1.b3_xalan2.svn313293
bd12e78
- Initial stab at packaging trunk version of stylebook.
bd12e78