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