rust-octets.spec (1426B)
1 # Generated by rust2rpm 24 2 %bcond_without check 3 %global debug_package %{nil} 4 5 %global crate octets 6 7 Name: rust-octets 8 Version: 0.2.0 9 Release: %autorelease 10 Summary: Zero-copy abstraction for parsing and constructing network packets 11 12 License: BSD-2-Clause 13 URL: https://crates.io/crates/octets 14 Source: %{crates_source} 15 16 BuildRequires: rust-packaging >= 21 17 18 %global _description %{expand: 19 Zero-copy abstraction for parsing and constructing network packets.} 20 21 %description %{_description} 22 23 %package devel 24 Summary: %{summary} 25 BuildArch: noarch 26 27 %description devel %{_description} 28 29 This package contains library source intended for building other packages which 30 use the "%{crate}" crate. 31 32 %files devel 33 # FIXME: no license files detected 34 %{crate_instdir}/ 35 36 %package -n %{name}+default-devel 37 Summary: %{summary} 38 BuildArch: noarch 39 40 %description -n %{name}+default-devel %{_description} 41 42 This package contains library source intended for building other packages which 43 use the "default" feature of the "%{crate}" crate. 44 45 %files -n %{name}+default-devel 46 %ghost %{crate_instdir}/Cargo.toml 47 48 %prep 49 %autosetup -n %{crate}-%{version_no_tilde} -p1 50 %cargo_prep 51 52 %generate_buildrequires 53 %cargo_generate_buildrequires 54 55 %build 56 %cargo_build 57 58 %install 59 %cargo_install 60 61 %if %{with check} 62 %check 63 %cargo_test 64 %endif 65 66 %changelog 67 %autochangelog