2014-01-07 13:36:08 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libloader
|
|
|
|
|
#
|
2022-03-20 12:08:42 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-01-07 13:36:08 +00: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 12:08:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-07 13:36:08 +00:00
|
|
|
#
|
|
|
|
|
|
2014-07-01 13:42:53 +00:00
|
|
|
|
2014-01-07 13:36:08 +00:00
|
|
|
Name: libloader
|
2022-04-21 11:46:18 +00:00
|
|
|
Version: 1.1.6
|
2014-01-07 13:36:08 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Resource Loading Framework
|
2022-03-20 12:08:42 +00:00
|
|
|
License: LGPL-2.0-only
|
2014-01-07 13:40:31 +00:00
|
|
|
Group: Development/Libraries/Java
|
2022-03-20 12:08:42 +00:00
|
|
|
URL: http://reporting.pentaho.org/
|
2022-04-21 11:46:18 +00:00
|
|
|
Source: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
|
2014-07-09 10:32:06 +00:00
|
|
|
Source99: %{name}-rpmlintrc
|
2014-01-07 13:36:08 +00:00
|
|
|
#PATCH-FIX-UPSTREAM, fix some properties for build
|
2022-04-21 11:46:18 +00:00
|
|
|
Patch0: libloader-1.1.6.build.patch
|
|
|
|
|
Patch1: libloader-1.1.6-sourcetarget.patch
|
|
|
|
|
Patch2: libloader-1.1.6-javadoc.patch
|
2014-01-07 13:36:08 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
|
BuildRequires: ant-contrib
|
2022-03-20 20:24:27 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2014-01-07 13:36:08 +00:00
|
|
|
BuildRequires: jpackage-utils
|
2022-04-21 11:46:18 +00:00
|
|
|
BuildRequires: libbase >= 1.1.6
|
2014-01-07 13:36:08 +00:00
|
|
|
BuildRequires: unzip
|
|
|
|
|
Requires: java
|
|
|
|
|
Requires: jpackage-utils
|
2022-04-21 11:46:18 +00:00
|
|
|
Requires: libbase >= 1.1.6
|
2014-07-01 13:42:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-07 13:36:08 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
LibLoader is a general purpose resource loading framework. It has been
|
|
|
|
|
designed to allow to load resources from any physical location and to
|
|
|
|
|
allow the processing of that content data in a generic way, totally
|
|
|
|
|
transparent to the user of that library.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc for %{name}
|
2014-01-07 15:19:39 +00:00
|
|
|
Group: Documentation/HTML
|
2014-01-07 13:36:08 +00:00
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c
|
2024-02-29 19:03:28 +00:00
|
|
|
%patch -P 0 -p1 -b .build
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
%patch -P 2 -p1
|
2014-01-07 13:36:08 +00:00
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
mkdir -p lib
|
|
|
|
|
build-jar-repository -s -p lib libbase commons-logging-api
|
|
|
|
|
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/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc licence-LGPL.txt README.txt ChangeLog.txt
|
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|