java-ucanaccess/java-ucanaccess.spec

65 lines
2.5 KiB
RPMSpec
Raw Normal View History

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 <silvan.calarco@mambasoft.it>
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 <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