# Generated by rust2rpm # https://github.com/passcod/notify/issues/186 %bcond_with check %global debug_package %{nil} %global crate notify Name: rust-%{crate} Version: 4.0.10 Release: 1%{?dist} Summary: Cross-platform filesystem notification library # Upstream license specification: CC0-1.0 License: CC0 URL: https://crates.io/crates/notify Source: %{crates_source} # Initial patched metadata # * No windows/macos # * Update inotify to 0.7, https://github.com/passcod/notify/pull/184 Patch0: notify-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(bitflags/default) >= 1.0.4 with crate(bitflags/default) < 2.0.0) BuildRequires: (crate(filetime/default) >= 0.2.1 with crate(filetime/default) < 0.3.0) BuildRequires: (crate(inotify) >= 0.7.0 with crate(inotify) < 0.8.0) BuildRequires: (crate(libc/default) >= 0.2.4 with crate(libc/default) < 0.3.0) BuildRequires: (crate(mio-extras/default) >= 2.0.5 with crate(mio-extras/default) < 3.0.0) BuildRequires: (crate(mio/default) >= 0.6.15 with crate(mio/default) < 0.7.0) BuildRequires: (crate(walkdir/default) >= 2.0.1 with crate(walkdir/default) < 3.0.0) %if %{with check} BuildRequires: (crate(tempdir/default) >= 0.3.4 with crate(tempdir/default) < 0.4.0) %endif %global _description \ Cross-platform filesystem notification library. %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 %doc README.md CHANGELOG.md %{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 %package -n %{name}+manual_tests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+manual_tests-devel %{_description} This package contains library source intended for building other packages which use "manual_tests" feature of "%{crate}" crate. %files -n %{name}+manual_tests-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+timing_tests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+timing_tests-devel %{_description} This package contains library source intended for building other packages which use "timing_tests" feature of "%{crate}" crate. %files -n %{name}+timing_tests-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 * Mon Mar 11 2019 Igor Gnatenko - 4.0.10-1 - Initial package