Adapt to new packaging

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

@ -1,13 +1,9 @@
--- cpp_demangle-0.2.11/Cargo.toml 1970-01-01T01:00:00+01:00 --- cpp_demangle-0.2.12/Cargo.toml 1970-01-01T01:00:00+01:00
+++ cpp_demangle-0.2.11/Cargo.toml 2018-08-10T14:22:30.129580+02:00 +++ cpp_demangle-0.2.12/Cargo.toml 2018-11-02T18:54:42.881123+01:00
@@ -31,14 +31,6 @@ @@ -35,10 +35,6 @@
path = "src/bin/cppfilt.rs" name = "afl_runner"
required-features = ["cppfilt"] path = "src/bin/afl_runner.rs"
required-features = ["afl"]
-[[bin]]
-name = "afl_runner"
-path = "src/bin/afl_runner.rs"
-required-features = ["afl"]
-[dependencies.afl] -[dependencies.afl]
-version = "0.4" -version = "0.4"
-optional = true -optional = true
@ -15,11 +11,16 @@
[dependencies.cfg-if] [dependencies.cfg-if]
version = "0.1.4" version = "0.1.4"
[dev-dependencies.clap] [dev-dependencies.clap]
@@ -53,7 +45,6 @@ @@ -51,12 +47,8 @@
[features]
alloc = [] alloc = []
cppfilt = [] -cppfilt = []
default = ["std"] default = ["std"]
-fuzz = ["afl"] -fuzz = ["afl"]
logging = [] logging = []
nightly = [] -nightly = []
run_libiberty_tests = [] -run_libiberty_tests = []
std = []
[badges.travis-ci]
repository = "gimli-rs/cpp_demangle"

@ -1,11 +1,14 @@
# Generated by rust2rpm # Generated by rust2rpm
%bcond_without check # * Tests are run in infrastructure
%bcond_with check
%global __cargo_is_bin() false
%global crate cpp_demangle %global crate cpp_demangle
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.12 Version: 0.2.12
Release: 1%{?dist} Release: 2%{?dist}
Summary: Crate for demangling C++ symbols Summary: Crate for demangling C++ symbols
# Upstream license specification: Apache-2.0/MIT # Upstream license specification: Apache-2.0/MIT
@ -19,61 +22,99 @@ Patch0: cpp_demangle-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(cfg-if/default) >= 0.1.4 with crate(cfg-if/default) < 0.2.0)
BuildRequires: (crate(cfg-if) >= 0.1.4 with crate(cfg-if) < 0.2.0) BuildRequires: (crate(glob/default) >= 0.2.11 with crate(glob/default) < 0.3.0)
# [build-dependencies]
BuildRequires: (crate(glob) >= 0.2.11 with crate(glob) < 0.3.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(clap/default) >= 2.27.1 with crate(clap/default) < 3.0.0)
BuildRequires: (crate(clap) >= 2.27.1 with crate(clap) < 3.0.0) BuildRequires: (crate(diff/default) >= 0.1.10 with crate(diff/default) < 0.2.0)
BuildRequires: (crate(diff) >= 0.1.10 with crate(diff) < 0.2.0)
%endif %endif
%description %global _description \
%{summary}. A crate for demangling C++ symbols.
%package -n %{crate}
Summary: c++filt clone in Rust
%description -n %{crate} %description %{_description}
c++filt clone as an example of how to use the cpp_demangle crate.
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A crate for demangling C++ symbols.
This package contains library source intended for building other packages This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc CHANGELOG.md CONTRIBUTING.md README.md
%{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}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages
which use "alloc" feature of "%{crate}" crate.
%files -n %{name}+alloc-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+logging-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+logging-devel %{_description}
This package contains library source intended for building other packages
which use "logging" feature of "%{crate}" crate.
%files -n %{name}+logging-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages
which use "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
%build %build
%cargo_build -- --example cppfilt %cargo_build
%install %install
%cargo_install -- --example cppfilt %cargo_install
%if %{with check} %if %{with check}
%check %check
%cargo_test %cargo_test
%endif %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 %changelog
* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.12-2
- Adapt to new packaging
* Tue Sep 11 2018 Josh Stone <jistone@redhat.com> - 0.2.12-1 * Tue Sep 11 2018 Josh Stone <jistone@redhat.com> - 0.2.12-1
- Update to 0.2.12 - Update to 0.2.12

Loading…
Cancel
Save