java-flute/java-flute.spec

64 lines
1.7 KiB
RPMSpec

%define pkgver %(echo %version | cut -d. -f1-2)
%define javahome %{_jvmdir}/jdk
Name: java-flute
Version: 1.3.0
Release: 4mamba
Summary: Java CSS parser using SAC
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.w3.org/Style/CSS/SAC/
Source: https://sourceforge.net/projects/jfreereport/files/30.%20OpenOffice%20Branches/OOo31/flute-%{version}-OOo31.zip
License: W3C, LGPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: apache-ant
BuildRequires: java-sac
Requires: java-sac
Requires: javapackages
%description
A Cascading Style Sheets parser using the Simple API for CSS, for Java.
%prep
%setup -q -c
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib sac
%build
ant jar javadoc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 build/lib/flute.jar %{buildroot}%{_javadir}/flute-%{version}.jar
ln -sf flute-%{version}.jar %{buildroot}%{_javadir}/flute.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/flute-%{version}.jar
%{_javadir}/flute.jar
%doc COPYRIGHT.html
%changelog
* Fri Dec 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-4mamba
- rebuilt with ant
* Thu Dec 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-3mamba
- rebuilt using upstream jar
* Sat Jan 22 2011 gil <puntogil@libero.it> 1.3.0-2mamba
- rebuilt devel
- add gcj sub package
- rebuilt with java-openjdk
* Wed Dec 09 2009 gil <puntogil@libero.it> 1.3.0-1mamba
- package created by autospec