Blob Blame History Raw
# Generated by rust2rpm 13
%bcond_without check
%global debug_package %{nil}

%global crate notify

Name:           rust-%{crate}
Version:        4.0.15
Release:        4%{?dist}
Summary:        Cross-platform filesystem notification library

# Upstream license specification: CC0-1.0
# License file is in upstream, but not in released version yet
License:        CC0
URL:            https://crates.io/crates/notify
Source:         %{crates_source}
# Initial patched metadata
# * Update inotify to 0.8, https://github.com/notify-rs/notify/pull/234
Patch0:         notify-fix-metadata.diff

ExclusiveArch:  %{rust_arches}
%if %{__cargo_skip_build}
BuildArch:      noarch
%endif

BuildRequires:  rust-packaging

%global _description %{expand:
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_no_tilde}/

%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_no_tilde}/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_no_tilde}/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_no_tilde}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
# Tests are not very reliable, https://github.com/passcod/notify/issues/186
%cargo_test || :
%endif

%changelog
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.15-4
- Second attempt - Rebuilt for
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Sat Jan 25 2020 Josh Stone <jistone@redhat.com> - 4.0.15-1
- Update to 4.0.15

* Tue Dec 17 10:30:17 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.14-2
- Update inotify to 0.8

* Sat Nov 23 2019 Josh Stone <jistone@redhat.com> - 4.0.14-1
- Update to 4.0.14

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Jun 22 23:13:10 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.12-2
- Regenerate

* Thu May 30 17:45:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.12-1
- Update to 4.0.12

* Thu May 09 08:25:27 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.11-1
- Update to 4.0.11

* Mon Mar 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.10-1
- Initial package