diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d68e52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/fs-set-times-0.3.1.crate +/fs-set-times-0.14.0.crate +/fs-set-times-0.14.1.crate +/fs-set-times-0.15.0.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..f464679 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-fs-set-times + +The rust-fs-set-times package diff --git a/changelog b/changelog new file mode 100644 index 0000000..5247ecb --- /dev/null +++ b/changelog @@ -0,0 +1,12 @@ +* Fri Jan 21 2022 Fedora Release Engineering - 0.14.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Dec 4 2021 Olivier Lemasle - 0.14.0-1 +- Update to upstream 0.14.0 (fixes rhbz#1976478) + +* Tue Jul 27 2021 Fedora Release Engineering - 0.3.1-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 31 20:37:18 CEST 2021 Olivier Lemasle - 0.3.1-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index 0d143d3..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -unused as effort to package wasmtime is abandoned diff --git a/fs-set-times-fix-metadata.diff b/fs-set-times-fix-metadata.diff new file mode 100644 index 0000000..b22620b --- /dev/null +++ b/fs-set-times-fix-metadata.diff @@ -0,0 +1,11 @@ +--- fs-set-times-0.15.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fs-set-times-0.15.0/Cargo.toml 2022-04-13T22:35:23.127723+00:00 +@@ -26,8 +26,5 @@ + default-features = false + [target."cfg(not(windows))".dependencies.rustix] + version = "0.33.0" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.9" +-features = ["winerror"] + [badges.maintenance] + status = "actively-developed" diff --git a/rust-fs-set-times.spec b/rust-fs-set-times.spec new file mode 100644 index 0000000..2dbda91 --- /dev/null +++ b/rust-fs-set-times.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate fs-set-times + +Name: rust-%{crate} +Version: 0.15.0 +Release: %autorelease +Summary: Set filesystem timestamps + +# Upstream license specification: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/fs-set-times +Source: %{crates_source} +# Initial patched metadata +# * drop windows-specific dependencies +Patch0: fs-set-times-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Set filesystem timestamps.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-Apache-2.0_WITH_LLVM-exception +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/ORG_CODE_OF_CONDUCT.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/SECURITY.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..bb6e9f3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fs-set-times-0.15.0.crate) = 27018526e807f6e265e833465ea390295cbfa7083a0b49ff03668f503c3f249e9bfa4adf86d1722e83e898192f4aded65b5881be6d13ad20d84354c87a4d1f30