diff --git a/anda/langs/go/xyproto-env/anda.hcl b/anda/langs/go/xyproto-env/anda.hcl deleted file mode 100644 index ea4f5641c0..0000000000 --- a/anda/langs/go/xyproto-env/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "golang-github-xyproto-env.spec" - } -} diff --git a/anda/langs/go/xyproto-env/golang-github-xyproto-env.spec b/anda/langs/go/xyproto-env/golang-github-xyproto-env.spec deleted file mode 100644 index 753a9918a7..0000000000 --- a/anda/langs/go/xyproto-env/golang-github-xyproto-env.spec +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by go2rpm 1.8.2 -%bcond_without check -%global debug_package %{nil} - -# https://github.com/xyproto/env -%global goipath github.com/xyproto/env -Version: 2.5.3 - -%gometa -f - -%global common_description %{expand: -Provide default values when fetching environment variables.} - -%global golicenses LICENSE -%global godocs README.md - -Name: golang-%{goname} -Release: 1%?dist -Summary: Provide default values when fetching environment variables - -License: BSD-3-Clause -URL: %{gourl} -Source: %{gosource} - -%description %{common_description} - -%gopkg - -%prep -%goprep - -%generate_buildrequires -%go_generate_buildrequires - -%build - -%install -%gopkginstall - -%if %{with check} -%check -%gocheck -%endif - -%gopkgfiles - -%changelog -%autochangelog diff --git a/anda/langs/go/xyproto-env/update.rhai b/anda/langs/go/xyproto-env/update.rhai deleted file mode 100644 index fd71963ab8..0000000000 --- a/anda/langs/go/xyproto-env/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("xyproto/env")); diff --git a/anda/langs/go/xyproto-env/v1/anda.hcl b/anda/langs/go/xyproto-env/v1/anda.hcl deleted file mode 100644 index ea4f5641c0..0000000000 --- a/anda/langs/go/xyproto-env/v1/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "golang-github-xyproto-env.spec" - } -} diff --git a/anda/langs/go/xyproto-env/v1/golang-github-xyproto-env.spec b/anda/langs/go/xyproto-env/v1/golang-github-xyproto-env.spec deleted file mode 100644 index 3728807777..0000000000 --- a/anda/langs/go/xyproto-env/v1/golang-github-xyproto-env.spec +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by go2rpm 1.8.2 -%bcond_without check -%global debug_package %{nil} - -# https://github.com/xyproto/env -%global goipath github.com/xyproto/env -Version: 1.9.1 - -%gometa -f - -%global common_description %{expand: -Provide default values when fetching environment variables.} - -%global golicenses LICENSE -%global godocs README.md - -Name: golang-%{goname} -Release: 1%{?dist} -Summary: Provide default values when fetching environment variables - -License: BSD-3-Clause -URL: %{gourl} -Source: %{gosource} - -%description %{common_description} - -%gopkg - -%prep -%goprep - -%generate_buildrequires -%go_generate_buildrequires - -%build - -%install -%gopkginstall - -%if %{with check} -%check -%gocheck -%endif - -%gopkgfiles - -%changelog -%autochangelog diff --git a/anda/langs/go/xyproto-textoutput/anda.hcl b/anda/langs/go/xyproto-textoutput/anda.hcl deleted file mode 100644 index 7b35648f8e..0000000000 --- a/anda/langs/go/xyproto-textoutput/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "golang-github-xyproto-textoutput.spec" - } -} diff --git a/anda/langs/go/xyproto-textoutput/golang-github-xyproto-textoutput.spec b/anda/langs/go/xyproto-textoutput/golang-github-xyproto-textoutput.spec deleted file mode 100644 index 4cf8303353..0000000000 --- a/anda/langs/go/xyproto-textoutput/golang-github-xyproto-textoutput.spec +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by go2rpm 1.8.2 -%bcond_without check - -# https://github.com/xyproto/textoutput -%global goipath github.com/xyproto/textoutput -Version: 1.17.1 - -%gometa -f - -%global common_description %{expand: -:a: Output text, with and without colors.} - -%global golicenses LICENSE -%global godocs README.md - -Name: golang-%{goname} -Release: 1%?dist -Summary: :a: Output text, with and without colors - -License: BSD-3-Clause -URL: %{gourl} -Source: %{gosource} - -%description %{common_description} - -%gopkg - -%prep -%goprep - -%generate_buildrequires -%go_generate_buildrequires - -%build -for cmd in cmd/* ; do - %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd -done - -%install -%gopkginstall -install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ - -%if %{with check} -%check -%gocheck -%endif - -%files -%license LICENSE -%doc README.md -%{_bindir}/* - -%gopkgfiles - -%changelog -%autochangelog diff --git a/anda/langs/go/xyproto-textoutput/update.rhai b/anda/langs/go/xyproto-textoutput/update.rhai deleted file mode 100644 index 7a7f25cbb7..0000000000 --- a/anda/langs/go/xyproto-textoutput/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("xyproto/textoutput")); diff --git a/anda/langs/go/xyproto-vt100/anda.hcl b/anda/langs/go/xyproto-vt100/anda.hcl deleted file mode 100644 index 23d0a4a7b3..0000000000 --- a/anda/langs/go/xyproto-vt100/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "golang-github-xyproto-vt100.spec" - } -} diff --git a/anda/langs/go/xyproto-vt100/golang-github-xyproto-vt100.spec b/anda/langs/go/xyproto-vt100/golang-github-xyproto-vt100.spec deleted file mode 100644 index 2f1508fcf8..0000000000 --- a/anda/langs/go/xyproto-vt100/golang-github-xyproto-vt100.spec +++ /dev/null @@ -1,57 +0,0 @@ -# Generated by go2rpm 1.8.2 -%bcond_without check - -# https://github.com/xyproto/vt100 -%global goipath github.com/xyproto/vt100 -Version: 1.16.11 - -%gometa -f - -%global common_description %{expand: -:computer: VT100 Terminal Package.} - -%global golicenses LICENSE -%global godocs README.md cmd/widget/README.md - -Name: golang-%{goname} -Release: 1%?dist -Summary: VT100 Terminal Package - -License: BSD-3-Clause -URL: %{gourl} -Source: %{gosource} - -%description %{common_description} - -%gopkg - -%prep -%goprep - -%generate_buildrequires -%go_generate_buildrequires - -%build -for cmd in cmd/* ; do - %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd -done - -%install -%gopkginstall -install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ - -%if %{with check} -%check -%gocheck -%endif - -%files -%license LICENSE -%doc TODO.md README.md cmd/widget/README.md -%{_bindir}/* - -%gopkgfiles - -%changelog -%autochangelog diff --git a/anda/langs/go/xyproto-vt100/update.rhai b/anda/langs/go/xyproto-vt100/update.rhai deleted file mode 100644 index 6a78d4692e..0000000000 --- a/anda/langs/go/xyproto-vt100/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh_tag("xyproto/vt100")); diff --git a/anda/lib/astal/astal-gtk/astal-gtk.spec b/anda/lib/astal/astal-gtk/astal-gtk.spec index 3e18d66746..e4f5cf3fe2 100644 --- a/anda/lib/astal/astal-gtk/astal-gtk.spec +++ b/anda/lib/astal/astal-gtk/astal-gtk.spec @@ -1,14 +1,12 @@ -%global commit 3620d51bc6c23ada1bd4b7c9cf1c458c138e68df -%global shortcommit %{sub %commit 1 7} -%global commit_date 20250222 +%global commit dfd1f23 +%global commit_date 20250301 Name: astal -Version: 0^%commit_date.%shortcommit +Version: 0^%commit_date.%commit Release: 1%?dist Summary: Building blocks for creating custom desktop shells License: LGPL-2.1-only URL: https://aylur.github.io/astal -Source0: https://github.com/Aylur/astal/archive/%commit.tar.gz Packager: madonuko BuildRequires: meson gobject-introspection vala valadoc cmake BuildRequires: pkgconfig(astal-io-0.1) @@ -59,7 +57,7 @@ This package contains development files and documentation for astal-gtk4. %prep -%autosetup -n astal-%commit +%git_clone https://github.com/Aylur/astal %build my_build() { diff --git a/anda/lib/astal/astal/anda.hcl b/anda/lib/astal/astal/anda.hcl new file mode 100644 index 0000000000..05e222653c --- /dev/null +++ b/anda/lib/astal/astal/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "astal.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/lib/astal/astal/astal.spec b/anda/lib/astal/astal/astal.spec new file mode 100644 index 0000000000..5618e1df46 --- /dev/null +++ b/anda/lib/astal/astal/astal.spec @@ -0,0 +1,62 @@ + +%global commit dfd1f23c7562694e571d44c45aa74fcea9b1ba01 +%global shortcommit %{sub %commit 1 7} +%global commit_date 20250301 + +Name: astal +Version: 0^%commit_date.%shortcommit +Release: 1%?dist +Summary: Building blocks for creating custom desktop shells +License: LGPL-2.1-only +URL: https://aylur.github.io/astal +Source0: https://github.com/Aylur/astal/archive/%commit.tar.gz +Provides: astal +Requires: %{name}-io-libs%{?_isa} = %{version}-%{release} +BuildRequires: meson gobject-introspection vala valadoc + +%description +The Linux Suite and Framework to Craft Desktop Shells and beautiful functional Wayland Widgets with GTK! + +%package io-libs +Summary: Shared libraries of libastal-io + +%description io-libs +%summary. (IO) + +This package contains shared libraries for astal-io. + +%package io-devel +Summary: Development libraries of libastal-io +Requires: %{name}-io-libs%{?_isa} = %{version}-%{release} + +%description io-devel +%summary. (IO) +This package contains development files and documentation for astal-io. + +%prep +%autosetup -n astal-%commit + +%build +cd lib/astal/io +%meson +%meson_build + +%install +cd lib/astal/io +%meson_install + +%files +%_bindir/astal + +%files io-libs +%license LICENSE +%_libdir/libastal-io.so.0 +%_libdir/libastal-io.so.0.1.0 + +%files io-devel +%_datadir/gir-1.0/AstalIO-0.1.gir +%_datadir/vala/vapi/astal-io-0.1.vapi +%_includedir/astal-io.h +%_libdir/girepository-1.0/AstalIO-0.1.typelib +%_libdir/libastal-io.so +%_libdir/pkgconfig/astal-io-0.1.pc diff --git a/anda/lib/astal/astal/update.rhai b/anda/lib/astal/astal/update.rhai new file mode 100644 index 0000000000..c68d29af82 --- /dev/null +++ b/anda/lib/astal/astal/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("Aylur/astal")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +} diff --git a/anda/tools/buildsys/anda/rust-anda.spec b/anda/tools/buildsys/anda/rust-anda.spec index a0fca92c19..8db2cc50b1 100644 --- a/anda/tools/buildsys/anda/rust-anda.spec +++ b/anda/tools/buildsys/anda/rust-anda.spec @@ -41,6 +41,7 @@ Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} +%license LICENSE.dependencies LICENSE.md %{_bindir}/anda %{_mandir}/man1/anda*.1* %config %{_sysconfdir}/bash_completion.d/anda.bash @@ -53,11 +54,12 @@ Summary: %{summary} %build %cargo_build +%{cargo_license_online} > LICENSE.dependencies cargo run --release -p xtask -- manpage cargo run --release -p xtask -- completion %install -%cargo_install +install -Dpm755 target/rpm/anda -t %buildroot%_bindir/ mkdir -p %{buildroot}%{_mandir}/man1/ diff --git a/anda/tools/cuda-nvcc/anda.hcl b/anda/tools/cuda-nvcc/anda.hcl new file mode 100644 index 0000000000..e82073db16 --- /dev/null +++ b/anda/tools/cuda-nvcc/anda.hcl @@ -0,0 +1,5 @@ +project "pkg" { + rpm { + spec = "cuda-nvcc.spec" + } +} diff --git a/anda/tools/cuda-nvcc/cuda-nvcc.spec b/anda/tools/cuda-nvcc/cuda-nvcc.spec new file mode 100644 index 0000000000..e85dab437c --- /dev/null +++ b/anda/tools/cuda-nvcc/cuda-nvcc.spec @@ -0,0 +1,189 @@ +%global real_name cuda_nvcc + +%global debug_package %{nil} +%global __strip /bin/true +%global _missing_build_ids_terminate_build 0 +%global _build_id_links none +%global major_package_version 12-6 + +Name: %(echo %real_name | tr '_' '-') +Epoch: 1 +Version: 12.6.85 +Release: 1%{?dist} +Summary: CUDA Compiler (NVCC) +License: CUDA Toolkit +URL: https://developer.nvidia.com/cuda-toolkit +ExclusiveArch: x86_64 aarch64 + +Source0: https://developer.download.nvidia.com/compute/cuda/redist/%{real_name}/linux-x86_64/%{real_name}-linux-x86_64-%{version}-archive.tar.xz +Source1: https://developer.download.nvidia.com/compute/cuda/redist/%{real_name}/linux-sbsa/%{real_name}-linux-sbsa-%{version}-archive.tar.xz +Source3: nvcc.profile + +Requires(post): ldconfig +Conflicts: %{name}-%{major_package_version} < %{?epoch:%{epoch}:}%{version}-%{release} + +# CUDA 12.4 does not support GCC 14+: +%if 0%{?fedora} >= 40 +Requires: cuda-gcc +%endif + +%description +The compilation trajectory involves several splitting, compilation, +preprocessing, and merging steps for each CUDA source file. It is the purpose of +nvcc, the CUDA compiler driver, to hide the intricate details of CUDA +compilation from developers. It accepts a range of conventional compiler +options, such as for defining macros and include/library paths, and for steering +the compilation process. All non-CUDA compilation steps are forwarded to a C++ +host compiler that is supported by nvcc, and nvcc translates its options to +appropriate host compiler command line options. + +NVVM IR is a compiler IR (intermediate representation) based on the LLVM IR. +The NVVM IR is designed to represent GPU compute kernels (for example, CUDA +kernels). High-level language front-ends, like the CUDA C compiler front-end, +can generate NVVM IR. The NVVM compiler (which is based on LLVM) generates PTX +code from NVVM IR. + +%prep +%ifarch x86_64 +%setup -q -n %{real_name}-linux-x86_64-%{version}-archive +%endif + +%ifarch aarch64 +%setup -q -T -b 1 -n %{real_name}-linux-sbsa-%{version}-archive +%endif + +%install +mkdir -p %{buildroot}%{_bindir} + +mkdir -p %{buildroot}%{_includedir} +mkdir -p %{buildroot}%{_libdir} +mkdir -p %{buildroot}%{_datadir}/nvcc/ + +cp -fr bin/* nvvm/bin/* %{buildroot}%{_bindir}/ +cp -fr include/* nvvm/include/* %{buildroot}%{_includedir}/ +cp -fr lib/* nvvm/lib64/* %{buildroot}%{_libdir}/ +cp -fr nvvm/libdevice/* %{buildroot}%{_datadir}/nvcc/ + +cp -f %{SOURCE3} %{buildroot}%{_bindir}/ + +# Set proper variables +sed -i \ + -e 's|LIBDIR|%{_libdir}|g' \ + -e 's|INCLUDE_DIR|%{_includedir}/cuda|g' \ + %{buildroot}/%{_bindir}/nvcc.profile + +%{?ldconfig_scriptlets} + +%files +%license LICENSE +%{_bindir}/bin2c +%{_bindir}/cicc +%dir %{_bindir}/crt/ +%{_bindir}/crt/link.stub +%{_bindir}/crt/prelink.stub +%{_bindir}/cudafe++ +%{_bindir}/fatbinary +%{_bindir}/nvcc +%{_bindir}/__nvcc_device_query +%{_bindir}/nvcc.profile +%{_bindir}/nvlink +%{_bindir}/ptxas +%dir %{_datadir}/nvcc/ +%{_datadir}/nvcc/libdevice.10.bc +%dir %{_includedir}/crt/ +%{_includedir}/crt/common_functions.h +%{_includedir}/crt/cudacc_ext.h +%{_includedir}/crt/device_double_functions.h +%{_includedir}/crt/device_double_functions.hpp +%{_includedir}/crt/device_functions.h +%{_includedir}/crt/device_functions.hpp +%{_includedir}/crt/func_macro.h +%{_includedir}/crt/host_config.h +%{_includedir}/crt/host_defines.h +%{_includedir}/crt/host_runtime.h +%{_includedir}/crt/math_functions.h +%{_includedir}/crt/math_functions.hpp +%{_includedir}/crt/mma.h +%{_includedir}/crt/mma.hpp +%{_includedir}/crt/nvfunctional +%{_includedir}/crt/sm_70_rt.h +%{_includedir}/crt/sm_70_rt.hpp +%{_includedir}/crt/sm_80_rt.h +%{_includedir}/crt/sm_80_rt.hpp +%{_includedir}/crt/sm_90_rt.h +%{_includedir}/crt/sm_90_rt.hpp +%{_includedir}/crt/storage_class.h +%{_includedir}/fatbinary_section.h +%{_includedir}/nvPTXCompiler.h +%{_includedir}/nvvm.h +%{_libdir}/libnvptxcompiler_static.a +%{_libdir}/libnvvm.so +%{_libdir}/libnvvm.so.4 +%{_libdir}/libnvvm.so.4.0.0 + +%changelog +* Fri Dec 13 2024 Simone Caronni - 1:12.6.85-1 +- Update to 12.6.85. +- Require new cuda-gcc profile package. + +* Thu Sep 19 2024 Simone Caronni - 1:12.6.68-1 +- Update to 12.6.68. + +* Thu Jul 11 2024 Simone Caronni - 1:12.5.82-1 +- Update to 12.5.82. + +* Thu Jul 11 2024 Simone Caronni - 1:12.4.99-1 +- Update to 12.4.99. + +* Fri Mar 22 2024 Simone Caronni - 1:12.4.99-2 +- Correct GCC requirements. + +* Tue Mar 12 2024 Simone Caronni - 1:12.4.99-1 +- Update to 12.4.99. +- Drop ppc64le. + +* Sat Jan 06 2024 Simone Caronni - 1:12.3.107-1 +- Update to 12.3.107. + +* Tue Nov 28 2023 Simone Caronni - 1:12.3.103-1 +- Update to 12.3.103. + +* Thu Sep 28 2023 Simone Caronni - 1:12.2.140-1 +- Update to 12.2.140. + +* Tue Jul 11 2023 Simone Caronni - 1:12.2.91-1 +- Update to 12.2.91. + +* Thu Jun 08 2023 Simone Caronni - 1:12.1.105-1 +- Update to 12.1.105. + +* Tue Apr 11 2023 Simone Caronni - 1:12.1.66-1 +- Update to 12.1.66. + +* Mon Mar 13 2023 Simone Caronni - 1:12.0.140-2 +- Add requirement on cuda-gcc for Fedora 38+. + +* Sat Feb 25 2023 Simone Caronni - 1:12.0.140-1 +- Update to 12.0.140. + +* Tue Dec 13 2022 Simone Caronni - 1:12.0.76-1 +- Update to 12.0.76. + +* Fri Nov 11 2022 Simone Caronni - 1:11.8.89-1 +- Update to 11.8.89. +- Use aarch64 archive in place of sbsa. + +* Sun Sep 04 2022 Simone Caronni - 1:11.7.99-1 +- Update to 11.7.99. + +* Thu Jun 23 2022 Simone Caronni - 1:11.7.64-1 +- Update to 11.7.64. + +* Thu Mar 31 2022 Simone Caronni - 1:11.6.124-1 +- Update to 11.6.124 (CUDA 11.6.2). + +* Tue Mar 08 2022 Simone Caronni - 1:11.6.112-1 +- Update to 11.6.112 (CUDA 11.6.1). + +* Fri Jan 28 2022 Simone Caronni - 1:11.6.55-1 +- First build with the new tarball components. diff --git a/anda/tools/cuda-nvcc/nvcc.profile b/anda/tools/cuda-nvcc/nvcc.profile new file mode 100644 index 0000000000..056b753533 --- /dev/null +++ b/anda/tools/cuda-nvcc/nvcc.profile @@ -0,0 +1,6 @@ +NVVMIR_LIBRARY_DIR = /usr/share/cuda +PATH += /usr/libexec/cuda/open64/bin: +INCLUDES += "-IINCLUDE_DIR" +LIBRARIES =+ "-LLIBDIR" +CUDAFE_FLAGS += +PTXAS_FLAGS += diff --git a/anda/tools/cuda-nvcc/update.rhai b/anda/tools/cuda-nvcc/update.rhai new file mode 100644 index 0000000000..159f652d22 --- /dev/null +++ b/anda/tools/cuda-nvcc/update.rhai @@ -0,0 +1,3 @@ +import "andax/nvidia.rhai" as nvidia; + +rpm.version(nvidia::nvidia_component_version("cuda_nvcc")); diff --git a/anda/tools/rpi-utils/rpi-utils.spec b/anda/tools/rpi-utils/rpi-utils.spec index 6148f0cc6d..5042fe4f81 100644 --- a/anda/tools/rpi-utils/rpi-utils.spec +++ b/anda/tools/rpi-utils/rpi-utils.spec @@ -1,5 +1,5 @@ -%global commit 6c3ace77f2299f9a2e442c2eb10d67ae73c949ba -%global commit_date 20250213 +%global commit 61e4becfd5338e3eb2bb8c54cdd0b9b96a8afbf8 +%global commit_date 20250301 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %define _unpackaged_files_terminate_build 0