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.
112 lines
3.1 KiB
112 lines
3.1 KiB
# Generated by rust2rpm
|
|
%bcond_with check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate structopt-derive
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.2.15
|
|
Release: 1%{?dist}
|
|
Summary: Parse command line argument by defining a struct, derive crate
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
License: ASL 2.0 or MIT
|
|
URL: https://crates.io/crates/structopt-derive
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * No nightly
|
|
Patch0: structopt-derive-fix-metadata.diff
|
|
|
|
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)
|
|
|
|
%global _description \
|
|
Parse command line argument by defining a struct, derive crate.
|
|
|
|
%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
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
%{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
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.15-1
|
|
- Update to 0.2.15
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.14-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Mon Dec 10 2018 Josh Stone <jistone@redhat.com> - 0.2.14-1
|
|
- Update to 0.2.14
|
|
|
|
* Thu Nov 15 2018 Josh Stone <jistone@redhat.com> - 0.2.13-1
|
|
- Update to 0.2.13
|
|
|
|
* Fri Nov 09 2018 Josh Stone <jistone@redhat.com> - 0.2.12-2
|
|
- Adapt to new packaging
|
|
|
|
* Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.2.12-1
|
|
- Update to 0.2.12
|
|
|
|
* Fri Oct 05 2018 Josh Stone <jistone@redhat.com> - 0.2.11-1
|
|
- Update to 0.2.11
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.10-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Thu Jun 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.10-1
|
|
- Update to 0.2.10
|
|
|
|
* Wed May 02 2018 Josh Stone <jistone@redhat.com> - 0.2.8-1
|
|
- Update to 0.2.8
|
|
|
|
* Tue Apr 17 2018 Josh Stone <jistone@redhat.com> - 0.2.7-1
|
|
- Update to 0.2.7
|
|
|
|
* Thu Mar 08 2018 Josh Stone <jistone@redhat.com> - 0.2.5-1
|
|
- Update to 0.2.5
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-1
|
|
- Initial package
|