Blame SPECS/xml-stylebook.spec

997a79
Name:          xml-stylebook
997a79
Version:       1.0
93e1dd
Release:       0.14.b3_xalan2.svn313293%{?dist}
997a79
Summary:       Apache XML Stylebook
997a79
License:       ASL 1.1
997a79
URL:           http://xml.apache.org/
997a79
997a79
# How to generate this tarball:
997a79
#  $ svn export http://svn.apache.org/repos/asf/xml/stylebook/trunk/@313293 xml-stylebook-1.0
997a79
#  $ rm -rf xml-stylebook-1.0/bin/* # unclear licensing
997a79
#  $ rm -rf xml-stylebook-1.0/styles/ibm-style # better not to include the logos
997a79
#  $ tar zcf xml-stylebook-1.0.tar.gz xml-stylebook-1.0
997a79
Source0:       %{name}-%{version}.tar.gz
997a79
997a79
# Patch to fix an NPE in Xalan-J2's docs generation (from JPackage)
997a79
Patch0:        %{name}-image-printer.patch
997a79
997a79
# Patch the build script to build javadocs
997a79
Patch1:        %{name}-build-javadoc.patch
997a79
997a79
BuildArch:     noarch
997a79
997a79
BuildRequires: java-devel >= 1:1.6.0
997a79
BuildRequires: java-javadoc
997a79
BuildRequires: jpackage-utils
997a79
BuildRequires: ant
997a79
BuildRequires: xml-commons-apis
997a79
BuildRequires: jaxp_parser_impl
997a79
BuildRequires: dejavu-sans-fonts
997a79
Requires:      java
997a79
Requires:      jpackage-utils
997a79
Requires:      xml-commons-apis
997a79
Requires:      jaxp_parser_impl
997a79
997a79
%description
997a79
Apache XML Stylebook is a HTML documentation generator.
997a79
997a79
%package       javadoc
997a79
Summary:       API documentation for %{name}
997a79
Group:         Documentation
997a79
Requires:      java-javadoc
997a79
997a79
%description   javadoc
997a79
%{summary}.
997a79
997a79
%package       demo
997a79
Summary:       Examples for %{name}
997a79
Group:         Development/Libraries
997a79
Requires:      %{name} = %{version}-%{release}
997a79
997a79
%description   demo
997a79
Examples demonstrating the use of %{name}.
997a79
997a79
%prep
997a79
%setup -q
997a79
%patch0 -p0
997a79
%patch1 -p0
997a79
997a79
# Don't include this sample theme because it contains an errant font
997a79
rm -r styles/christmas/
997a79
997a79
# Make sure upstream hasn't sneaked in any jars we don't know about
997a79
JARS=""
997a79
for j in `find -name "*.jar"`; do
997a79
  if [ ! -L $j ]; then
997a79
    JARS="$JARS $j"
997a79
  fi
997a79
done
997a79
if [ ! -z "$JARS" ]; then
997a79
   echo "These jars should be deleted and symlinked to system jars: $JARS"
997a79
   exit 1
997a79
fi
997a79
997a79
%build
997a79
export CLASSPATH=$(build-classpath xalan-j2 jaxp_parser_impl)
997a79
ant
997a79
997a79
# Build the examples (this serves as a good test suite)
997a79
pushd docs
997a79
rm run.bat
997a79
java -classpath "$(build-classpath xml-commons-apis):$(build-classpath jaxp_parser_impl):../bin/stylebook-%{version}-b3_xalan-2.jar" \
997a79
  org.apache.stylebook.StyleBook "targetDirectory=../results" book.xml ../styles/apachexml
997a79
popd
997a79
997a79
%install
997a79
# jars
997a79
install -pD -T bin/stylebook-%{version}-b3_xalan-2.jar \
997a79
  %{buildroot}%{_javadir}/%{name}.jar
997a79
997a79
# javadoc
997a79
install -d %{buildroot}%{_javadocdir}/%{name}
997a79
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
997a79
997a79
# examples
997a79
install -d %{buildroot}%{_datadir}/%{name}
997a79
cp -pr docs %{buildroot}%{_datadir}/%{name}
997a79
cp -pr styles %{buildroot}%{_datadir}/%{name}
997a79
cp -pr results %{buildroot}%{_datadir}/%{name}
997a79
997a79
%files
997a79
%doc LICENSE.txt
997a79
%{_javadir}/*
997a79
997a79
%files javadoc
997a79
%{_javadocdir}/%{name}
997a79
997a79
%files demo
997a79
%{_datadir}/%{name}
997a79
997a79
%changelog
93e1dd
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-0.14.b3_xalan2.svn313293
93e1dd
- Mass rebuild 2013-12-27
93e1dd
997a79
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.13.b3_xalan2.svn313293
997a79
- Cleanup tarball content with unclear license
997a79
- Update to latest packaging guidelines
997a79
997a79
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.12.b3_xalan2.svn313293
997a79
- Rebuild to regenerate API documentation
997a79
- Resolves: CVE-2013-1571
997a79
997a79
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.11.b3_xalan2.svn313293
997a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
997a79
997a79
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.10.b3_xalan2.svn313293
997a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
997a79
997a79
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.9.b3_xalan2.svn313293
997a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
997a79
997a79
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b3_xalan2.svn313293
997a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
997a79
997a79
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.7.b3_xalan2.svn313293
997a79
- Really fix FTBFS this time.
997a79
997a79
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.6.b3_xalan2.svn313293
997a79
- Fix FTBFS due to ant upgrade.
997a79
997a79
* Sat Jun 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.5.b3_xalan2.svn313293
997a79
- Link to local java API docs properly and fix requires on javadoc package.
997a79
- Build with source and target levels of 1.5 so we don't have to require 1.6.
997a79
997a79
* Mon Apr 22 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.4.b3_xalan2.svn313293
997a79
- Remove font from demo package to comply with guidelines. RHBZ #567912
997a79
997a79
* Mon Jan 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.3.b3_xalan2.svn313293
997a79
- Build the examples (this serves as a good test suite.)
997a79
- Patch the build script to build javadocs.
997a79
- Add a build dep on a font package because the JDK is missing a dependency
997a79
  to function correctly in headless mode. See RHBZ #478480 and #521523.
997a79
997a79
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.2.b3_xalan2.svn313293
997a79
- Add patch from JPackage to fix NPE in Xalan-J2 doc generation.
997a79
997a79
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.1.b3_xalan2.svn313293
997a79
- Initial stab at packaging trunk version of stylebook.