diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 8e76e35989..6c51a6154d 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -73,9 +73,13 @@ jobs: --token ${{ secrets.SUBATOMIC_TOKEN }} \ terra${{ matrix.version }} anda-build/rpm/rpms/* + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Notify Madoguchi (Success) - if: success() + if: success() && github.event_name != 'pull_request' run: ./.github/workflows/mg.sh true ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}} - name: Notify Madoguchi (Failure) - if: cancelled() || failure() + if: ( cancelled() || failure() ) && github.event_name != 'pull_request' run: ./.github/workflows/mg.sh false ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb9ceb3414..c9ef2a39a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,10 @@ jobs: --token ${{ secrets.SUBATOMIC_TOKEN }} \ terra${{ matrix.version }} anda-build/rpm/rpms/* + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Notify Madoguchi (Success) if: success() run: ./.github/workflows/mg.sh true ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}} diff --git a/.github/workflows/mg.sh b/.github/workflows/mg.sh index 273d6e1380..f25e7da65c 100755 --- a/.github/workflows/mg.sh +++ b/.github/workflows/mg.sh @@ -3,7 +3,6 @@ set -x dirs=$2 dirs=${dirs/\/pkg/} export p="{\"id\":\"$5\",\"ver\":\"%v\",\"rel\":\"%r\",\"arch\":\"$4\",\"dirs\":\"$dirs\",\"succ\":$1}" - for f in anda-build/rpm/rpms/*; do n=$(lesspipe.sh $f | grep -E "Name\s*: " | sed "s@Name\s*: @@") v=$(lesspipe.sh $f | grep -E "Version\s*: " | sed "s@Version\s*: @@") diff --git a/anda/desktops/elementary/elementary-terminal/elementary-terminal.spec b/anda/desktops/elementary/elementary-terminal/elementary-terminal.spec index 7f733ec770..156d4c6c8b 100644 --- a/anda/desktops/elementary/elementary-terminal/elementary-terminal.spec +++ b/anda/desktops/elementary/elementary-terminal/elementary-terminal.spec @@ -11,7 +11,7 @@ URL: https://github.com/elementary/%{srcname} Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildRequires: desktop-file-utils -BuildRequires: gettext +BuildRequires: gettext xorg-x11-server-Xvfb BuildRequires: libappstream-glib BuildRequires: meson BuildRequires: vala >= 0.40.0 diff --git a/anda/fonts/iosevka-fusion/iosevka-fusion-fonts.spec b/anda/fonts/iosevka-fusion/iosevka-fusion-fonts.spec index 3654bb6e4c..bed13f6649 100644 --- a/anda/fonts/iosevka-fusion/iosevka-fusion-fonts.spec +++ b/anda/fonts/iosevka-fusion/iosevka-fusion-fonts.spec @@ -2,7 +2,7 @@ %global debug_package %{nil} Name: iosevka-fusion-fonts -Version: 22.0.0 +Version: 22.0.1 Release: 1%{?dist} Summary: A custom font based on iosevka diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index d142a86de0..bdaf3ee562 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 0a9081cb878044ec70f40f46082a23c5e821b101 +%global commit 95842ee25f3f495915f3956296bbcb90686e1658 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index 1e5dc6fd2b..5c603ced55 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 0a9081cb878044ec70f40f46082a23c5e821b101 +%global commit 95842ee25f3f495915f3956296bbcb90686e1658 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/kotlin/kotlin-native/anda.hcl b/anda/kotlin/kotlin-native/anda.hcl new file mode 100644 index 0000000000..8458440e73 --- /dev/null +++ b/anda/kotlin/kotlin-native/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "kotlin-native.spec" + } +} diff --git a/anda/kotlin/kotlin-native/kotlin-native.spec b/anda/kotlin/kotlin-native/kotlin-native.spec new file mode 100644 index 0000000000..98a2479dad --- /dev/null +++ b/anda/kotlin/kotlin-native/kotlin-native.spec @@ -0,0 +1,141 @@ +%define _binaries_in_noarch_packages_terminate_build 0 + +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Name: kotlin-native +Version: 1.8.20 +Release: 1%{?dist} +Summary: LLVM backend for the Kotlin compiler +ExclusiveArch: x86_64 + +License: ASL 2.0 +URL: https://kotlinlang.org/docs/reference/native-overview.html +Source0: https://github.com/JetBrains/kotlin/releases/download/v%{version}/kotlin-native-linux-x86_64-%{version}.tar.gz + +BuildRequires: tar +BuildRequires: sed +BuildRequires: bash +BuildRequires: (java-headless >= 1:1.8.0 or java >= 1.8.0) +Requires: (java-headless >= 1:1.8.0 or java >= 1.8.0) +Requires: ncurses-compat-libs +Suggests: python +Suggests: lldb + + +%description +Kotlin/Native is a technology for compiling Kotlin code to native binaries, +which can run without a virtual machine. It is an LLVM based backend for the +Kotlin compiler and native implementation of the Kotlin standard library. + + +%prep +tar -xf %{SOURCE0} && cd kotlin-native-linux-x86_64-%{version} +sed -i "s|\(DIR *= *\).*|\1%{_bindir}|" bin/* +sed -i "s|\(KONAN_HOME *= *\).*|\1%{_datadir}/%{name}|" bin/* + + +%install +rm -rf %{buildroot} && mkdir -p %{buildroot}%{_bindir}/ && cd kotlin-native-linux-x86_64-%{version} +install -m 0755 bin/cinterop %{buildroot}%{_bindir}/ +install -m 0755 bin/generate-platform %{buildroot}%{_bindir}/ +install -m 0755 bin/jsinterop %{buildroot}%{_bindir}/ +install -m 0755 bin/klib %{buildroot}%{_bindir}/ +install -m 0755 bin/konanc %{buildroot}%{_bindir}/ +install -m 0755 bin/konan-lldb %{buildroot}%{_bindir}/ +install -m 0755 bin/kotlinc-native %{buildroot}%{_bindir}/ +install -m 0755 bin/run_konan %{buildroot}%{_bindir}/ +mkdir -p %{buildroot}%{_datadir}/%{name}/ +for name in klib konan tools; do + find "$name/" -type f -exec install -Dm 0644 {} %{buildroot}%{_datadir}/%{name}/{} \; +done +mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/ +cd licenses && find * -type f -exec install -Dm 0644 {} %{buildroot}%{_datadir}/licenses/%{name}/{} \; + + +%verifyscript +rm -rf test && mkdir test && cd test +cat < test.kt +fun main(args: Array) { + println("Hello, world!") +} +EOT +kotlinc-native test.kt -o test +./test.kexe + + +%files +%{_bindir}/* +%dir %{_datadir}/%{name}/ +%dir %{_datadir}/%{name}/klib/ +%{_datadir}/%{name}/klib/** +%dir %{_datadir}/%{name}/konan/ +%{_datadir}/%{name}/konan/** +%dir %{_datadir}/%{name}/tools/ +%{_datadir}/%{name}/tools/** +%dir %{_datadir}/licenses/%{name}/ +%{_datadir}/licenses/%{name}/* +%license kotlin-native-linux-x86_64-%{version}/licenses/LICENSE.txt + + +%changelog +* Mon Apr 03 2023 Gonçalo Silva +- Update to 1.8.20 +* Thu Feb 02 2023 Gonçalo Silva +- Update to 1.8.10 +* Wed Dec 28 2022 Gonçalo Silva +- Update to 1.8.0 +* Wed Nov 09 2022 Gonçalo Silva +- Update to 1.7.21 +* Thu Sep 29 2022 Gonçalo Silva +- Update to 1.7.20 +* Fri Jul 08 2022 Gonçalo Silva +- Update to 1.7.10 +* Mon Jun 13 2022 Gonçalo Silva +- Update to 1.7.0 +* Mon Jun 13 2022 Gonçalo Silva +- Update to 1.6.21 +* Thu Jun 09 2022 Gonçalo Silva +- Update to 1.7.0 +* Wed Apr 20 2022 Gonçalo Silva +- Update to 1.6.21 +* Mon Apr 04 2022 Gonçalo Silva +- Update to 1.6.20 +* Tue Dec 14 2021 Gonçalo Silva +- Update to 1.6.10 +* Fri Dec 10 2021 Gonçalo Silva +- Update to 1.6.0 +* Mon Nov 29 2021 Gonçalo Silva +- Update to 1.5.32 +* Tue Nov 16 2021 Gonçalo Silva +- Update to 1.6.0 +* Mon Sep 20 2021 Gonçalo Silva +- Update to 1.5.31 +* Tue Aug 24 2021 Gonçalo Silva +- Update to 1.5.30 +* Tue Jul 13 2021 Gonçalo Silva +- Update to 1.5.21 +* Thu Jun 24 2021 Gonçalo Silva +- Update to 1.5.20 +* Mon May 24 2021 Gonçalo Silva +- Update to 1.5.10 +* Wed May 05 2021 Gonçalo Silva +- Update to 1.5.0 +* Tue Mar 30 2021 Gonçalo Silva +- Update to 1.4.32 +* Fri Feb 26 2021 Gonçalo Silva +- Update to 1.4.31 +* Wed Feb 03 2021 Gonçalo Silva +- Update to 1.4.30 +* Mon Jan 18 2021 Gonçalo Silva +- Update to 1.4.30-RC +* Mon Dec 07 2020 Gonçalo Silva +- Update to 1.4.21 +* Thu Nov 19 2020 Gonçalo Silva +- Update to 1.4.20 +* Thu Sep 10 2020 Gonçalo Silva +- Update to 1.4.10 +* Fri Aug 14 2020 Gonçalo Silva +- Update to 1.4.0 +* Sat Apr 18 2020 Gonçalo Silva +- Update to 1.3.72 +* Mon Apr 13 2020 Gonçalo Silva +- Kotlin/Native 1.3.71 \ No newline at end of file diff --git a/anda/kotlin/kotlin-native/update.rhai b/anda/kotlin/kotlin-native/update.rhai new file mode 100644 index 0000000000..7a5a757de5 --- /dev/null +++ b/anda/kotlin/kotlin-native/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("JetBrains/kotlin")); \ No newline at end of file diff --git a/anda/kotlin/kotlin/anda.hcl b/anda/kotlin/kotlin/anda.hcl new file mode 100644 index 0000000000..d11b3eca0f --- /dev/null +++ b/anda/kotlin/kotlin/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "kotlin.spec" + } +} diff --git a/anda/kotlin/kotlin/kotlin.spec b/anda/kotlin/kotlin/kotlin.spec new file mode 100644 index 0000000000..e2ab174906 --- /dev/null +++ b/anda/kotlin/kotlin/kotlin.spec @@ -0,0 +1,132 @@ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Name: kotlin +Version: 1.8.20 +Release: 1%{?dist} +Summary: Statically typed programming language + +License: ASL 2.0 +URL: https://kotlinlang.org/ +Source0: https://github.com/JetBrains/kotlin/releases/download/v%{version}/kotlin-compiler-%{version}.zip + +BuildRequires: unzip +BuildRequires: sed +BuildRequires: bash +BuildRequires: (java-headless >= 1:1.8.0 or java >= 1.8.0) +Requires: (java-headless >= 1:1.8.0 or java >= 1.8.0) + + +%description +Kotlin is a statically typed programming language that targets the JVM, +Android, JavaScript and Native (via kotlin-native). Developed by JetBrains, +the project started in 2010 and had its official 1.0 release in 2016. + + +%prep +unzip -o %{SOURCE0} && cd kotlinc +sed -i "s|\(DIR *= *\).*|\1%{_bindir}|" bin/* +sed -i "s|\(KOTLIN_HOME *= *\).*|\1%{_datadir}/%{name}|" bin/* + + +%install +rm -rf %{buildroot} && mkdir -p %{buildroot}%{_bindir}/ && cd kotlinc +install -m 0755 bin/kotlin %{buildroot}%{_bindir}/ +install -m 0755 bin/kotlin-dce-js %{buildroot}%{_bindir}/ +install -m 0755 bin/kotlinc %{buildroot}%{_bindir}/ +install -m 0755 bin/kotlinc-js %{buildroot}%{_bindir}/ +install -m 0755 bin/kotlinc-jvm %{buildroot}%{_bindir}/ +mkdir -p %{buildroot}%{_datadir}/%{name}/ +install -m 0644 build.txt %{buildroot}%{_datadir}/%{name}/ +mkdir -p %{buildroot}%{_datadir}/%{name}/lib/ +install -m 0644 lib/* %{buildroot}%{_datadir}/%{name}/lib/ +mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/ +cd license/ && find * -type f -exec install -Dm 0644 {} %{buildroot}%{_datadir}/licenses/%{name}/{} \; + + +%verifyscript +rm -rf test && mkdir test && cd test +cat < test.kt +fun main(args: Array) { + println("Hello, world!") +} +EOT +kotlinc test.kt && kotlin TestKt +kotlinc test.kt -include-runtime -d test.jar +kotlinc-js test.kt -output test.js +kotlinc-jvm test.kt -include-runtime -d test.jar + + +%files +%{_bindir}/* +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/build.txt +%dir %{_datadir}/%{name}/lib/ +%{_datadir}/%{name}/lib/* +%dir %{_datadir}/licenses/%{name}/ +%{_datadir}/licenses/%{name}/* +%license kotlinc/license/LICENSE.txt + + +%changelog +* Mon Apr 03 2023 Gonçalo Silva +- Update to 1.8.20 +* Thu Feb 02 2023 Gonçalo Silva +- Update to 1.8.10 +* Wed Dec 28 2022 Gonçalo Silva +- Update to 1.8.0 +* Wed Nov 09 2022 Gonçalo Silva +- Update to 1.7.21 +* Thu Sep 29 2022 Gonçalo Silva +- Update to 1.7.20 +* Fri Jul 08 2022 Gonçalo Silva +- Update to 1.7.10 +* Mon Jun 13 2022 Gonçalo Silva +- Update to 1.7.0 +* Mon Jun 13 2022 Gonçalo Silva +- Update to 1.6.21 +* Thu Jun 09 2022 Gonçalo Silva +- Update to 1.7.0 +* Wed Apr 20 2022 Gonçalo Silva +- Update to 1.6.21 +* Mon Apr 04 2022 Gonçalo Silva +- Update to 1.6.20 +* Tue Dec 14 2021 Gonçalo Silva +- Update to 1.6.10 +* Fri Dec 10 2021 Gonçalo Silva +- Update to 1.6.0 +* Mon Nov 29 2021 Gonçalo Silva +- Update to 1.5.32 +* Tue Nov 16 2021 Gonçalo Silva +- Update to 1.6.0 +* Mon Sep 20 2021 Gonçalo Silva +- Update to 1.5.31 +* Tue Aug 24 2021 Gonçalo Silva +- Update to 1.5.30 +* Tue Jul 13 2021 Gonçalo Silva +- Update to 1.5.21 +* Thu Jun 24 2021 Gonçalo Silva +- Update to 1.5.20 +* Mon May 24 2021 Gonçalo Silva +- Update to 1.5.10 +* Wed May 05 2021 Gonçalo Silva +- Update to 1.5.0 +* Tue Mar 30 2021 Gonçalo Silva +- Update to 1.4.32 +* Fri Feb 26 2021 Gonçalo Silva +- Update to 1.4.31 +* Wed Feb 03 2021 Gonçalo Silva +- Update to 1.4.30 +* Mon Jan 18 2021 Gonçalo Silva +- Update to 1.4.30-RC +* Mon Dec 07 2020 Gonçalo Silva +- Update to 1.4.21 +* Thu Nov 19 2020 Gonçalo Silva +- Update to 1.4.20 +* Thu Sep 10 2020 Gonçalo Silva +- Update to 1.4.10 +* Fri Aug 14 2020 Gonçalo Silva +- Update to 1.4.0 +* Sat Apr 18 2020 Gonçalo Silva +- Update to 1.3.72 +* Mon Apr 13 2020 Gonçalo Silva +- Kotlin 1.3.71 \ No newline at end of file diff --git a/anda/kotlin/kotlin/update.rhai b/anda/kotlin/kotlin/update.rhai new file mode 100644 index 0000000000..7a5a757de5 --- /dev/null +++ b/anda/kotlin/kotlin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("JetBrains/kotlin")); \ No newline at end of file diff --git a/anda/lib/libhelium/libhelium.spec b/anda/lib/libhelium/libhelium.spec index 2abfc881c8..858bf76b9d 100644 --- a/anda/lib/libhelium/libhelium.spec +++ b/anda/lib/libhelium/libhelium.spec @@ -1,6 +1,6 @@ Summary: The Application Framework for tauOS apps Name: libhelium -Version: 1.5.14 +Version: 1.5.15 Release: 1%{?dist} License: GPL-3.0 URL: https://github.com/tau-OS/libhelium diff --git a/anda/lib/libindicator/libindicator.spec b/anda/lib/libindicator/libindicator.spec index 54c4bb1432..f3f3d3a8d3 100644 --- a/anda/lib/libindicator/libindicator.spec +++ b/anda/lib/libindicator/libindicator.spec @@ -73,7 +73,7 @@ NOCONFIGURE=1 \ sh autogen.sh %build -%global _configure ../configure +%global _configure ../configure --libdir=%{_libdir} rm -rf build-gtk2 build-gtk3 mkdir build-gtk2 build-gtk3 diff --git a/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec b/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec index 1aa1e22715..81a15666af 100644 --- a/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec +++ b/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec @@ -26,7 +26,7 @@ BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(libapparmor) Requires: lomiri-ui-toolkit -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %description Lomiri-url-dispatcher is a small handler to take URLs and do what is appropriate with them. diff --git a/anda/lib/nux/nux.spec b/anda/lib/nux/nux.spec index a01d5448fc..b39613d79a 100644 --- a/anda/lib/nux/nux.spec +++ b/anda/lib/nux/nux.spec @@ -10,7 +10,7 @@ Summary: An OpenGL toolkit License: GPL-3.0-or-later AND LGPL-3.0-or-later AND LGPL-2.0-or-later URL: https://gitlab.com/ubuntu-unity/unity-x/nux Source0: %{url}/-/archive/%commit/nux-%commit.tar.bz2 -Patch0: https://gitlab.com/cat-master21/nux/-/commit/0e834a556818281b9e023b47f0667e8da0f5cebd.patch +Source1: https://gitlab.com/cat-master21/nux/-/commit/0e834a556818281b9e023b47f0667e8da0f5cebd.patch BuildRequires: automake libtool gnome-common BuildRequires: intltool @@ -54,7 +54,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %prep %autosetup -n nux-%commit -N -git apply %{PATCH0} +git apply %{SOURCE1} %build NOCONFIGURE=1 \ diff --git a/anda/lib/unity-settings-daemon/unity-settings-daemon.spec b/anda/lib/unity-settings-daemon/unity-settings-daemon.spec index ed0be46719..e5ac6aa4ba 100644 --- a/anda/lib/unity-settings-daemon/unity-settings-daemon.spec +++ b/anda/lib/unity-settings-daemon/unity-settings-daemon.spec @@ -61,7 +61,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} # Requires internet so manually installing manpage rm -rf man -sed -i '/man\/Makefile/d' ./configure.ac +sed -i '/man\/Makefile/d' "configure.ac" sed -i '/man/d' Makefile.am %build diff --git a/anda/python/orjson/python3-orjson.spec b/anda/python/orjson/python3-orjson.spec index 5e98b7cebf..5849d30342 100644 --- a/anda/python/orjson/python3-orjson.spec +++ b/anda/python/orjson/python3-orjson.spec @@ -1,7 +1,7 @@ %global debug_package %{nil} Name: python3-orjson -Version: 3.8.9 +Version: 3.8.10 Release: 1%{?dist} Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy License: MIT OR Apache-2.0 diff --git a/anda/rust/starship/rust-starship.spec b/anda/rust/starship/rust-starship.spec index 54bc7540ba..6566d92aec 100644 --- a/anda/rust/starship/rust-starship.spec +++ b/anda/rust/starship/rust-starship.spec @@ -5,8 +5,8 @@ %global crate starship Name: rust-starship -Version: 1.13.1 -Release: %autorelease +Version: 1.14.1 +Release: 1%{?dist} Summary: Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️ License: ISC diff --git a/anda/tools/anda/anda.hcl b/anda/tools/anda/anda.hcl new file mode 100644 index 0000000000..603eef82af --- /dev/null +++ b/anda/tools/anda/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-anda.spec" + } +} diff --git a/anda/tools/anda/rust-anda.spec b/anda/tools/anda/rust-anda.spec new file mode 100644 index 0000000000..dee8661829 --- /dev/null +++ b/anda/tools/anda/rust-anda.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 22 +%bcond_without check +%define debug_package %{nil} + +%global crate anda + +Name: rust-anda +Version: 0.1.17 +Release: 1%{?dist} +Summary: Andaman Build toolchain + +License: MIT +URL: https://crates.io/crates/anda +Source: https://github.com/FyraLabs/anda/archive/refs/tags/%{version}.tar.gz + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 +BuildRequires: anda-srpm-macros +BuildRequires: openssl-devel +BuildRequires: git-core + +Requires: mock +Requires: rpm-build +Requires: createrepo_c +Requires: git-core +%global _description %{expand: +Andaman Build toolchain.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%{_bindir}/anda +%{_mandir}/man1/anda*.1* +%{_sysconfdir}/bash_completion.d/anda.bash +%{_datadir}/zsh/site-functions/_anda +%{_datadir}/fish/completions/anda.fish +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build +cargo run --release -p xtask -- manpage +cargo run --release -p xtask -- completion + +%install +%cargo_install + +mkdir -p %{buildroot}%{_mandir}/man1/ + +# Install shell completions + +COMPDIR="target/assets/completion" + +mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/ +cp -v $COMPDIR/bash/anda.bash %{buildroot}%{_sysconfdir}/bash_completion.d/anda.bash +mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/ +cp -v $COMPDIR/zsh/_anda %{buildroot}%{_datadir}/zsh/site-functions/_anda +mkdir -p %{buildroot}%{_datadir}/fish/completions/ +cp -v $COMPDIR/fish/anda.fish %{buildroot}%{_datadir}/fish/completions/anda.fish + +# install man pages +cp -v target/assets/man_pages/* %{buildroot}%{_mandir}/man1/ + + +rm -rf %{buildroot}%{cargo_registry} + +%changelog +%autochangelog diff --git a/anda/tools/anda/update.rhai b/anda/tools/anda/update.rhai new file mode 100644 index 0000000000..e444295a80 --- /dev/null +++ b/anda/tools/anda/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FyraLabs/anda")); diff --git a/anda/tools/muon/muon.spec b/anda/tools/muon/muon.spec index 87c4982ec8..673b655047 100644 --- a/anda/tools/muon/muon.spec +++ b/anda/tools/muon/muon.spec @@ -1,5 +1,5 @@ Name: muon -Version: 0.1.0 +Version: 0.2.0 Release: 1%{?dist} Summary: A meson-compatible build system. diff --git a/anda/tools/subatomic/anda.hcl b/anda/tools/subatomic/anda.hcl new file mode 100644 index 0000000000..9f7c34167d --- /dev/null +++ b/anda/tools/subatomic/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "subatomic.spec" + } +} diff --git a/anda/tools/subatomic/subatomic.spec b/anda/tools/subatomic/subatomic.spec new file mode 100644 index 0000000000..1209591eb5 --- /dev/null +++ b/anda/tools/subatomic/subatomic.spec @@ -0,0 +1,57 @@ +%define debug_package %{nil} +%define _build_id_links none +%global commit 200283ccd3cf7c90b6a9be565ce6ff52bdec977e + +Name: subatomic +Version: 0.1.0.%{commit} +Release: 1%{?dist} +Summary: A modern package delivery system + +License: MIT +URL: https://github.com/FyraLabs/subatomic +Source0: https://github.com/FyraLabs/subatomic/archive/%{commit}.zip + +BuildRequires: go-rpm-macros +BuildRequires: git-core +BuildRequires: ostree-devel +Requires: ostree +Requires: createrepo_c + +%description +Subatomic is a package delivery system which supports multiple package formats. +It manages a repository of packages, handling updating, signing, and other tasks. + +%package cli +Summary: Client for Subatomic repo manager + +%description cli +Client for Subatomic repo manager + +%files cli +%{_bindir}/subatomic-cli + +%prep +%autosetup -n subatomic-%{commit} + + +%build + +mkdir -p build/bin +go build -v -o build/bin/subatomic-cli ./subatomic-cli +go build -v -o build/bin/subatomic ./server + + +%install +mkdir -p %{buildroot}%{_bindir}/ +install -pm 755 build/bin/subatomic-cli %{buildroot}%{_bindir}/ +install -pm 755 build/bin/subatomic %{buildroot}%{_bindir}/ + + +%files +%{_bindir}/subatomic + + + +%changelog +* Fri Sep 30 2022 Cappy Ishihara +- Intial release diff --git a/anda/tools/subatomic/update.rhai b/anda/tools/subatomic/update.rhai new file mode 100644 index 0000000000..aebf768483 --- /dev/null +++ b/anda/tools/subatomic/update.rhai @@ -0,0 +1,2 @@ +let sha = get("https://api.github.com/repos/FyraLabs/subatomic/commits").json_arr()[0].sha; +rpm.global("commit", sha);