gnunet-rpm

GNUnet RPM package rules
Log | Files | Refs | README

commit cc81def89309658b5218ae9c7b968fcdab2c4896
parent 11cda0c625bc9e8f713ffce00e28344d216b2d15
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed, 17 May 2023 22:26:51 +0200

remove crate, add spec

Diffstat:
Drpmbuild/SPECS/octets-0.2.0.crate | 0
Arpmbuild/SPECS/rust-octets.spec | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/rpmbuild/SPECS/octets-0.2.0.crate b/rpmbuild/SPECS/octets-0.2.0.crate Binary files differ. diff --git a/rpmbuild/SPECS/rust-octets.spec b/rpmbuild/SPECS/rust-octets.spec @@ -0,0 +1,67 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate octets + +Name: rust-octets +Version: 0.2.0 +Release: %autorelease +Summary: Zero-copy abstraction for parsing and constructing network packets + +License: BSD-2-Clause +URL: https://crates.io/crates/octets +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Zero-copy abstraction for parsing and constructing network packets.} + +%description %{_description} + +%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 +# FIXME: no license files detected +%{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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog