0ea315
Name: libloader
0ea315
Version: 1.1.3
e57247
Release: 9%{?dist}
0ea315
Summary: Resource Loading Framework
0ea315
License: LGPLv2
0ea315
Group: System Environment/Libraries
0ea315
#Original source: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
0ea315
#unzip, find . -name "*.jar" -exec rm {} \;
0ea315
#to simplify the licensing
0ea315
Source: %{name}-%{version}-jarsdeleted.zip
0ea315
URL: http://reporting.pentaho.org/
e57247
BuildRequires: ant, ant-contrib, java-devel, jpackage-utils
0ea315
BuildRequires: libbase >= 1.1.3
0ea315
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0ea315
Requires: java, jpackage-utils, libbase >= 1.1.3
0ea315
BuildArch: noarch
0ea315
Patch0: libloader-1.1.2.build.patch
0ea315
0ea315
%description
0ea315
LibLoader is a general purpose resource loading framework. It has been
0ea315
designed to allow to load resources from any physical location and to
0ea315
allow the processing of that content data in a generic way, totally
0ea315
transparent to the user of that library.
0ea315
0ea315
%package javadoc
0ea315
Summary: Javadoc for %{name}
0ea315
Group: Development/Documentation
0ea315
Requires: %{name} = %{version}-%{release}
0ea315
Requires: jpackage-utils
0ea315
0ea315
%description javadoc
0ea315
Javadoc for %{name}.
0ea315
0ea315
%prep
0ea315
%setup -q -c
0ea315
%patch0 -p1 -b .build
0ea315
find . -name "*.jar" -exec rm -f {} \;
0ea315
mkdir -p lib
0ea315
build-jar-repository -s -p lib libbase commons-logging-api
0ea315
cd lib
0ea315
ln -s %{_javadir}/ant ant-contrib
0ea315
0ea315
%build
0ea315
ant jar javadoc
0ea315
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
0ea315
    tr -d '\r' < $file > $file.new
0ea315
    mv $file.new $file
0ea315
done
0ea315
0ea315
%install
0ea315
rm -rf $RPM_BUILD_ROOT
0ea315
0ea315
mkdir -p $RPM_BUILD_ROOT%{_javadir}
0ea315
cp -p ./dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
0ea315
pushd $RPM_BUILD_ROOT%{_javadir}
0ea315
ln -s %{name}-%{version}.jar %{name}.jar
0ea315
popd
0ea315
0ea315
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
0ea315
cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
0ea315
0ea315
%clean
0ea315
rm -rf $RPM_BUILD_ROOT
0ea315
0ea315
%files
0ea315
%defattr(0644,root,root,0755)
0ea315
%doc licence-LGPL.txt README.txt ChangeLog.txt
0ea315
%{_javadir}/%{name}-%{version}.jar
0ea315
%{_javadir}/%{name}.jar
0ea315
0ea315
%files javadoc
0ea315
%defattr(0644,root,root,0755)
0ea315
%{_javadocdir}/%{name}
0ea315
0ea315
%changelog
e57247
* Wed Jan 08 2014 Caolán McNamara <caolanm@redhat.com> - 1.1.3-9
e57247
- Resolves: rhbz#1048873 fix FTBFS
e57247
e57247
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.3-8
e57247
- Mass rebuild 2013-12-27
e57247
0ea315
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-7
0ea315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0ea315
0ea315
* Sat Nov 03 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.3-6
0ea315
- repack source to remove bundled multi-license .jars
0ea315
0ea315
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
0ea315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0ea315
0ea315
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
0ea315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0ea315
0ea315
* Fri Oct 28 2011 Caolán McNamara <caolanm@redhat.com> 1.1.3-3
0ea315
- Related: rhbz#749103 drop gcj aot
0ea315
0ea315
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
0ea315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0ea315
0ea315
* Thu Dec 02 2009 Caolan McNamara <caolanm@redhat.com> 1.1.3
0ea315
- latest version
0ea315
0ea315
* Tue Nov 17 2009 Caolan McNamara <caolanm@redhat.com> 1.1.2
0ea315
- latest version
0ea315
0ea315
* Fri Jul 24 2009 Caolan McNamara <caolanm@redhat.com> 1.0.0-2.OOo31
0ea315
- make javadoc no-arch when building as arch-dependant aot
0ea315
0ea315
* Mon Mar 16 2009 Caolan McNamara <caolanm@redhat.com> 1.0.0-1.OOo31
0ea315
- Post release tuned for OpenOffice.org reportbuilder
0ea315
0ea315
* Mon Mar 09 2009 Caolan McNamara <caolanm@redhat.com> 0.4.0-1
0ea315
- latest version
0ea315
0ea315
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
0ea315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ea315
0ea315
* Wed May 07 2008 Caolan McNamara <caolanm@redhat.com> 0.3.7-1
0ea315
- initial fedora import