From 5f73b43b6c94ec6e78bb170844acab9ff41e0981a85d13033f890d6cda25c8be Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Tue, 7 Jan 2014 15:12:52 +0000 Subject: [PATCH] - Initial packaging of pentaho-reporting-flow-engine 1.1.3 for SUSE (based on Fedora spec) * add pentaho-reporting-flow-engine-1.1.2-build.patch OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/pentaho-reporting-flow-engine?expand=0&rev=1 --- .gitattributes | 23 ++++++ flow-engine-0.9.4.zip | 3 + pentaho-reporting-flow-engine-rpmlintrc | 2 + pentaho-reporting-flow-engine.changes | 6 ++ pentaho-reporting-flow-engine.spec | 96 +++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 flow-engine-0.9.4.zip create mode 100644 pentaho-reporting-flow-engine-rpmlintrc create mode 100644 pentaho-reporting-flow-engine.changes create mode 100644 pentaho-reporting-flow-engine.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/flow-engine-0.9.4.zip b/flow-engine-0.9.4.zip new file mode 100644 index 0000000..3c982e6 --- /dev/null +++ b/flow-engine-0.9.4.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:233f66e8d25c5dd971716d4200203a612a407649686ef3b52075d04b4c9df0dd +size 743031 diff --git a/pentaho-reporting-flow-engine-rpmlintrc b/pentaho-reporting-flow-engine-rpmlintrc new file mode 100644 index 0000000..ec07c46 --- /dev/null +++ b/pentaho-reporting-flow-engine-rpmlintrc @@ -0,0 +1,2 @@ +#libserializer is java package, not native library +addFilter("explicit-lib-dependency libserializer") diff --git a/pentaho-reporting-flow-engine.changes b/pentaho-reporting-flow-engine.changes new file mode 100644 index 0000000..66b5d49 --- /dev/null +++ b/pentaho-reporting-flow-engine.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Jan 7 14:03:13 UTC 2014 - mvyskocil@suse.com + +- Initial packaging of pentaho-reporting-flow-engine 1.1.3 for SUSE (based on Fedora spec) + * add pentaho-reporting-flow-engine-1.1.2-build.patch + diff --git a/pentaho-reporting-flow-engine.spec b/pentaho-reporting-flow-engine.spec new file mode 100644 index 0000000..cb3744e --- /dev/null +++ b/pentaho-reporting-flow-engine.spec @@ -0,0 +1,96 @@ +# +# spec file for package pentaho-reporting-flow-engine +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: pentaho-reporting-flow-engine +Version: 0.9.4 +Release: 0 +Summary: Pentaho Flow Reporting Engine +License: LGPL-2.1+ +Group: System Environment/Libraries +Url: http://reporting.pentaho.org/ +Source: http://downloads.sourceforge.net/jfreereport/flow-engine-%{version}.zip +BuildRequires: ant +BuildRequires: flute +BuildRequires: java-devel +BuildRequires: jpackage-utils +BuildRequires: libbase +BuildRequires: libfonts +BuildRequires: libformula +BuildRequires: liblayout +BuildRequires: libloader +BuildRequires: librepository +BuildRequires: libserializer +BuildRequires: pentaho-libxml +BuildRequires: sac +BuildRequires: xml-commons-apis +BuildRequires: unzip +Requires: flute +Requires: java +Requires: jpackage-utils +Requires: libbase >= 1.1.3 +Requires: libfonts >= 1.1.3 +Requires: libformula >= 1.1.3 +Requires: liblayout >= 0.2.10 +Requires: librepository >= 1.1.3 +Requires: libserializer +Requires: pentaho-libxml +Requires: sac +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%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} = 1:%{version} +Requires: jpackage-utils + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -c +mkdir -p lib +find . -name "*.jar" -exec rm -f {} \; +build-jar-repository -s -p lib commons-logging-api libbase libloader \ + libfonts libxml jaxp libformula librepository sac flute liblayout \ + libserializer + +%build +ant jar javadoc + +%install + +mkdir -p %{buildroot}%{_javadir} +cp -p build/lib/flow-engine.jar %{buildroot}%{_javadir}/flow-engine.jar + +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -rp build/api %{buildroot}%{_javadocdir}/%{name} + +%files +%defattr(0644,root,root,0755) +%doc licence-LGPL.txt README.txt ChangeLog.txt +%{_javadir}/*.jar + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name} + +%changelog