Blame SPECS/xml-stylebook.spec

47236f
%{?scl:%scl_package xml-stylebook}
47236f
%{!?scl:%global pkg_name %{name}}
47236f
47236f
Name:          %{?scl_prefix}xml-stylebook
47236f
Version:       1.0
47236f
Release:       0.21.b3_xalan2.svn313293.2%{?dist}
47236f
Summary:       Apache XML Stylebook
47236f
License:       ASL 1.1
47236f
URL:           http://xml.apache.org/
47236f
47236f
# How to generate this tarball:
47236f
#  $ svn export http://svn.apache.org/repos/asf/xml/stylebook/trunk/@313293 xml-stylebook-1.0
47236f
#  $ tar zcf xml-stylebook-1.0.tar.gz xml-stylebook-1.0
47236f
Source0:       %{pkg_name}-%{version}.tar.gz
47236f
47236f
# Patch to fix an NPE in Xalan-J2's docs generation (from JPackage)
47236f
Patch0:        %{pkg_name}-image-printer.patch
47236f
47236f
# Patch the build script to build javadocs
47236f
Patch1:        %{pkg_name}-build-javadoc.patch
47236f
47236f
BuildArch:     noarch
47236f
47236f
BuildRequires: java-devel >= 1:1.6.0
47236f
BuildRequires: %{?scl_prefix}javapackages-local
47236f
BuildRequires: %{?scl_prefix}ant
47236f
BuildRequires: %{?scl_prefix}xml-commons-apis
47236f
BuildRequires: %{?scl_prefix}xerces-j2
47236f
BuildRequires: dejavu-sans-fonts
47236f
Requires:      java-headless
47236f
Requires:      %{?scl_prefix}xml-commons-apis
47236f
Requires:      %{?scl_prefix}xerces-j2
47236f
47236f
%description
47236f
Apache XML Stylebook is a HTML documentation generator.
47236f
47236f
%package       javadoc
47236f
Summary:       API documentation for %{pkg_name}
47236f
47236f
%description   javadoc
47236f
%{summary}.
47236f
47236f
%package       demo
47236f
Summary:       Examples for %{pkg_name}
47236f
Requires:      %{name} = %{version}-%{release}
47236f
47236f
%description   demo
47236f
Examples demonstrating the use of %{pkg_name}.
47236f
47236f
%prep
47236f
%setup -n %{pkg_name}-%{version} -q
47236f
%patch0 -p0
47236f
%patch1 -p0
47236f
47236f
# Remove bundled binaries
47236f
find -name *.jar -delete
47236f
47236f
# Don't include this sample theme because it contains an errant font
47236f
rm -r styles/christmas/
47236f
47236f
%build
47236f
ant -Dclasspath=$(build-classpath xml-commons-apis xerces-j2)
47236f
47236f
# Build the examples (this serves as a good test suite)
47236f
pushd docs
47236f
rm run.bat
47236f
java -classpath "$(build-classpath xml-commons-apis xerces-j2):../bin/stylebook-%{version}-b3_xalan-2.jar" \
47236f
  org.apache.stylebook.StyleBook "targetDirectory=../results" book.xml ../styles/apachexml
47236f
popd
47236f
47236f
%install
47236f
# jars
47236f
install -pD -T bin/stylebook-%{version}-b3_xalan-2.jar \
47236f
  %{buildroot}%{_javadir}/%{pkg_name}.jar
47236f
47236f
# javadoc
47236f
install -d %{buildroot}%{_javadocdir}/%{pkg_name}
47236f
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{pkg_name}
47236f
47236f
# examples
47236f
install -d %{buildroot}%{_datadir}/%{pkg_name}
47236f
cp -pr docs %{buildroot}%{_datadir}/%{pkg_name}
47236f
cp -pr styles %{buildroot}%{_datadir}/%{pkg_name}
47236f
cp -pr results %{buildroot}%{_datadir}/%{pkg_name}
47236f
47236f
%files
47236f
%license LICENSE.txt
47236f
%{_javadir}/*
47236f
47236f
%files javadoc
47236f
%license LICENSE.txt
47236f
%{_javadocdir}/%{pkg_name}
47236f
47236f
%files demo
47236f
%{_datadir}/%{pkg_name} 
47236f
47236f
%changelog
47236f
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 1.0-0.21.b3_xalan2.svn313293.2
47236f
- Mass rebuild 2017-06-22
47236f
47236f
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 1.0-0.21.b3_xalan2.svn313293.1
47236f
- Automated package import and SCL-ization
47236f
47236f
* Thu Mar 30 2017 Mat Booth <mat.booth@redhat.com> - 1.0-0.21.b3_xalan2.svn313293
47236f
- Fix FTBFS and javadoc linting errors
47236f
- Adopt license macro
47236f
47236f
* Fri Mar  3 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.20.b3_xalan2.svn313293
47236f
- Update to current packaging guidelines
47236f
47236f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.19.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
47236f
47236f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.18.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
47236f
47236f
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.17.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
47236f
47236f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.16.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
47236f
47236f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.15.b3_xalan2.svn313293
47236f
- Use Requires: java-headless rebuild (#1067528)
47236f
47236f
* Mon Aug 12 2013 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.14.b3_xalan2.svn313293
47236f
- Prefer xerces-j2 instead of gcj for providing jaxp_parser_impl
47236f
47236f
* Sat Aug 10 2013 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.13.b3_xalan2.svn313293
47236f
- Update for newer guidelines
47236f
47236f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
47236f
47236f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.11.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
47236f
47236f
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.10.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
47236f
47236f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.9.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
47236f
47236f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b3_xalan2.svn313293
47236f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
47236f
47236f
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.7.b3_xalan2.svn313293
47236f
- Really fix FTBFS this time.
47236f
47236f
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.6.b3_xalan2.svn313293
47236f
- Fix FTBFS due to ant upgrade.
47236f
47236f
* Sat Jun 12 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.5.b3_xalan2.svn313293
47236f
- Link to local java API docs properly and fix requires on javadoc package.
47236f
- Build with source and target levels of 1.5 so we don't have to require 1.6.
47236f
47236f
* Thu Apr 22 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.4.b3_xalan2.svn313293
47236f
- Remove font from demo package to comply with guidelines. RHBZ #567912
47236f
47236f
* Mon Jan 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.3.b3_xalan2.svn313293
47236f
- Build the examples (this serves as a good test suite.)
47236f
- Patch the build script to build javadocs.
47236f
- Add a build dep on a font package because the JDK is missing a dependency
47236f
  to function correctly in headless mode. See RHBZ #478480 and #521523.
47236f
47236f
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.2.b3_xalan2.svn313293
47236f
- Add patch from JPackage to fix NPE in Xalan-J2 doc generation.
47236f
47236f
* Tue Jan 5 2010 Mat Booth <fedora@matbooth.co.uk> - 1.0-0.1.b3_xalan2.svn313293
47236f
- Initial stab at packaging trunk version of stylebook.