File pdfrenderer.spec of Package pdfrenderer
# 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 to lumnis@opensuse.org
Name: pdfrenderer
Version: 0.9.1
Release: 0
Summary: Java library to render and display pdf files
Group: Development/Libraries/Java
License: LGPLv2
URL: https://pdf-renderer.dev.java.net/
Source0: http://java.net/projects/pdf-renderer/downloads/download/PDFRenderer-full-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
BuildRequires: java-devel
BuildRequires: unzip
#BuildRequires: ant
BuildRequires: update-alternatives
Requires: java >= 1.6
BuildArch: noarch
%description
The PDF Renderer is just what the name implies: an open source, all Java library which renders PDF documents to the screen using Java2D. Typically this means drawing into a Swing panel, but it could also draw to other Graphics2D implementations. We hope you will come up with cool things to do with it that we never thought of.
PDF is one of the core file formats of the Internet, so it is very important for Java programmers to be able to both read and write PDFs. Great open source libraries like iText have long handled the writing half, but until now there has not been a good way to read PDFs using open source Java libraries. It could be used to draw on top of PDFs, share them over a network, convert PDFs to PNG images, or maybe even project PDFs into a 3D scene.
Note, the PDFRenderer does not generate PDF documents, instead it views them. To generate PDFs you should try iText or one of many other great Java libraries.
#%package javadoc
#Summary: Javadocs for PDF Renderer
#Group: Documentation/HTML
#PreReq: coreutils
#%description javadoc
#Javadocs for package PDF Renderer.
#%package doc
#Summary: User docs for PDF Renderer
#Group: Documentation/HTML
#PreReq: coreutils
#%description doc
#User documentation for package PDF Renderer.
%prep
%setup -c
%build
# %ant
%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 dist/*.jar %{buildroot}%{_javadir}/%{name}.jar
# %check
%clean
rm -rf "%{buildroot}"
#%post javadoc
#%__rm -f %{_javadocdir}/%{name}
#ln -s %{name}-%{version} %{_javadocdir}/%{name}
%files
%defattr(-,root,root)
#%doc AUTHORS COPYING README
%{_javadir}/%{name}.jar
#%files doc
#%defattr(-,root,root)
#%files javadoc
#%defattr(-,root,root)
#%ghost %doc %{_javadocdir}/%{name}
%changelog