|
|
6f55cf9 |
# Generated by rust2rpm
|
|
|
8bf6359 |
# * Tests are run in infrastructure
|
|
|
8bf6359 |
%bcond_with check
|
|
|
6f55cf9 |
%global debug_package %{nil}
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%global crate newtype_derive
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
Name: rust-%{crate}
|
|
|
6f55cf9 |
Version: 0.1.6
|
|
|
4ecb945 |
Release: 10%{?dist}
|
|
|
6f55cf9 |
Summary: Macros for deriving common traits for newtype structures
|
|
|
6f55cf9 |
|
|
|
8bf6359 |
# Upstream license specification: MIT/Apache-2.0
|
|
|
6f55cf9 |
# https://github.com/DanielKeep/rust-custom-derive/issues/36
|
|
|
6f55cf9 |
License: MIT or ASL 2.0
|
|
|
6f55cf9 |
URL: https://crates.io/crates/newtype_derive
|
|
|
6f55cf9 |
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
6f55cf9 |
# Initial patched metadata
|
|
|
6f55cf9 |
# * Bump rustc_version to 0.2, https://github.com/DanielKeep/rust-custom-derive/pull/37
|
|
|
8bf6359 |
Patch0: newtype_derive-fix-metadata.diff
|
|
|
6f55cf9 |
# Make it work with rustc_version v0.2
|
|
|
6f55cf9 |
Patch1: 0001-bump-rustc_version-to-0.2.patch
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
ExclusiveArch: %{rust_arches}
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
BuildRequires: rust-packaging
|
|
|
8bf6359 |
BuildRequires: (crate(rustc_version/default) >= 0.2.0 with crate(rustc_version/default) < 0.3.0)
|
|
|
6f55cf9 |
%if %{with check}
|
|
|
8bf6359 |
BuildRequires: (crate(custom_derive/default) >= 0.1.1 with crate(custom_derive/default) < 0.2.0)
|
|
|
6f55cf9 |
%endif
|
|
|
6f55cf9 |
|
|
|
8bf6359 |
%global _description \
|
|
|
8bf6359 |
This crate provides macros for deriving common traits for newtype structures.
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%description %{_description}
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%package devel
|
|
|
6f55cf9 |
Summary: %{summary}
|
|
|
6f55cf9 |
BuildArch: noarch
|
|
|
6f55cf9 |
|
|
|
8bf6359 |
%description devel %{_description}
|
|
|
8bf6359 |
|
|
|
8bf6359 |
This package contains library source intended for building other packages
|
|
|
8bf6359 |
which use "%{crate}" crate.
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%files devel
|
|
|
8bf6359 |
%{cargo_registry}/%{crate}-%{version}/
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%package -n %{name}+default-devel
|
|
|
8bf6359 |
Summary: %{summary}
|
|
|
8bf6359 |
BuildArch: noarch
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%description -n %{name}+default-devel %{_description}
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
This package contains library source intended for building other packages
|
|
|
8bf6359 |
which use "default" feature of "%{crate}" crate.
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%files -n %{name}+default-devel
|
|
|
8bf6359 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%package -n %{name}+std-devel
|
|
|
8bf6359 |
Summary: %{summary}
|
|
|
8bf6359 |
BuildArch: noarch
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%description -n %{name}+std-devel %{_description}
|
|
|
8bf6359 |
|
|
|
8bf6359 |
This package contains library source intended for building other packages
|
|
|
8bf6359 |
which use "std" feature of "%{crate}" crate.
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%files -n %{name}+std-devel
|
|
|
8bf6359 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%package -n %{name}+std-unstable-devel
|
|
|
8bf6359 |
Summary: %{summary}
|
|
|
8bf6359 |
BuildArch: noarch
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%description -n %{name}+std-unstable-devel %{_description}
|
|
|
8bf6359 |
|
|
|
8bf6359 |
This package contains library source intended for building other packages
|
|
|
8bf6359 |
which use "std-unstable" feature of "%{crate}" crate.
|
|
|
8bf6359 |
|
|
|
8bf6359 |
%files -n %{name}+std-unstable-devel
|
|
|
8bf6359 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%prep
|
|
|
6f55cf9 |
%autosetup -n %{crate}-%{version} -N
|
|
|
6f55cf9 |
# https://github.com/DanielKeep/rust-custom-derive/issues/35
|
|
|
6f55cf9 |
grep -IUlr $'\r' | xargs sed -i 's/\r$//'
|
|
|
6f55cf9 |
%patch0 -p1
|
|
|
6f55cf9 |
%patch1 -p2
|
|
|
6f55cf9 |
%cargo_prep
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%build
|
|
|
6f55cf9 |
%cargo_build
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%install
|
|
|
6f55cf9 |
%cargo_install
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%if %{with check}
|
|
|
6f55cf9 |
%check
|
|
|
6f55cf9 |
%cargo_test
|
|
|
6f55cf9 |
%endif
|
|
|
6f55cf9 |
|
|
|
6f55cf9 |
%changelog
|
|
|
4ecb945 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-10
|
|
|
4ecb945 |
- Second attempt - Rebuilt for
|
|
|
4ecb945 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4ecb945 |
|
|
|
c22c056 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-9
|
|
|
c22c056 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c22c056 |
|
|
|
c707d76 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-8
|
|
|
c707d76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
c707d76 |
|
|
|
f43f992 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-7
|
|
|
f43f992 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f43f992 |
|
|
|
c2a32d8 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-6
|
|
|
c2a32d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c2a32d8 |
|
|
|
8bf6359 |
* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-5
|
|
|
8bf6359 |
- Adapt to new packaging
|
|
|
8bf6359 |
|
|
|
9f54fbb |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-4
|
|
|
9f54fbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9f54fbb |
|
|
|
e7c8b1f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-3
|
|
|
e7c8b1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e7c8b1f |
|
|
|
1829861 |
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-2
|
|
|
1829861 |
- Rebuild for rust-packaging v5
|
|
|
1829861 |
|
|
|
6f55cf9 |
* Tue Dec 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-1
|
|
|
6f55cf9 |
- Initial package
|