Davide Cavalca 4 years ago
parent 64473bddef
commit 782925c534

1
.gitignore vendored

@ -0,0 +1 @@
/getset-0.1.1.crate

@ -0,0 +1,75 @@
# Generated by rust2rpm 17
%bcond_without check
%global debug_package %{nil}
%global crate getset
Name: rust-%{crate}
Version: 0.1.1
Release: 1%{?dist}
Summary: A procedural macro for generating the most basic getters and setters on fields.
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/getset
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
A procedural macro for generating the most basic getters and setters on fields.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc examples README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
* Thu Jun 24 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.1.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (getset-0.1.1.crate) = 6bf2a3e9438121e6ed089bfc0ad9bd352fa6e07269371c8df4119d1a8b385e3188348df342bb8860395d6887e4a824ce4ca43ef597d933154d7f1d90d91d1982
Loading…
Cancel
Save