## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 27 %bcond check 1 %global crate rtrtr Name: rust-rtrtr Version: 0.3.1 Release: %autorelease Summary: Versatile tool for managing route filters License: BSD-3-Clause URL: https://crates.io/crates/rtrtr Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A versatile tool for managing route filters.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 # Apache-2.0 AND ISC AND (MIT OR Apache-2.0) # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR ISC OR MIT # Apache-2.0 OR MIT # (dup L2) # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # ISC # MIT # MIT OR Apache-2.0 # (dup L2) # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT License: Apache-2.0 AND ISC AND (MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc Changelog.md %doc README.md %{_bindir}/rtrtr %doc %{_mandir}/man1/%{crate}.1* %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/Changelog.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+arbitrary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+socks-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+socks-devel %{_description} This package contains library source intended for building other packages which use the "socks" feature of the "%{crate}" crate. %files -n %{name}+socks-devel %ghost %{crate_instdir}/Cargo.toml %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 mkdir -p %{buildroot}%{_mandir}/man1 install -p -m 0644 doc/%{crate}.1 %{buildroot}%{_mandir}/man1 %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Fri May 09 2025 Petr Menšík - 0.3.1-4 - Include man page in the build * Fri May 09 2025 Petr Menšík - 0.3.1-3 - Add man page using toml file * Fri May 09 2025 Petr Menšík - 0.3.1-2 - Fix licenses of binary package * Fri May 09 2025 Petr Menšík - 0.3.1-1 - Downgrade to version 0.3.1 * Fri May 09 2025 Petr Menšík - 0.3.2-1 - Initial rpm spec * Tue Jun 18 2024 Martin Hoffmann - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec