You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-speakersafetyd/SPECS/rust-speakersafetyd.spec

128 lines
3.7 KiB

## START: Set by rpmautospec
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 1;
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
# Generated by rust2rpm 26
%bcond_without check
%global crate speakersafetyd
Name: rust-speakersafetyd
Version: 1.0.2
Release: %autorelease
Summary: Speaker protection daemon for embedded Linux systems
License: MIT
URL: https://crates.io/crates/speakersafetyd
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: systemd-rpm-macros
%global _description %{expand:
Speaker protection daemon for embedded Linux systems.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# Apache-2.0 OR MIT
# MIT
# MIT OR Apache-2.0
# MIT OR LGPL-3.0-or-later
# MPL-2.0
License: (Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR LGPL-3.0-or-later) AND MPL-2.0
# LICENSE.dependencies contains a full license breakdown
Requires: systemd-udev
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%{_bindir}/speakersafetyd
%{_datadir}/speakersafetyd/
%{_unitdir}/speakersafetyd.service
%{_sharedstatedir}/speakersafetyd/
%{_udevrulesdir}/95-speakersafetyd.rules
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
install -p -m 0644 -D speakersafetyd.service %{buildroot}%{_unitdir}/speakersafetyd.service
install -p -m 0644 -D 95-speakersafetyd.rules %{buildroot}%{_udevrulesdir}/95-speakersafetyd.rules
install -d -m 0755 %{buildroot}%{_datadir}/speakersafetyd/apple
install -p -m 0644 -t %{buildroot}%{_datadir}/speakersafetyd/apple conf/apple/*
install -d -m 0755 %{buildroot}%{_sharedstatedir}/speakersafetyd/blackbox
%post -n %{crate}
%systemd_post speakersafetyd.service
%preun -n %{crate}
%systemd_preun speakersafetyd.service
%postun -n %{crate}
%systemd_postun_with_restart speakersafetyd.service
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri Dec 20 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.0.2-1
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Fri Oct 11 2024 Davide Cavalca <dcavalca@fedoraproject.org> - 1.0.2-1
- Update to 1.0.2; Fixes: RHBZ#2302225
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu May 23 2024 Fabio Valentini <decathorpe@gmail.com> - 0.1.9-3
- Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Dec 17 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.9-1
- Bump to 0.1.9
* Sun Dec 17 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.8-1
- Bump to 0.1.8
* Mon Dec 11 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.7-1
- Bump to 0.1.7
* Fri Dec 08 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.6-1
- Bump to 0.1.6
* Mon Dec 04 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.5-1
- Bump to 0.1.5
* Thu Nov 09 2023 Hector Martin <marcan@fedoraproject.org> - 0.1.4-2
- Explicitly create blackbox directory
* Mon Nov 06 2023 Hector Martin <marcan@marcan.st> - 0.1.4-1
- Initial release: 0.1.4
## END: Generated by rpmautospec