diff --git a/.gitignore b/.gitignore index d86df4d..f0bec5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /noopenh264-6be12bafe243b6b848f5f32103a3cdcfd20ceb34.tar.bz2 +/noopenh264-openh264-2.3.1.tar.bz2 diff --git a/noopenh264.spec b/noopenh264.spec index 4182cc1..6b76967 100644 --- a/noopenh264.spec +++ b/noopenh264.spec @@ -1,18 +1,19 @@ -%global forgeurl https://gitlab.com/freedesktop-sdk/noopenh264 -%global commit 6be12bafe243b6b848f5f32103a3cdcfd20ceb34 -%forgemeta - %global openh264_version 2.3.1 %global openh264_soversion 7 Name: noopenh264 -Version: 0.1 +# 0.1.0 is the project version from meson.build. +# Additionally, we also include the openh264 version as part of the +# version tag. As "openh264" ends with a digit, _ is used as a separator +# between "openh264" and the openh264 version number. +Version: 0.1.0~openh264_%{openh264_version} Release: %autorelease Summary: Fake implementation of the OpenH264 library License: BSD-2-Clause and LGPL-2.1-or-later -URL: %{forgeurl} -Source: %{forgesource} +URL: https://gitlab.com/freedesktop-sdk/noopenh264 +%global tag openh264-%{openh264_version} +Source: %{url}/-/archive/%{tag}/noopenh264-%{tag}.tar.bz2 BuildRequires: gcc-c++ BuildRequires: meson @@ -39,7 +40,7 @@ developing applications that use %{name}. %prep -%forgeautosetup +%autosetup -p1 -n noopenh264-%{tag} %build diff --git a/sources b/sources index a8684d0..054bf08 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (noopenh264-6be12bafe243b6b848f5f32103a3cdcfd20ceb34.tar.bz2) = 66f57f137c2d4e81818549c454c0d5c6e4e67a0520214125b219111fc5164e5b6e0e6553320ac302e8ddac30ba9328b5f900007b440b4aaba8b20767a1525d61 +SHA512 (noopenh264-openh264-2.3.1.tar.bz2) = 5f5c0d18e37a76287d68d87156b9ec1fc677afb1a9f3a0dd2d2090116e392b4cccc501c6451685fca40d35e044fdc897920241f34e4b9b2940edb1e24a715944