%global debug_package %{nil} URL: https://github.com/MCC45TR/uke-linux-hardware-support Source0: uke-accountsservice-26.27.3.tar.xz ExclusiveArch: aarch64 BuildRequires: gettext-devel BuildRequires: git-core BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc BuildRequires: libxcrypt-devel BuildRequires: meson BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(json-c) BuildRequires: polkit-devel BuildRequires: python3-dbusmock BuildRequires: systemd BuildRequires: systemd-devel BuildRequires: vala BuildRequires: gcc-c++ BuildRequires: gcc-c++ = 16.2.1-2.fc46.1 BuildRequires: gobject-introspection-devel = 1.86.0-12.fc46 BuildRequires: meson = 1.12.1-2.fc46 BuildRequires: python3 = 3.15.2-1.fc46 BuildRequires: python3-dbusmock = 0.38.0-3.fc45 Name: uke-accountsservice Version: 26.27.3 Release: 13.fc46 License: GPL-3.0-or-later Summary: D-Bus interfaces for querying and manipulating user account information Provides: senemos-native-runtime(accountsservice) = 26.27.3-13.fc46 Requires: polkit Requires: shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Provides: accountsservice = 26.27.3-13.fc46 Provides: accountsservice%{?_isa} = 26.27.3-13.fc46 Obsoletes: accountsservice < 26.27.3-13.fc46 Conflicts: accountsservice Requires(pre): rpm systemd coreutils sed Requires(posttrans): systemd coreutils sed %description -n uke-accountsservice The accountsservice project provides a set of D-Bus interfaces for querying and manipulating user account information and an implementation of these interfaces, based on the useradd, usermod and userdel commands. %package -n uke-accountsservice-libs Version: 26.27.3 Release: 13.fc46 License: GPL-3.0-or-later Summary: Client-side library to talk to uke-accountsservice Requires: uke-accountsservice(aarch-64) = 26.27.3-13.fc46 Provides: accountsservice-libs = 26.27.3-13.fc46 Provides: accountsservice-libs%{?_isa} = 26.27.3-13.fc46 Obsoletes: accountsservice-libs < 26.27.3-13.fc46 Conflicts: accountsservice-libs %description -n uke-accountsservice-libs The accountsservice-libs package contains a library that can be used by applications that want to interact with the accountsservice daemon. %package -n uke-accountsservice-devel Version: 26.27.3 Release: 13.fc46 License: GPL-3.0-or-later Summary: Development files for uke-accountsservice-libs Requires: uke-accountsservice-libs(aarch-64) = 26.27.3-13.fc46 Provides: accountsservice-devel = 26.27.3-13.fc46 Provides: accountsservice-devel%{?_isa} = 26.27.3-13.fc46 Obsoletes: accountsservice-devel < 26.27.3-13.fc46 Conflicts: accountsservice-devel %description -n uke-accountsservice-devel The accountsservice-devel package contains headers and other files needed to build applications that use accountsservice-libs. %prep %setup -q ( mkdir -p "%{_builddir}/uke-accountsservice-26.27.3/work/accountsservice" cd '%{_builddir}/uke-accountsservice-26.27.3/work/accountsservice' rm -rf 'accountsservice-26.27.3' /usr/bin/rpmuncompress -x '%{_builddir}/uke-accountsservice-26.27.3/inputs/accountsservice/accountsservice-26.27.3.tar.bz2' STATUS=$? if [ $STATUS -ne 0 ]; then exit $STATUS fi cd 'accountsservice-26.27.3' /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . /usr/bin/git init -q /usr/bin/git config user.name "rpm-build" /usr/bin/git config user.email "" /usr/bin/git config gc.auto 0 /usr/bin/git add --force . GIT_COMMITTER_DATE=@${SOURCE_DATE_EPOCH:-${RPM_BUILD_TIME:?}} GIT_AUTHOR_DATE=@${SOURCE_DATE_EPOCH:-${RPM_BUILD_TIME:?}}\ /usr/bin/git commit -q --no-gpg-sign --allow-empty -a\ --author "rpm-build " -m "accountsservice-26.27.3 base" /usr/bin/git checkout --track -b rpm-build /usr/bin/rpmuncompress %{_builddir}/uke-accountsservice-26.27.3/inputs/accountsservice/0001-ignore-absent-optional-tcb-directory.patch | /usr/bin/git apply --index --reject - GIT_COMMITTER_DATE=@${SOURCE_DATE_EPOCH:-${RPM_BUILD_TIME:?}} GIT_AUTHOR_DATE=@${SOURCE_DATE_EPOCH:-${RPM_BUILD_TIME:?}}\ /usr/bin/git commit -q --no-gpg-sign -m 0001-ignore-absent-optional-tcb-directory.patch --author "rpm-build " # RPM patch history is not upstream release history. rm -rf -- .git test "$(GIT_CEILING_DIRECTORIES="$(dirname "$PWD")" ./generate-version.sh)" = "26.27.3" ) %build ( cd "%{_builddir}/uke-accountsservice-26.27.3/work/accountsservice/accountsservice-26.27.3" export GIT_CEILING_DIRECTORIES="$(dirname "$PWD")" CFLAGS="${CFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FFLAGS ; FCFLAGS="${FCFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FCFLAGS ; VALAFLAGS="${VALAFLAGS:--g}" ; export VALAFLAGS ; RUSTFLAGS="${RUSTFLAGS:--Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn}" ; export RUSTFLAGS ; LDFLAGS="${LDFLAGS:--Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes }" ; export LDFLAGS ; LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-/usr/lib64:}" ; export LT_SYS_LIBRARY_PATH ; CC="${CC:-gcc}" ; export CC ; CXX="${CXX:-g++}" ; export CXX /usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/bin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . redhat-linux-build \ -Dgtk_doc=true \ -Dadmin_group=wheel /usr/bin/meson compile -C redhat-linux-build -j${RPM_BUILD_NCPUS} --verbose ) %install ( cd "%{_builddir}/uke-accountsservice-26.27.3/work/accountsservice/accountsservice-26.27.3" DESTDIR=%{buildroot} /usr/bin/meson install -C redhat-linux-build --no-rebuild mkdir -p $RPM_BUILD_ROOT/usr/share/accountsservice/interfaces/ /usr/lib/rpm/find-lang.sh %{buildroot} accounts-service ) %check ( cd "%{_builddir}/uke-accountsservice-26.27.3/work/accountsservice/accountsservice-26.27.3" grep -Fx '#define VERSION "26.27.3"' redhat-linux-build/config.h bash %{_builddir}/uke-accountsservice-26.27.3/inputs/accountsservice/accountsservice-tcb.sh "$PWD" --patched # Senemos Uke: keep Python outside every target payload. : if find %{buildroot} -type f \( -name "*.py" -o -name "*.pyc" -o -name "*.pyo" -o -name "python[0-9]*" \) -print | grep .; then exit 1; fi while IFS= read -r -d "" file; do if head -c 256 "$file" | LC_ALL=C grep -aE "^#!.*(python|pypy)"; then exit 1; fi; done < <(find %{buildroot} -type f -print0) ) %post -n uke-accountsservice if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Initial installation /usr/lib/systemd/systemd-update-helper install-system-units accounts-daemon.service || : fi %preun -n uke-accountsservice if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Package removal, not upgrade /usr/lib/systemd/systemd-update-helper remove-system-units accounts-daemon.service || : fi %postun -n uke-accountsservice %files -n uke-accountsservice -f work/accountsservice/accountsservice-26.27.3/accounts-service.lang %license work/accountsservice/accountsservice-26.27.3/COPYING %doc work/accountsservice/accountsservice-26.27.3/README.md work/accountsservice/accountsservice-26.27.3/AUTHORS /usr/libexec/accounts-daemon %dir /usr/share/accountsservice/ %dir /usr/share/accountsservice/interfaces/ /usr/share/accountsservice/user-templates/ /usr/share/dbus-1/interfaces/org.freedesktop.Accounts.xml /usr/share/dbus-1/interfaces/org.freedesktop.Accounts.User.xml /usr/share/dbus-1/system.d/org.freedesktop.Accounts.conf /usr/share/dbus-1/system-services/org.freedesktop.Accounts.service /usr/share/polkit-1/actions/org.freedesktop.accounts.policy %dir /var/lib/AccountsService/ %dir /var/lib/AccountsService/users/ %dir /var/lib/AccountsService/icons/ /usr/lib/systemd/system/accounts-daemon.service %files -n uke-accountsservice-libs /usr/lib64/libaccountsservice.so.1{,.*} %dir /usr/lib64/girepository-1.0/ /usr/lib64/girepository-1.0/AccountsService-1.0.typelib %files -n uke-accountsservice-devel /usr/include/accountsservice-1.0 /usr/lib64/libaccountsservice.so /usr/lib64/pkgconfig/accountsservice.pc %dir /usr/share/gir-1.0/ /usr/share/gir-1.0/AccountsService-1.0.gir %dir /usr/share/gtk-doc/html/libaccountsservice /usr/share/gtk-doc/html/libaccountsservice/* %dir /usr/share/vala/ %dir /usr/share/vala/vapi/ /usr/share/vala/vapi/accountsservice.* %pre -n uke-accountsservice old=accountsservice; new=uke-accountsservice; unit=accounts-daemon.service; phase=save # POSIX shell fragment embedded only in RPM migration scriptlets. # Restore the admitted state; never enable a previously disabled hardware path. case "$phase" in save) [ -d /run/systemd/system ] || exit 0 test "$(rpm -q --qf '%%{NAME}' "$old" 2>/dev/null)" = "$old" || exit 0 state=/run/uke-rpm-migration [ ! -L "$state" ] && [ ! -L "$state/$new" ] || exit 1 install -d -m700 "$state" enabled=$(systemctl is-enabled "$unit" 2>/dev/null) || : active=$(systemctl is-active "$unit" 2>/dev/null) || : case "$enabled" in enabled|enabled-runtime|disabled|static|indirect|masked|masked-runtime) ;; *) exit 1;; esac case "$active" in active|inactive|failed|activating|deactivating) ;; *) exit 1;; esac (umask 077; printf '%%s\n%%s\n' "$enabled" "$active" >"$state/$new") ;; restore) if [ "$new" = uke-iio-sensor-proxy ]; then if /usr/bin/selinuxenabled; then /usr/bin/semodule -i /usr/share/selinux/packages/uke-ssc.cil || exit 1 else /usr/bin/semodule -n -s targeted -i /usr/share/selinux/packages/uke-ssc.cil || exit 1 fi fi state=/run/uke-rpm-migration [ -f "$state/$new" ] && [ ! -L "$state" ] && [ ! -L "$state/$new" ] || exit 0 enabled=$(sed -n '1p' "$state/$new") active=$(sed -n '2p' "$state/$new") current=$(systemctl is-enabled "$unit" 2>/dev/null) || : case "$current" in masked|masked-runtime) unlink "$state/$new"; exit 0;; esac systemctl daemon-reload || exit 1 case "$enabled" in enabled) systemctl enable "$unit" || exit 1;; enabled-runtime) systemctl enable --runtime "$unit" || exit 1;; masked|masked-runtime) unlink "$state/$new"; exit 0;; esac if [ "$active" = active ]; then systemctl start "$unit" || exit 1; fi unlink "$state/$new" ;; *) exit 1;; esac %posttrans -n uke-accountsservice old=accountsservice; new=uke-accountsservice; unit=accounts-daemon.service; phase=restore # POSIX shell fragment embedded only in RPM migration scriptlets. # Restore the admitted state; never enable a previously disabled hardware path. case "$phase" in save) [ -d /run/systemd/system ] || exit 0 test "$(rpm -q --qf '%%{NAME}' "$old" 2>/dev/null)" = "$old" || exit 0 state=/run/uke-rpm-migration [ ! -L "$state" ] && [ ! -L "$state/$new" ] || exit 1 install -d -m700 "$state" enabled=$(systemctl is-enabled "$unit" 2>/dev/null) || : active=$(systemctl is-active "$unit" 2>/dev/null) || : case "$enabled" in enabled|enabled-runtime|disabled|static|indirect|masked|masked-runtime) ;; *) exit 1;; esac case "$active" in active|inactive|failed|activating|deactivating) ;; *) exit 1;; esac (umask 077; printf '%%s\n%%s\n' "$enabled" "$active" >"$state/$new") ;; restore) if [ "$new" = uke-iio-sensor-proxy ]; then if /usr/bin/selinuxenabled; then /usr/bin/semodule -i /usr/share/selinux/packages/uke-ssc.cil || exit 1 else /usr/bin/semodule -n -s targeted -i /usr/share/selinux/packages/uke-ssc.cil || exit 1 fi fi state=/run/uke-rpm-migration [ -f "$state/$new" ] && [ ! -L "$state" ] && [ ! -L "$state/$new" ] || exit 0 enabled=$(sed -n '1p' "$state/$new") active=$(sed -n '2p' "$state/$new") current=$(systemctl is-enabled "$unit" 2>/dev/null) || : case "$current" in masked|masked-runtime) unlink "$state/$new"; exit 0;; esac systemctl daemon-reload || exit 1 case "$enabled" in enabled) systemctl enable "$unit" || exit 1;; enabled-runtime) systemctl enable --runtime "$unit" || exit 1;; masked|masked-runtime) unlink "$state/$new"; exit 0;; esac if [ "$active" = active ]; then systemctl start "$unit" || exit 1; fi unlink "$state/$new" ;; *) exit 1;; esac %changelog * Thu Oct 29 2026 Senemos Maintainers <75160848+MCC45TR@users.noreply.github.com> - 26.27.3-13.fc46 - Build this component independently from its reviewed source recipe.