java-ucanaccess/java-ucanaccess.spec

66 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: java-ucanaccess
Version: 5.0.1
Release: 1mamba
Summary: Java JDBC driver implementation that allows JDBC client programs to read/write Microsoft Access databases.
Group: System/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/ucanaccess/
Source: https://sourceforge.net/projects/ucanaccess/files/UCanAccess-%{version}.bin.zip
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
%description
UCanAccess is an open-source Java JDBC driver implementation that allows Java developers and JDBC client programs (e.g., DBeaver, NetBeans, SQLeo, OpenOffice Base, LibreOffice Base, Squirrel SQL) to read/write Microsoft Access databases.
%prep
%setup -q -n UCanAccess-%{version}.bin
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_datadir}/%{name} %{buildroot}%{_bindir}
cp -a * %{buildroot}%{_datadir}/%{name}/
rm -f %{buildroot}%{_datadir}/java-ucanaccess/console.bat
mv %{buildroot}%{_datadir}/java-ucanaccess/console.sh %{buildroot}%{_bindir}/ucanaccess-console
chmod +x %{buildroot}%{_bindir}/ucanaccess-console
sed -i "s|^UCANACCESS_HOME=.*|UCANACCESS_HOME=%{_datadir}/java-ucanaccess|" %{buildroot}%{_bindir}/ucanaccess-console
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/ucanaccess-console
%dir %{_datadir}/java-ucanaccess
%{_datadir}/java-ucanaccess/copyright.txt
%dir %{_datadir}/java-ucanaccess/lib
%{_datadir}/java-ucanaccess/lib/commons-lang3-*.jar
%{_datadir}/java-ucanaccess/lib/commons-logging-*.jar
%{_datadir}/java-ucanaccess/lib/hsqldb-*.jar
%{_datadir}/java-ucanaccess/lib/jackcess-*.jar
%dir %{_datadir}/java-ucanaccess/licenses
%{_datadir}/java-ucanaccess/licenses/*.txt
%dir %{_datadir}/java-ucanaccess/loader
%{_datadir}/java-ucanaccess/loader/ucanload.jar
%{_datadir}/java-ucanaccess/ucanaccess-*.jar
%{_datadir}/java-ucanaccess/version.txt
%changelog
* Mon Jan 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.1-1mamba
- update to 5.0.1
* Tue Jul 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1mamba
- update to 5.0.0
* Thu Oct 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-2mamba
- install whole package content under /usr/share/java-ucanaccess
* Fri Aug 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-1mamba
- package created using the webbuild interface