java-jfree-libserializer/java-jfree-libserializer.spec

87 lines
2.5 KiB
RPMSpec
Raw Normal View History

Name: java-jfree-libserializer
Version: 1.1.3
Release: 2mamba
Summary: JFree Java General Serialization Framework Library
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://community.hitachivantara.com/home
Source: http://sourceforge.net/projects/jfreereport/files/02.%20Libraries/%{version}-stable/libserializer-%{version}.zip
Patch0: java-jfree-libserializer-1.1.3-remove-antcontrib-support.patch
Patch1: java-jfree-libserializer-1.1.3-remove-commons-logging.patch
Patch2: java-jfree-libserializer-1.1.3-java11.patch
Patch3: java-jfree-libserializer-1.1.3-build.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: apache-ant
BuildRequires: java-jfree-libbase
Requires: java-jfree-libbase
Requires: javapackages
%description
This library module contains a general serialization framework. It simplifies the task of writing custom serialization handlers for non-serializable classes.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
JFree Java General Serialization Framework Library.
This package contains documentation for %{name}.
%prep
%setup -q -c
%patch0 -p1 -b .remove-antcontrib-support
%patch1 -p1 -b .remove-commons-logging
%patch2 -p1 -b .java11
%patch3 -p1 -b .build
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib libbase
%build
ant jar javadoc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 dist/libserializer-%{version}.jar %{buildroot}%{_javadir}/libserializer-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} ${jar/-%{version}/}
done
)
mkdir -p %{buildroot}%{_javadocdir}/libserializer
cp -pr bin/javadoc/docs/api/* %{buildroot}%{_javadocdir}/libserializer
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/libserializer-%{version}.jar
%{_javadir}/libserializer.jar
%doc licence-LGPL.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/libserializer
%changelog
* Fri Dec 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.3-2mamba
- rebuilt without gcj and with java11
* Sat Jan 22 2011 gil <puntogil@libero.it> 1.1.3-1mamba
- update to 1.1.3
* Wed Dec 09 2009 gil <puntogil@libero.it> 1.0.0-1mamba
- package created by autospec