## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # SPDX-FileCopyrightText: 2026 Daniel Hast # # SPDX-License-Identifier: GPL-3.0-only %bcond check 1 %global with_selinux 1 %global modulename syd %global selinuxtype targeted %global syd_features_enabled oci,utils %global __brp_mangle_shebangs %{nil} Name: syd Version: 3.55.1 Release: %autorelease Summary: Rock-solid application kernel License: %{shrink: ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (CC0-1.0) AND (GPL-3.0-only) AND (GPL-3.0-or-later) AND (ISC) AND (MIT) AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (MPL-2.0) AND (MPL-2.0 OR LGPL-3.0-or-later) AND (Unlicense OR MIT) AND (WTFPL) AND (Zlib) AND (Zlib OR Apache-2.0 OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://gitlab.exherbo.org/sydbox/sydbox Source: syd-%{version}.tar.xz Source: syd-%{version}-vendor.tar.xz Source: syd-selinux-%{version}.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: check-devel >= 0.15.0 BuildRequires: libseccomp-devel BuildRequires: scdoc BuildRequires: yajl-devel >= 2.1.0 %if 0%{?with_selinux} BuildRequires: container-selinux BuildRequires: make BuildRequires: selinux-policy-devel Recommends: (%{name}-selinux if selinux-policy-%{selinuxtype}) %endif %global _description Syd is a rock-solid application kernel to sandbox applications on Linux. %description %{_description} %prep %autosetup -p1 -a1 %cargo_prep -v vendor %setup -q -T -D -a2 %build %cargo_build -f %{syd_features_enabled} -- --workspace %{cargo_license_summary -f %{syd_features_enabled}} %{cargo_license -f %{syd_features_enabled}} > LICENSE.dependencies %{cargo_vendor_manifest} for file in man/*.scd; do scdoc < "$file" > "${file%%.scd}" done %if 0%{?with_selinux} make -f %{_datadir}/selinux/devel/Makefile %{modulename}.pp bzip2 -9 %{modulename}.pp %endif %install %global syd_programs %{shrink: syd syd-aes syd-asm syd-aux syd-bit syd-cap syd-cpu syd-dns syd-elf syd-env syd-exec syd-hex syd-info syd-key syd-lock syd-mdwe syd-oci syd-ofd syd-pause syd-pds syd-sec syd-sh syd-size syd-test syd-test-do syd-tsc syd-uts syd-x } %global syd_utils %{shrink: syd-cat syd-emacs syd-fd syd-fork syd-fs syd-ldd syd-ls syd-mem syd-net syd-path syd-poc syd-pty syd-read syd-rnd syd-run syd-stat syd-sum syd-sys syd-tck syd-tor syd-tty syd-utc } for syd_program in %{syd_programs}; do echo "%%{_bindir}/${syd_program}" done >> syd-rpm-files.txt for syd_program in %{syd_utils}; do echo "%%{_bindir}/${syd_program}" done >> syd-utils-rpm-files.txt for manpage in man/syd*.[1-8]; do echo "%%{_mandir}/man${manpage##*.}/${manpage##*/}*" done >> syd-rpm-files.txt install -Dp -m 0755 -t %{buildroot}%{_bindir} target/rpm/syd* target/rpm/pandora rm -f %{buildroot}%{_bindir}/syd*.d install -Dp -m 0644 -t %{buildroot}%{_mandir}/man1 man/syd*.1 install -Dp -m 0644 -t %{buildroot}%{_mandir}/man2 man/syd.2 install -Dp -m 0644 -t %{buildroot}%{_mandir}/man5 man/syd.5 install -Dp -m 0644 -t %{buildroot}%{_mandir}/man7 man/syd*.7 install -Dp -m 0644 -t %{buildroot}%{_datadir}/vim/vimfiles/ftdetect vim/ftdetect/syd.vim install -Dp -m 0644 -t %{buildroot}%{_datadir}/vim/vimfiles/syntax vim/syntax/syd-3.vim install -Dp -t %{buildroot}%{_libdir} target/rpm/libsyd.so target/rpm/libsyd.a install -Dp -m 0644 -t %{buildroot}%{_includedir} lib/syd.h install -Dp -m 0755 -t %{buildroot}%{perl_vendorlib} lib/src/syd.pm install -Dp -m 0755 -t %{buildroot}%{python3_sitelib} lib/src/syd.py install -Dp -m 0755 -t %{buildroot}%{ruby_vendorlibdir} lib/src/syd.rb %if 0%{?with_selinux} install -Dp -m 0644 -t %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype} %{modulename}.pp.bz2 install -Dp -m 0644 -t %{buildroot}%{_datadir}/selinux/devel/include/distributed selinux/%{modulename}.if %endif %if %{with check} %check %cargo_test -f %{syd_features_enabled} -- --workspace %endif %files -f syd-rpm-files.txt %license COPYING %license LICENSE.dependencies %license cargo-vendor.txt %doc ChangeLog.md %doc README.md %{_datadir}/vim/vimfiles/ftdetect/syd.vim %{_datadir}/vim/vimfiles/syntax/syd-3.vim %package utils Summary: Additional command-line utilities for syd Requires: %{name} = %{version}-%{release} %description utils Addition command-line utilities for syd. %{_description} %files utils -f syd-utils-rpm-files.txt %package -n libsyd Summary: Rust-based C library for syd interaction via /dev/syd License: LGPL-3.0-only Requires: %{name} = %{version}-%{release} Requires: check-devel >= 0.15.0 Requires: yajl-devel >= 2.1.0 %description -n libsyd Rust-based C library for syd interaction via /dev/syd. %{_description} %files -n libsyd %attr(0755, -, -) %{_libdir}/libsyd.so %package -n libsyd-devel Summary: Development files for libsyd License: LGPL-3.0-only BuildRequires: perl-generators BuildRequires: python3-devel Requires: libsyd = %{version}-%{release} %description -n libsyd-devel This package contains the C header files for libsyd. %{_description} %files -n libsyd-devel %attr(0644, -, -) %{_includedir}/syd.h %attr(0644, -, -) %{_libdir}/libsyd.a %package -n perl-libsyd Summary: Perl bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd License: LGPL-3.0-only Requires: libsyd = %{version}-%{release} Requires: perl Requires: perl-FFI-Platypus Requires: perl-Test-Simple %description -n perl-libsyd Perl bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd. %{_description} %files -n perl-libsyd %attr(0755, -, -) %{perl_vendorlib}/syd.pm %package -n python3-libsyd Summary: Python bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd License: LGPL-3.0-only BuildRequires: python3-devel Requires: libsyd = %{version}-%{release} Requires: python3 %description -n python3-libsyd Python bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd. %{_description} %files -n python3-libsyd %pycached %{python3_sitelib}/syd.py %package -n ruby-libsyd Summary: Ruby bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd License: LGPL-3.0-only BuildRequires: ruby-devel Requires: libsyd = %{version}-%{release} Requires: ruby(release) Requires: rubygem-ffi %description -n ruby-libsyd Ruby bindings for libsyd, a Rust-based C library for syd interaction via /dev/syd. %{_description} %files -n ruby-libsyd %attr(0755, -, -) %{ruby_vendorlibdir}/syd.rb %package tui Summary: Syd's Terminal User Interface Requires: %{name} %description tui Syd's Terminal User Interface. %{_description} %files tui %{_bindir}/syd-tui %package pandora Summary: Syd's log inspector & profile writer Requires: %{name} %description pandora pandora: Syd's log inspector & profile writer. %{_description} %files pandora %{_bindir}/pandora %if 0%{?with_selinux} %package selinux Summary: SELinux policies for syd URL: https://codeberg.org/HastD/syd-rpm License: GPL-3.0-only Requires: %{name} Requires: selinux-policy-%{selinuxtype} Requires(post): selinux-policy-%{selinuxtype} BuildArch: noarch %{?selinux_requires_min} %description selinux SELinux policy modules for syd. %{_description} %pre selinux %selinux_relabel_pre -s %{selinuxtype} %post selinux %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %postun selinux if [ "$1" -eq 0 ]; then %selinux_modules_uninstall -s %{selinuxtype} %{modulename} %selinux_relabel_post -s %{selinuxtype} fi %posttrans selinux %selinux_relabel_post -s %{selinuxtype} %files selinux %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* %{_datadir}/selinux/devel/include/distributed/%{modulename}.if %ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} # if with_selinux %endif %changelog ## START: Generated by rpmautospec * Tue Jun 09 2026 Unknown User - 3.55.1-2 - Uncommitted changes * Tue Jun 09 2026 Daniel Hast - 3.55.1-1 - chore: update to v3.55.1 * Tue Jun 09 2026 Daniel Hast - 3.55.0-1 - chore: update to v3.55.0; use rpmautospec * Sat May 30 2026 Daniel Hast - 3.54.1-2 - feat: split utils into syd-utils subpackage * Sat May 30 2026 Daniel Hast - 3.54.1-1 - chore: update to v3.54.1 * Wed May 13 2026 Daniel Hast - 3.53.0-2 - feat: libsyd Ruby bindings, Perl + Python binding deps * Mon May 11 2026 Daniel Hast - 3.53.0-1 - chore: update to v3.53.0 * Sat May 02 2026 Daniel Hast - 3.52.0-4 - fix: add missing BuildRequires for libsyd * Sat May 02 2026 Daniel Hast - 3.52.0-3 - fix: add missing libsyd dependencies * Sat May 02 2026 Daniel Hast - 3.52.0-2 - fix: reset release number to 1 * Sat May 02 2026 Daniel Hast - 3.52.0-1 - chore: update to v3.52.0 * Wed Apr 22 2026 Daniel Hast - 3.51.2-9 - fix: put install_t and install_exec_t in optional block * Wed Apr 22 2026 Daniel Hast - 3.51.2-8 - chore: move to Codeberg * Wed Apr 22 2026 Daniel Hast - 3.51.2-7 - fix: move ptrace exemption to CIL policy w/ restricted relabeling * Fri Apr 03 2026 Daniel Hast - 3.51.2-6 - fix(selinux): allow system_r to run syd * Fri Apr 03 2026 Daniel Hast - 3.51.2-5 - fix(selinux): allow initrc_t to run syd * Fri Apr 03 2026 Daniel Hast - 3.51.2-4 - fix(selinux): allow unconfined_service_t to run syd * Fri Apr 03 2026 Daniel Hast - 3.51.2-3 - fix(selinux): allow init_t to run syd * Sun Mar 29 2026 Daniel Hast - 3.51.2-2 - feat: package man pages and vim config files * Sun Mar 29 2026 Daniel Hast - 3.51.2-1 - feat: package libsyd; update to v3.51.2 * Mon Mar 23 2026 Daniel Hast - 3.51.0-3 - fix: add syd-sum * Mon Mar 23 2026 Daniel Hast - 3.51.0-2 - fix: remove syd-sha * Sun Mar 22 2026 Daniel Hast - 3.51.0-1 - feat: update to v3.51.0 * Tue Mar 03 2026 Daniel Hast - 3.50.0-4 - chore: remove update.sh * Mon Mar 02 2026 Daniel Hast - 3.50.0-3 - chore: run tests by default * Mon Mar 02 2026 Daniel Hast - 3.50.0-2 - chore: make syd-selinux recommended instead of required * Sun Mar 01 2026 Daniel Hast - 3.50.0-1 - feat!: v3.50.0; package syd-tui, pandora, SELinux policy ## END: Generated by rpmautospec