You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-cpp_demangle/rust-cpp_demangle.spec

89 lines
2.2 KiB

# Generated by rust2rpm
%bcond_without check
%global crate cpp_demangle
Name: rust-%{crate}
7 years ago
Version: 0.2.9
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.8-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
%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
7 years ago
* 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