2014-01-07 14:52:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package pentaho-libxml
|
|
|
|
#
|
2023-08-09 08:06:55 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-01-07 14:52:44 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-03-20 09:57:33 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-07 14:52:44 +01:00
|
|
|
#
|
|
|
|
|
2014-07-01 15:48:46 +02:00
|
|
|
|
2014-01-07 14:52:44 +01:00
|
|
|
%define origname libxml
|
|
|
|
Name: pentaho-libxml
|
2022-04-21 13:46:19 +02:00
|
|
|
Version: 1.1.6
|
2014-01-07 14:52:44 +01:00
|
|
|
Release: 0
|
2017-09-11 19:11:57 +02:00
|
|
|
Summary: Namespace aware SAX parser utility library
|
2022-03-20 09:57:33 +01:00
|
|
|
License: LGPL-2.0-only
|
2014-01-07 16:19:56 +01:00
|
|
|
Group: Development/Libraries/Java
|
2022-03-20 09:57:33 +01:00
|
|
|
URL: http://reporting.pentaho.org/
|
2022-04-21 13:46:19 +02:00
|
|
|
Source: http://downloads.sourceforge.net/jfreereport/%{origname}-%{version}.zip
|
2014-01-07 14:52:44 +01:00
|
|
|
#PATCH-FIX-UPSTREAM, fix some properties for build
|
2022-04-21 13:46:19 +02:00
|
|
|
Patch0: pentaho-libxml-1.1.6-build.patch
|
|
|
|
Patch1: pentaho-libxml-1.1.6-sourcetarget.patch
|
2014-01-07 14:52:44 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-contrib
|
2022-03-20 21:26:59 +01:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2014-01-07 14:52:44 +01:00
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
BuildRequires: libbase
|
|
|
|
BuildRequires: libloader
|
|
|
|
BuildRequires: unzip
|
|
|
|
Requires: java
|
|
|
|
Requires: jpackage-utils
|
2022-04-21 13:46:19 +02:00
|
|
|
Requires: libbase >= 1.1.6
|
|
|
|
Requires: libloader >= 1.1.6
|
2014-07-01 15:48:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-07 14:52:44 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2017-09-11 19:11:57 +02:00
|
|
|
Pentaho LibXML is a namespace aware SAX parser utility library. It
|
|
|
|
facilitates implementing non-trivial SAX input handlers.
|
2014-01-07 14:52:44 +01:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
2014-01-07 16:19:56 +01:00
|
|
|
Group: Documentation/HTML
|
2014-01-07 14:52:44 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
2024-02-29 16:39:28 +01:00
|
|
|
%patch -P 0 -p1 -b .build
|
|
|
|
%patch -P 1 -p1
|
2017-09-11 19:11:57 +02:00
|
|
|
find . -name "*.jar" -delete
|
2014-01-07 14:52:44 +01:00
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s -p lib commons-logging-api libbase libloader
|
|
|
|
cd lib
|
|
|
|
ln -s %{_javadir}/ant ant-contrib
|
|
|
|
|
|
|
|
%build
|
|
|
|
ant jar javadoc
|
|
|
|
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
|
|
|
|
tr -d '\r' < $file > $file.new
|
|
|
|
mv $file.new $file
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -p ./dist/%{origname}-%{version}.jar %{buildroot}%{_javadir}/%{origname}.jar
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{origname}
|
|
|
|
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{origname}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc licence-LGPL.txt README.txt ChangeLog.txt
|
|
|
|
%{_javadir}/%{origname}.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_javadocdir}/%{origname}
|
|
|
|
|
|
|
|
%changelog
|