You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.5 KiB
100 lines
2.5 KiB
17 years ago
|
# Use rpmbuild --without gcj to disable native bits
|
||
|
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
|
||
|
|
||
|
Name: pentaho-reporting-flow-engine
|
||
|
Version: 0.9.3
|
||
|
Release: 2%{?dist}
|
||
|
Summary: Pentaho Flow Reporting Engine
|
||
|
License: LGPLv2+
|
||
|
Group: System Environment/Libraries
|
||
|
Source: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.tar.gz
|
||
|
URL: http://reporting.pentaho.org/
|
||
|
BuildRequires: ant, java-devel, jpackage-utils, jcommon, jcommon-serializer
|
||
|
BuildRequires: libloader, libfonts, pentaho-libxml, xml-commons-apis
|
||
|
BuildRequires: librepository, sac, flute, liblayout, libformula
|
||
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
Requires: java, jpackage-utils, jcommon, jcommon-serializer, libfonts >= 0.3.4
|
||
|
Requires: pentaho-libxml, libformula >= 0.1.18, librepository >= 0.1.6
|
||
|
Requires: sac, flute, liblayout >= 0.2.9
|
||
|
%if %{with_gcj}
|
||
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||
|
Requires(post): java-gcj-compat >= 1.0.31
|
||
|
Requires(postun): java-gcj-compat >= 1.0.31
|
||
|
%else
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
Patch1: pentaho-reporting-flow-engine-0.9.3-depends.patch
|
||
|
|
||
|
%description
|
||
|
Pentaho Reporting Flow Engine is a free Java report library, formerly
|
||
|
known as 'JFreeReport'
|
||
|
|
||
|
%package javadoc
|
||
|
Summary: Javadoc for %{name}
|
||
|
Group: Development/Documentation
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
Requires: jpackage-utils
|
||
|
|
||
|
%description javadoc
|
||
|
Javadoc for %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch1 -p1 -b .depends
|
||
|
find . -name "*.jar" -exec rm -f {} \;
|
||
|
build-jar-repository -s -p lib jcommon jcommon-serializer libloader libfonts \
|
||
|
libxml jaxp libformula librepository sac flute liblayout
|
||
|
|
||
|
%build
|
||
|
ant compile javadoc
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
||
|
cp -p %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||
|
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||
|
cp -rp javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||
|
%if %{with_gcj}
|
||
|
%{_bindir}/aot-compile-rpm
|
||
|
%endif
|
||
|
|
||
|
%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(0644,root,root,0755)
|
||
|
%doc licence-LGPL.txt README.txt ChangeLog.txt
|
||
|
%{_javadir}/*.jar
|
||
|
%if %{with_gcj}
|
||
|
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
||
|
%endif
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(0644,root,root,0755)
|
||
|
%{_javadocdir}/%{name}
|
||
|
|
||
|
%changelog
|
||
|
* Fri Sep 05 2008 Caolan McNamara <caolanm@redhat.com> 0.9.3-2
|
||
|
- wrong liblayout version required
|
||
|
|
||
|
* Wed May 07 2008 Caolan McNamara <caolanm@redhat.com> 0.9.3-1
|
||
|
- initial fedora import
|