Update to version 0.2.0
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rav1e?expand=0&rev=6
This commit is contained in:
parent
158f385e3f
commit
1e7b9dbc9e
@ -1,74 +0,0 @@
|
|||||||
From 8a04e0f27552adeef428d8abe688c4490e6f663c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Luca Barbato <lu_zero@gentoo.org>
|
|
||||||
Date: Tue, 10 Dec 2019 11:44:19 +0100
|
|
||||||
Subject: [PATCH] nasm_rs: Force the dwarf debug for elf targets
|
|
||||||
|
|
||||||
---
|
|
||||||
crates/nasm_rs/src/lib.rs | 27 ++++++++++++++-------------
|
|
||||||
1 file changed, 14 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/crates/nasm_rs/src/lib.rs b/crates/nasm_rs/src/lib.rs
|
|
||||||
index eb032a0a0..c48a84efc 100644
|
|
||||||
--- a/crates/nasm_rs/src/lib.rs
|
|
||||||
+++ b/crates/nasm_rs/src/lib.rs
|
|
||||||
@@ -9,35 +9,35 @@ use std::path::{Path, PathBuf};
|
|
||||||
use std::process::Command;
|
|
||||||
use std::process::Stdio;
|
|
||||||
|
|
||||||
-fn x86_triple(os: &str) -> &'static str {
|
|
||||||
+fn x86_triple(os: &str) -> (&'static str, &'static str) {
|
|
||||||
match os {
|
|
||||||
- "darwin" => "-fmacho32",
|
|
||||||
- "windows" => "-fwin32",
|
|
||||||
- _ => "-felf32",
|
|
||||||
+ "darwin" => ("-fmacho32", "-g"),
|
|
||||||
+ "windows" => ("-fwin32", "-g"),
|
|
||||||
+ _ => ("-felf32", "-gdwarf"),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-fn x86_64_triple(os: &str) -> &'static str {
|
|
||||||
+fn x86_64_triple(os: &str) -> (&'static str, &'static str) {
|
|
||||||
match os {
|
|
||||||
- "darwin" => "-fmacho64",
|
|
||||||
- "windows" => "-fwin64",
|
|
||||||
- _ => "-felf64",
|
|
||||||
+ "darwin" => ("-fmacho64", "-g"),
|
|
||||||
+ "windows" => ("-fwin64", "-g"),
|
|
||||||
+ _ => ("-felf64", "-gdwarf"),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-fn parse_triple(trip: &str) -> &'static str {
|
|
||||||
+fn parse_triple(trip: &str) -> (&'static str, &'static str) {
|
|
||||||
let parts = trip.split('-').collect::<Vec<_>>();
|
|
||||||
// ARCH-VENDOR-OS-ENVIRONMENT
|
|
||||||
// or ARCH-VENDOR-OS
|
|
||||||
// we don't care about environ so doesn't matter if triple doesn't have it
|
|
||||||
if parts.len() < 3 {
|
|
||||||
- return "";
|
|
||||||
+ return ("", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
match parts[0] {
|
|
||||||
"x86_64" => x86_64_triple(parts[2]),
|
|
||||||
"x86" | "i386" | "i586" | "i686" => x86_triple(parts[2]),
|
|
||||||
- _ => "",
|
|
||||||
+ _ => ("", ""),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -243,10 +243,11 @@ impl Build {
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_args(&self, target: &str) -> Vec<&str> {
|
|
||||||
- let mut args = vec![parse_triple(&target)];
|
|
||||||
+ let (arch_flag, debug_flag) = parse_triple(&target);
|
|
||||||
+ let mut args = vec![arch_flag];
|
|
||||||
|
|
||||||
if self.debug {
|
|
||||||
- args.push("-g");
|
|
||||||
+ args.push(debug_flag);
|
|
||||||
}
|
|
||||||
|
|
||||||
for arg in &self.flags {
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:00395087eaba4778d17878924e007716e2f399116b8011bf057fd54cc528a6cb
|
|
||||||
size 637375
|
|
3
rav1e-0.2.0.tar.gz
Normal file
3
rav1e-0.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c0fa8ee189f506c1a2dfd4b497ebb4e52739e850e1ecce7c02e6bc1073e63d66
|
||||||
|
size 742651
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 19 15:26:33 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 0.2.0
|
||||||
|
* https://github.com/xiph/rav1e/releases/tag/v0.2.0
|
||||||
|
- Removed rav1e-0.1.0-build_nasm_debug.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 9 22:54:35 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
Mon Dec 9 22:54:35 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
@ -16,20 +16,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
Name: rav1e
|
Name: rav1e
|
||||||
Version: 0.1.0
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Fastest and safest AV1 encoder
|
Summary: Fastest and safest AV1 encoder
|
||||||
Group: Productivity/Multimedia/Video/Editors and Convertors
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
||||||
|
|
||||||
# Upstream license specification: BSD-2-Clause
|
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/xiph/rav1e
|
URL: https://github.com/xiph/rav1e
|
||||||
#
|
#
|
||||||
Source0: https://github.com/xiph/rav1e/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/xiph/rav1e/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: vendor.tar.xz
|
Source1: vendor.tar.xz
|
||||||
#
|
#
|
||||||
Patch0: rav1e-0.1.0-build_nasm_debug.patch
|
|
||||||
#
|
|
||||||
BuildRequires: cargo-c
|
BuildRequires: cargo-c
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
BuildRequires: rust-packaging
|
BuildRequires: rust-packaging
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:adec5c0f6fa1bedc05a095e4283efc764dc8c8b5ff3580e4dc242b52380cf7a0
|
oid sha256:5c446a585fe4fadf0ea0d4d7ed462d42c533a48e1f11fdb4f9d3352019ffbd64
|
||||||
size 9446460
|
size 9774492
|
||||||
|
Loading…
Reference in New Issue
Block a user