Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 4aac987705
commit 39195004b0
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -0,0 +1 @@
/strum_macros-0.15.0.crate

@ -0,0 +1,206 @@
# Generated by rust2rpm 9
%bcond_with check
%global debug_package %{nil}
%global crate strum_macros
Name: rust-%{crate}
Version: 0.15.0
Release: 1%{?dist}
Summary: Helpful macros for working with enums and strings
# Upstream license specification: MIT
# https://github.com/Peternator7/strum/issues/55
License: MIT
URL: https://crates.io/crates/strum_macros
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(heck/default) >= 0.3.0 with crate(heck/default) < 0.4.0)
BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0)
BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0)
BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0)
BuildRequires: (crate(syn/extra-traits) >= 0.15.0 with crate(syn/extra-traits) < 0.16.0)
BuildRequires: (crate(syn/parsing) >= 0.15.0 with crate(syn/parsing) < 0.16.0)
%global _description %{expand:
Helpful macros for working with enums and strings.}
%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
%{cargo_registry}/%{crate}-%{version}/
%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}/Cargo.toml
%package -n %{name}+verbose-asrefstr-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-asrefstr-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-asrefstr-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-asrefstr-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-asstaticstr-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-asstaticstr-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-asstaticstr-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-asstaticstr-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-display-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-display-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-display-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-display-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enumcount-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enumcount-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enumcount-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enumcount-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enumdiscriminants-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enumdiscriminants-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enumdiscriminants-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enumdiscriminants-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enumiter-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enumiter-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enumiter-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enumiter-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enummessage-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enummessage-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enummessage-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enummessage-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enumproperty-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enumproperty-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enumproperty-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enumproperty-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-enumstring-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-enumstring-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-enumstring-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-enumstring-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-intostaticstr-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-intostaticstr-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-intostaticstr-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-intostaticstr-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+verbose-tostring-name-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-tostring-name-devel %{_description}
This package contains library source intended for building other packages
which use "verbose-tostring-name" feature of "%{crate}" crate.
%files -n %{name}+verbose-tostring-name-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri May 31 14:01:33 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (strum_macros-0.15.0.crate) = fd0e363693bd34f0f8cd20d17a4fa12745e82b75de48d700ed5062312d202abba21d21bad434f22d4c467e9d6d3f8e4b1c5a7975aafed8418cc0c12d5f218f30

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
# `cargo test` usually eats more than 1G.
m: 4G

@ -0,0 +1,13 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/tests/rust.git"
dest: rust
tests:
- rust/cargo-test
environment:
pkg: rust-strum_macros
Loading…
Cancel
Save