From bfe653d71f2f54a92d520a158277c0a0591c7309 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 02:33:51 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.5.30_M1-1mamba;Sun Jul 25 2021] --- README.md | 2 ++ kotlin.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 kotlin.spec diff --git a/README.md b/README.md index 519d3e3..9b5df0e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kotlin +Statically typed programming language that can interoperate with Java. + diff --git a/kotlin.spec b/kotlin.spec new file mode 100644 index 0000000..5fc7f3b --- /dev/null +++ b/kotlin.spec @@ -0,0 +1,57 @@ +%define pkgver %(echo %version | tr _ -) +Name: kotlin +Version: 1.5.30_M1 +Release: 1mamba +Summary: Statically typed programming language that can interoperate with Java +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://kotlinlang.org/ +Source: https://github.com/JetBrains/kotlin/releases/download/v%{pkgver}/kotlin-compiler-%{pkgver}.zip +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +Statically typed programming language that can interoperate with Java. + +%prep +%setup -q -n kotlinc + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +for f in kotlin kotlinc kotlinc-js kotlinc-jvm; do + install -D -m0755 bin/$f %{buildroot}%{_bindir}/$f +done + +# jar files +cd lib +for jar in *.jar; do + install -D -m0644 $jar %{buildroot}%{_datadir}/kotlin/lib/$jar +done +cd .. + +# build.txt must be installed for for "-version" to work +install -D -m0644 build.txt %{buildroot}%{_datadir}/kotlin/build.txt + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/kotlin +%{_bindir}/kotlinc +%{_bindir}/kotlinc-js +%{_bindir}/kotlinc-jvm +%{_datadir}/kotlin/build.txt +%dir %{_datadir}/kotlin/lib +%{_datadir}/kotlin/lib/*.jar +%doc license/LICENSE.txt license/COPYRIGHT.txt license/COPYRIGHT_HEADER.txt + +%changelog +* Sun Jul 25 2021 Silvan Calarco 1.5.30_M1-1mamba +- package created using the webbuild interface