eca61b
Name: libfonts
eca61b
Version: 1.1.3
eca61b
Release: 13%{?dist}
eca61b
Summary: TrueType Font Layouting
eca61b
License: LGPLv2 and UCD
eca61b
Group: System Environment/Libraries
eca61b
#Original source: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
eca61b
#unzip, find . -name "*.jar" -exec rm {} \;
eca61b
#to simplify the licensing
eca61b
Source: %{name}-%{version}-jarsdeleted.zip
eca61b
URL: http://reporting.pentaho.org/
eca61b
BuildRequires: ant, ant-contrib, java-devel, jpackage-utils, libloader >= 1.1.3
eca61b
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
eca61b
Requires: java, jpackage-utils, libloader >= 1.1.3
eca61b
BuildArch: noarch
eca61b
Patch0: libfonts-1.1.2.build.patch
eca61b
eca61b
%description
eca61b
LibFonts is a library developed to support advanced layouting in JFreeReport.
eca61b
This library allows to read TrueType-Font files to extract layouting specific
eca61b
informations.
eca61b
eca61b
%package javadoc
eca61b
Summary: Javadoc for %{name}
eca61b
Group: Development/Documentation
eca61b
Requires: %{name} = %{version}-%{release}
eca61b
Requires: jpackage-utils
eca61b
eca61b
%description javadoc
eca61b
Javadoc for %{name}.
eca61b
eca61b
%prep
eca61b
%setup -q -c
eca61b
%patch0 -p1 -b .build
eca61b
find . -name "*.jar" -exec rm -f {} \;
eca61b
rm -r source/org/pentaho/reporting/libraries/fonts/itext
eca61b
mkdir -p lib
eca61b
build-jar-repository -s -p lib libbase commons-logging-api libloader
eca61b
cd lib
eca61b
ln -s %{_javadir}/ant ant-contrib
eca61b
eca61b
%build
eca61b
ant jar javadoc
eca61b
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
eca61b
    tr -d '\r' < $file > $file.new
eca61b
    mv $file.new $file
eca61b
done
eca61b
eca61b
%install
eca61b
rm -rf $RPM_BUILD_ROOT
eca61b
eca61b
mkdir -p $RPM_BUILD_ROOT%{_javadir}
eca61b
cp -p ./dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
eca61b
pushd $RPM_BUILD_ROOT%{_javadir}
eca61b
ln -s %{name}-%{version}.jar %{name}.jar
eca61b
popd
eca61b
eca61b
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
eca61b
cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
eca61b
eca61b
%clean
eca61b
rm -rf $RPM_BUILD_ROOT
eca61b
eca61b
%files
eca61b
%defattr(0644,root,root,0755)
eca61b
%doc licence-LGPL.txt README.txt ChangeLog.txt
eca61b
%{_javadir}/%{name}-%{version}.jar
eca61b
%{_javadir}/%{name}.jar
eca61b
eca61b
%files javadoc
eca61b
%defattr(0644,root,root,0755)
eca61b
%{_javadocdir}/%{name}
eca61b
eca61b
%changelog
eca61b
* Wed Jan 08 2014 Caolán McNamara <caolanm@redhat.com> - 1.1.3-13
eca61b
- Resolves: rhbz#1048871 fix FTBFS
eca61b
eca61b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.3-12
eca61b
- Mass rebuild 2013-12-27
eca61b
eca61b
* Tue Apr 02 2013 Caolán McNamara <caolanm@redhat.com> - 1.1.3-11
eca61b
- drop iText requirement, we don't need it, and it's a complete pain
eca61b
eca61b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-10
eca61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
eca61b
eca61b
* Sat Nov 03 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.3-9
eca61b
- repack source to remove bundled multi-license .jars
eca61b
- encodings/Grapheme-Cluster-Properties.txt is under UCD
eca61b
eca61b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-8
eca61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eca61b
eca61b
* Thu May 10 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.3-7
eca61b
- Resolves: rhbz#749103 use itext-core
eca61b
eca61b
* Tue Feb 21 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.3-6
eca61b
- Related: rhbz#749103 can restore iText requirement now that
eca61b
  iText doesn't pull in the entire gcj stack
eca61b
eca61b
* Wed Feb 08 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.3-5
eca61b
- Related: rhbz#749103 drop iText requirement
eca61b
eca61b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
eca61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eca61b
eca61b
* Fri Oct 28 2011 Caolán McNamara <caolanm@redhat.com> - 1.1.3-3
eca61b
- Related: rhbz#749103 drop gcj aot
eca61b
eca61b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
eca61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
eca61b
eca61b
* Thu Dec 03 2009 Caolan McNamara <caolanm@redhat.com> 1.1.3-1
eca61b
- latest version
eca61b
eca61b
* Tue Nov 17 2009 Caolan McNamara <caolanm@redhat.com> 1.1.2-1
eca61b
- latest version
eca61b
eca61b
* Fri Jul 24 2009 Caolan McNamara <caolanm@redhat.com> 1.0.0-2.OOo31
eca61b
- make javadoc no-arch when building as arch-dependant aot
eca61b
eca61b
* Mon Mar 16 2009 Caolan McNamara <caolanm@redhat.com> 1.0.0-1.OOo31
eca61b
- Post-release tuned for OpenOffice.org
eca61b
eca61b
* Mon Mar 09 2009 Caolan McNamara <caolanm@redhat.com> 0.4.0-1
eca61b
- latest version
eca61b
eca61b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
eca61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
eca61b
eca61b
* Wed May 07 2008 Caolan McNamara <caolanm@redhat.com> 0.3.4-1
eca61b
- initial fedora import