From 9f3a7a9ee9190c221c52e6899c3e9c75b5b41449 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:14:59 +0100 Subject: [PATCH] install whole package content under /usr/share/java-ucanaccess [release 4.0.4-2mamba;Thu Oct 03 2019] --- README.md | 2 ++ java-ucanaccess.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 java-ucanaccess.spec diff --git a/README.md b/README.md index 070a927..f21c3c1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # java-ucanaccess +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. + diff --git a/java-ucanaccess.spec b/java-ucanaccess.spec new file mode 100644 index 0000000..098724a --- /dev/null +++ b/java-ucanaccess.spec @@ -0,0 +1,64 @@ +Name: java-ucanaccess +Version: 4.0.4 +Release: 2mamba +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 +URL: http://ucanaccess.sourceforge.net +Source: https://sourceforge.net/projects/ucanaccess/files/UCanAccess-%{version}-bin.zip +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +#Requires: jakarta-commons-logging +#Requires: jakarta-commons-lang +#Requires: java-hsqldb +#Requires: java-jackcess +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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-lang-*.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 +* Thu Oct 03 2019 Silvan Calarco 4.0.4-2mamba +- install whole package content under /usr/share/java-ucanaccess + +* Fri Aug 16 2019 Silvan Calarco 4.0.4-1mamba +- package created using the webbuild interface