## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 %global debug_package %{nil} Name: lldap Version: 0.6.2 Release: %autorelease Summary: Light LDAP implementation for authentication License: GPL-3.0-or-later URL: https://github.com/lldap/lldap Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: lldap.sysusers.conf Source2: lldap.service BuildRequires: cargo BuildRequires: gzip BuildRequires: curl BuildRequires: rust-std-static-wasm32-unknown-unknown BuildRequires: systemd-rpm-macros %description LLDAP is a lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication. It integrates with many backends, from KeyCloak to Authelia to Nextcloud and more! %prep %autosetup for file in $(cat app/static/libraries.txt); do pushd app/static; curl -LO "$file"; popd; done for file in $(cat app/static/fonts/fonts.txt); do pushd app/static/fonts; curl -LO "$file"; popd; done chmod a+r -R app/ rm app/static/libraries.txt rm app/static/fonts/fonts.txt cargo install wasm-pack cargo install wasm-bindgen-cli --version 0.2.100 cargo fetch --target "$(arch)-unknown-linux-gnu" %build cargo build -p lldap -p lldap_migration_tool -p lldap_set_password --release --target-dir %{_builddir}/%{name}-%{version}/target pushd app export PATH=/builddir/.cargo/bin/:$PATH export RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' wasm-pack build --target web --release --mode no-install gzip -9 -k -f pkg/lldap_app_bg.wasm popd %install install -m 755 -d %{buildroot}%{_bindir} install -m 750 -d %{buildroot}%{_sysusersdir} install -m 750 -d %{buildroot}%{_sysconfdir}/%{name} install -m 750 -d %{buildroot}%{_unitdir} install -m 750 -d %{buildroot}%{_sharedstatedir}/%{name} install -m 750 -d %{_builddir}/app/pkg %{buildroot}%{_datarootdir}/%{name}/app/pkg install -m 750 -d %{_builddir}/app/static %{buildroot}%{_datarootdir}/%{name}/app/static install -D -m 755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name} install -D -m 755 %{_builddir}/%{name}-%{version}/target/release/%{name}_set_password %{buildroot}%{_bindir}/%{name}_set_password install -D -m 755 %{_builddir}/%{name}-%{version}/target/release/%{name}_migration_tool %{buildroot}%{_bindir}/%{name}_migration_tool install -D -m 640 ./lldap_config.docker_template.toml %{buildroot}%{_sysconfdir}/%{name}/config.toml install -D -m 750 ./app/index_local.html %{buildroot}%{_datarootdir}/%{name}/app/index.html install -D -m 644 %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf install -D -m 644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service cp -R ./app/pkg/* %{buildroot}%{_datarootdir}/%{name}/app/pkg/ cp -R ./app/static/* %{buildroot}%{_datarootdir}/%{name}/app/static/ %pre %sysusers_create_compat %{S:1} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %{_bindir}/%{name} %{_bindir}/%{name}_migration_tool %{_bindir}/%{name}_set_password %attr(755, lldap, lldap) %{_sharedstatedir}/lldap/ %config(noreplace) %attr(-,%{name},%{name}) %{_sysconfdir}/%{name}/* %{_datarootdir}/%{name}/* %{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %changelog ## START: Generated by rpmautospec * Sat Feb 21 2026 Grillo del Mal - 0.6.2-5 - Fix config file path * Sat Feb 21 2026 Grillo del Mal - 0.6.2-4 - Fix bin permissions * Sat Feb 21 2026 Grillo del Mal - 0.6.2-3 - Add dir creation * Sat Feb 21 2026 Grillo del Mal - 0.6.2-2 - Fix epel build * Thu Feb 19 2026 Grillo del Mal - 0.6.2-1 - Initial commit ## END: Generated by rpmautospec