Accepting request 765060 from multimedia:libs

Update to version 0.2.1

OBS-URL: https://build.opensuse.org/request/show/765060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rav1e?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2020-01-17 15:05:29 +00:00 committed by Git OBS Bridge
commit 2df8b47da9
6 changed files with 20 additions and 84 deletions

View File

@ -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 {

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00395087eaba4778d17878924e007716e2f399116b8011bf057fd54cc528a6cb
size 637375

3
rav1e-0.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bb57bd744516aec2e11cb7076538694a44e5bf628d3d91a935dd8e3ee5a7ff6
size 748251

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Jan 10 09:01:06 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
- Update to version 0.2.1
* https://github.com/xiph/rav1e/releases/tag/v0.2.1
-------------------------------------------------------------------
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>

View File

@ -16,20 +16,17 @@
#
Name: rav1e
Version: 0.1.0
Version: 0.2.1
Release: 0
Summary: Fastest and safest AV1 encoder
Group: Productivity/Multimedia/Video/Editors and Convertors
# Upstream license specification: BSD-2-Clause
License: BSD-2-Clause
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
#
Patch0: rav1e-0.1.0-build_nasm_debug.patch
#
BuildRequires: cargo-c
BuildRequires: nasm
BuildRequires: rust-packaging

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:adec5c0f6fa1bedc05a095e4283efc764dc8c8b5ff3580e4dc242b52380cf7a0
size 9446460
oid sha256:bcafdbb6c910e93764364ab260494503a89b236a5e30db4ca8343cf599d0fd1b
size 10053068