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.
126 lines
3.7 KiB
126 lines
3.7 KiB
# Generated by rust2rpm
|
|
%bcond_with check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate mio
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.6.16
|
|
Release: 3%{?dist}
|
|
Summary: Lightweight non-blocking IO
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/mio
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * No windows or fuchsia
|
|
Patch0: mio-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
BuildRequires: (crate(iovec/default) >= 0.1.1 with crate(iovec/default) < 0.2.0)
|
|
BuildRequires: (crate(lazycell/default) >= 1.0.0 with crate(lazycell/default) < 2.0.0)
|
|
BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0)
|
|
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
BuildRequires: (crate(net2/default) >= 0.2.29 with crate(net2/default) < 0.3.0)
|
|
BuildRequires: (crate(slab/default) >= 0.4.0 with crate(slab/default) < 0.5.0)
|
|
%if %{with check}
|
|
BuildRequires: (crate(bytes/default) >= 0.3.0 with crate(bytes/default) < 0.4.0)
|
|
BuildRequires: (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0)
|
|
BuildRequires: (crate(tempdir/default) >= 0.3.4 with crate(tempdir/default) < 0.4.0)
|
|
%endif
|
|
|
|
%global _description \
|
|
Lightweight non-blocking IO.
|
|
|
|
%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
|
|
%doc README.md CHANGELOG.md
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci}
|
|
|
|
%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}+with-deprecated-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+with-deprecated-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "with-deprecated" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+with-deprecated-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
|
|
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.16-3
|
|
- Adapt to new packaging
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.16-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Sep 08 2018 Josh Stone <jistone@redhat.com> - 0.6.16-1
|
|
- Update to 0.6.16
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.15-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Wed Jul 11 2018 Josh Stone <jistone@redhat.com> - 0.6.15-1
|
|
- Update to 0.6.15
|
|
|
|
* Fri Jun 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.14-2
|
|
- Bump lazycell to 1
|
|
|
|
* Fri Mar 09 2018 Josh Stone <jistone@redhat.com> - 0.6.14-1
|
|
- Update to 0.6.14
|
|
|
|
* Wed Feb 07 2018 Josh Stone <jistone@redhat.com> - 0.6.13-1
|
|
- Update to 0.6.13
|
|
|
|
* Wed Jan 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.12-1
|
|
- Update to 0.6.12
|
|
|
|
* Fri Dec 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.11-1
|
|
- Update to 0.6.11
|
|
|
|
* Fri Jun 16 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.9-1
|
|
- Initial package
|