parent
df5133a793
commit
62e912d7d2
@ -0,0 +1 @@
|
|||||||
|
/cpp_demangle-0.2.7.crate
|
@ -0,0 +1,24 @@
|
|||||||
|
--- cpp_demangle-0.2.7/Cargo.toml 1970-01-01T01:00:00+01:00
|
||||||
|
+++ cpp_demangle-0.2.7/Cargo.toml 2017-12-01T15:52:46.759567+01:00
|
||||||
|
@@ -29,13 +29,6 @@
|
||||||
|
name = "cppfilt"
|
||||||
|
path = "src/bin/cppfilt.rs"
|
||||||
|
required-features = ["cppfilt"]
|
||||||
|
-[dependencies.afl]
|
||||||
|
-version = "0.1.5"
|
||||||
|
-optional = true
|
||||||
|
-
|
||||||
|
-[dependencies.afl-plugin]
|
||||||
|
-version = "0.1.5"
|
||||||
|
-optional = true
|
||||||
|
|
||||||
|
[dependencies.clap]
|
||||||
|
version = "2.27.1"
|
||||||
|
@@ -48,7 +41,6 @@
|
||||||
|
[features]
|
||||||
|
cppfilt = ["clap"]
|
||||||
|
default = ["cppfilt"]
|
||||||
|
-fuzz = ["afl", "afl-plugin"]
|
||||||
|
logging = []
|
||||||
|
nightly = []
|
||||||
|
run_libiberty_tests = []
|
@ -0,0 +1,78 @@
|
|||||||
|
# Generated by rust2rpm
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
%global crate cpp_demangle
|
||||||
|
|
||||||
|
Name: rust-%{crate}
|
||||||
|
Version: 0.2.7
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Crate for demangling C++ symbols
|
||||||
|
|
||||||
|
License: ASL 2.0 or MIT
|
||||||
|
URL: https://crates.io/crates/cpp_demangle
|
||||||
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||||
|
# Initial patched metadata
|
||||||
|
# * afl is nightly
|
||||||
|
Patch0: cpp_demangle-0.2.7-fix-metadata.diff
|
||||||
|
|
||||||
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
# [dependencies]
|
||||||
|
BuildRequires: (crate(clap) >= 2.27.1 with crate(clap) < 3.0.0)
|
||||||
|
# [build-dependencies]
|
||||||
|
BuildRequires: (crate(glob) >= 0.2.11 with crate(glob) < 0.3.0)
|
||||||
|
%if %{with check}
|
||||||
|
# [dev-dependencies]
|
||||||
|
BuildRequires: (crate(diff) >= 0.1.10 with crate(diff) < 0.2.0)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n %{crate}
|
||||||
|
Summary: c++filt clone in Rust
|
||||||
|
|
||||||
|
%description -n %{crate}
|
||||||
|
c++filt clone as an example of how to use the cpp_demangle crate.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
A crate for demangling C++ symbols.
|
||||||
|
|
||||||
|
This package contains library source intended for building other packages
|
||||||
|
which use %{crate} from crates.io.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version} -p1
|
||||||
|
# https://github.com/gimli-rs/cpp_demangle/pull/118
|
||||||
|
find -type f -name '*.rs' -executable -exec chmod -x {} ';'
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cargo_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cargo_install
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%cargo_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n %{crate}
|
||||||
|
%license LICENSE-MIT LICENSE-APACHE
|
||||||
|
%doc CHANGELOG.md README.md
|
||||||
|
%{_bindir}/cppfilt
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license LICENSE-MIT LICENSE-APACHE
|
||||||
|
%doc CHANGELOG.md CONTRIBUTING.md README.md
|
||||||
|
%{cargo_registry}/%{crate}-%{version}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Dec 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.7-1
|
||||||
|
- Initial package
|
Loading…
Reference in new issue