|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate cpp_demangle
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.2.11
|
|
|
|
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
|
|
|
|
# * No afl, still not packaged
|
|
|
|
Patch0: cpp_demangle-0.2.11-fix-metadata.diff
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(cfg-if) >= 0.1.4 with crate(cfg-if) < 0.2.0)
|
|
|
|
# [build-dependencies]
|
|
|
|
BuildRequires: (crate(glob) >= 0.2.11 with crate(glob) < 0.3.0)
|
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
|
|
|
BuildRequires: (crate(clap) >= 2.27.1 with crate(clap) < 3.0.0)
|
|
|
|
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
|
|
|
|
%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 Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-1
|
|
|
|
- Update to 0.2.11
|
|
|
|
|
|
|
|
* Thu Aug 09 2018 Josh Stone <jistone@redhat.com> - 0.2.10-1
|
|
|
|
- Update to 0.2.10
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue May 15 2018 Josh Stone <jistone@redhat.com> - 0.2.9-1
|
|
|
|
- Update to 0.2.9
|
|
|
|
|
|
|
|
* Sat May 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.8-1
|
|
|
|
- Update to 0.2.8
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.7-2
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
|
|
|
* Fri Dec 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.7-1
|
|
|
|
- Initial package
|