Exclude CI files in a different way

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent deb24a7246
commit b8ba0ad902
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,16 +0,0 @@
--- nix-0.11.0/Cargo.toml 1970-01-01T01:00:00+01:00
+++ nix-0.11.0/Cargo.toml 2018-07-17T09:47:44.316000+02:00
@@ -60,12 +60,5 @@
[dev-dependencies.rand]
version = "0.4"
-[dev-dependencies.tempdir]
-version = "0.3"
-
[dev-dependencies.tempfile]
-version = "2"
-[target."cfg(target_os = \"dragonfly\")".build-dependencies.cc]
-version = "1"
-[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl]
-version = "0.1"
+version = "3"

@ -0,0 +1,25 @@
--- nix-0.11.0/Cargo.toml 1970-01-01T01:00:00+01:00
+++ nix-0.11.0/Cargo.toml 2018-11-02T19:58:10.895037+01:00
@@ -14,7 +14,7 @@
name = "nix"
version = "0.11.0"
authors = ["The nix-rust Project Developers"]
-exclude = [".gitignore", ".travis.yml"]
+exclude = ["/.gitignore", "/.travis.yml", "/ci/*", "/Cross.toml", "/RELEASE_PROCEDURE.md", "/bors.toml"]
description = "Rust friendly bindings to *nix APIs"
categories = ["os::unix-apis"]
license = "MIT"
@@ -60,12 +60,5 @@
[dev-dependencies.rand]
version = "0.4"
-[dev-dependencies.tempdir]
-version = "0.3"
-
[dev-dependencies.tempfile]
-version = "2"
-[target."cfg(target_os = \"dragonfly\")".build-dependencies.cc]
-version = "1"
-[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl]
-version = "0.1"
+version = "3"

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.11.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Rust friendly bindings to *nix APIs
License: MIT
@ -15,7 +15,8 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
# Initial patched metadata
# * No dragonfly/freebsd
# * Bump tempfile to 3, https://github.com/nix-rust/nix/pull/900
Patch0: nix-0.11.0-fix-metadata.diff
# * Exclude CI files, https://github.com/nix-rust/nix/pull/962
Patch0: nix-fix-metadata.diff
# Make it work with new tempdir
Patch0001: 0001-deps-update-tempfile-to-3.patch
@ -51,7 +52,6 @@ which use "%{crate}" crate.
%license LICENSE
%doc CHANGELOG.md CONTRIBUTING.md CONVENTIONS.md README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/{Cross.toml,RELEASE_PROCEDURE.md,bors.toml,ci}
%package -n %{name}+default-devel
Summary: %{summary}
@ -82,6 +82,9 @@ which use "default" feature of "%{crate}" crate.
%endif
%changelog
* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-4
- Exclude CI files in a different way
* Mon Oct 29 2018 Josh Stone <jistone@redhat.com> - 0.11.0-3
- Adapt to new packaging

Loading…
Cancel
Save