java-jfree-liblayout/java-jfree-liblayout.spec

80 lines
2.3 KiB
RPMSpec
Raw Normal View History

Name: java-jfree-liblayout
Version: 0.2.10
Release: 2mamba
Summary: CSS based layouting framework
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://community.hitachivantara.com/home
Source: http://downloads.sourceforge.net/project/jfreereport/10.%20Flow%20Engine/0.9.4/liblayout-%{version}.zip
Patch0: java-jfree-liblayout-0.2.10-remove-commons-logging.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: apache-ant
BuildRequires: java-flute
BuildRequires: java-jfree-libbase
BuildRequires: java-jfree-libloader
BuildRequires: java-jfree-libfonts < 1.2
BuildRequires: java-jfree-librepository
BuildRequires: java-sac
BuildRequires: java-pentaho-libxml
Requires: java-flute
Requires: java-jfree-libbase
Requires: java-jfree-libloader
Requires: java-jfree-libfonts < 1.2
Requires: java-jfree-librepository
Requires: java-sac
Requires: java-pentaho-libxml
Requires: javapackages
%description
LibLayout is a layouting framework. It is based on the Cascading StyleSheets standard (in the upcoming version 3). The layouting expects to receive its content as a DOM structure (although it does not rely on the W3C-DOM API).
%prep
%setup -q -c
%patch0 -p1 -b .remove-commons-logging
mkdir lib
build-jar-repository -s -p lib flute libloader librepository libxml libfonts \
sac libbase
%build
ant jar
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 build/lib/liblayout.jar %{buildroot}%{_javadir}/liblayout-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} ${jar/-%{version}/}
done
)
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/liblayout-%{version}.jar
%{_javadir}/liblayout.jar
%doc licence-LGPL.txt
%changelog
* Fri Dec 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.10-2mamba
- use prebuilt jar
* Sat Jan 22 2011 gil <puntogil@libero.it> 0.2.10-1mamba
- update to 0.2.10
* Wed Dec 09 2009 gil <puntogil@libero.it> 0.2.9-2mamba
- rebuilt
* Wed Dec 09 2009 gil <puntogil@libero.it> 0.2.9-1mamba
- package created by autospec