rpms/pdf-renderer/devel import.log, NONE, 1.1 pdf-renderer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orcan Ogetbil oget at fedoraproject.org
Mon Oct 13 03:31:38 UTC 2008


Author: oget

Update of /cvs/pkgs/rpms/pdf-renderer/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26108/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log pdf-renderer.spec 
Log Message:
* Sat Oct 11 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.3.20081005cvs
- The license is changed to LGPLv2+.
- Fixed sizes of the font files on src/com/sun/pdfview/font/res/BaseFonts.properties
- BuildRequired urw-fonts

* Fri Oct 10 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.2.20081005cvs
- Removed pre-shipped fonts and told the program to use system-wide urw-fonts.
- The license is changed to LGPLv2+ and GPL+.

* Thu Oct 09 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.1.20081005cvs
- Initial Release



--- NEW FILE import.log ---
pdf-renderer-0-0_3_20081005cvs_fc10:HEAD:pdf-renderer-0-0.3.20081005cvs.fc10.src.rpm:1223868626


--- NEW FILE pdf-renderer.spec ---
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
%define alternate_name PDFRenderer
%define cvs_version 2008_10_05
%define release_number 0.3.20081005cvs%{?dist}

Summary:        A 100% Java PDF renderer and viewer
Name:           pdf-renderer
Version:        0
Release:        %{release_number}
License:        LGPLv2+
URL:            https://pdf-renderer.dev.java.net/
Group:          Development/Libraries
Source0:        https://pdf-renderer.dev.java.net/files/documents/6008/113009/%{alternate_name}-%{cvs_version}-src.zip
BuildRequires:  ant
BuildRequires:  ant-apache-regexp
BuildRequires:  java-devel >= 1.5
BuildRequires:  jpackage-utils
BuildRequires:  urw-fonts
%if %{with_gcj}
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
Requires:         java-1.5.0-gcj
%else
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       java >= 1.5
Requires:       jpackage-utils >= 1.5
Requires:       urw-fonts
Provides:       %{alternate_name} == %{version}-%{release}

%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. 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.

%package javadoc
Summary:        Javadoc for %{alternate_name}
Group:          Documentation
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
API documentation for the %{alternate_name} package.

%prep
%setup -q -n %{alternate_name}-%{cvs_version}-src

# Remove preshipped binaries
find . -name "*.jar" -exec rm {} \;

# Fix encoding issues
find . -name "*.java" -exec native2ascii {} {} \;

# Remove preshipped fonts and ...
find . -name "*.pfb" -exec rm {} \;

# ... tell the program to use system-fonts instead.
# Script provided by Mamoru Tasaka:
# https://bugzilla.redhat.com/show_bug.cgi?id=466394#c4
# -------------------------------------------------------------
pushd src/com/sun/pdfview/font/res/
INPUT=BaseFonts.properties
OUTPUT=BaseFonts.properties.1
FONTDIR=%{_datadir}/fonts/default/Type1

rm -f $OUTPUT
cat $INPUT | while read line
 do
 newline=$line
 if echo $newline | grep -q 'file=.*pfb'
  then
  pfbname=$(echo $newline | sed -e 's|^.*file=||')
  newline=$(echo $newline | sed -e "s|file=|file=${FONTDIR}/|")
 elif echo $newline | grep -q 'length='
  then
  size=$(ls -al ${FONTDIR}/$pfbname | awk '{print $5}')
  newline=$(echo $newline | sed -e "s|length=.*|length=$size|")
 fi
 echo $newline >> $OUTPUT
done
mv -f $OUTPUT $INPUT
popd
# -------------------------------------------------------------

%build
%ant

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/PDFRenderer.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

%if %{with_gcj}
 %{_bindir}/aot-compile-rpm
%endif

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ] 
 then
  %{_bindir}/rebuild-gcj-db
 fi
%endif

%postun
%if %{with_gcj}
 if [ -x %{_bindir}/rebuild-gcj-db ] 
 then
  %{_bindir}/rebuild-gcj-db
 fi
%endif


%files
%defattr(-,root,root,-)
%doc dist/launch*
%{_javadir}/*
%if %{with_gcj}
%{_libdir}/gcj/%{name}
%endif

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}

# -----------------------------------------------------------------------------

%changelog
* Sat Oct 11 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.3.20081005cvs
- The license is changed to LGPLv2+.
- Fixed sizes of the font files on src/com/sun/pdfview/font/res/BaseFonts.properties
- BuildRequired urw-fonts

* Fri Oct 10 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.2.20081005cvs
- Removed pre-shipped fonts and told the program to use system-wide urw-fonts.
- The license is changed to LGPLv2+ and GPL+.

* Thu Oct 09 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT].com> 0-0.1.20081005cvs
- Initial Release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pdf-renderer/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 Oct 2008 02:08:34 -0000	1.1
+++ .cvsignore	13 Oct 2008 03:31:07 -0000	1.2
@@ -0,0 +1 @@
+PDFRenderer-2008_10_05-src.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pdf-renderer/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Oct 2008 02:08:34 -0000	1.1
+++ sources	13 Oct 2008 03:31:08 -0000	1.2
@@ -0,0 +1 @@
+faa078e3900d22a1f5f0202a414a62fc  PDFRenderer-2008_10_05-src.zip




More information about the fedora-extras-commits mailing list