Use openh264_version macro instead of the version macro

We can't use %{version} in %files as it gets redefined by the gstreamer
subpackage.
epel9
Kalev Lember 8 years ago
parent 60b5e835e4
commit 1cd62a3bd6

@ -3,18 +3,19 @@
%global commit1 c5f1d0f3213178818cbfb3e16f31d07328980560
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
%global openh264_version 1.7.0
%global gst_version 1.10.4
# needs to be bumped for every rebuild
%global gst_release 1
Name: openh264
Version: 1.7.0
Version: %{openh264_version}
Release: 1%{?dist}
Summary: H.264 codec library
License: BSD
URL: http://www.openh264.org/
Source0: https://github.com/cisco/openh264/archive/v%{version}/openh264-%{version}.tar.gz
Source0: https://github.com/cisco/openh264/archive/v%{openh264_version}/openh264-%{openh264_version}.tar.gz
Source1: https://github.com/mozilla/gmp-api/archive/%{commit1}/gmp-api-%{shortcommit1}.tar.gz
# The source is:
# http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%%{gst_version}.tar.xz
@ -35,7 +36,7 @@ suitable for use in real time applications such as WebRTC.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{openh264_version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
@ -44,7 +45,7 @@ developing applications that use %{name}.
%package -n mozilla-openh264
Summary: H.264 codec support for Mozilla browsers
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{openh264_version}-%{release}
Requires: mozilla-filesystem%{?_isa}
%description -n mozilla-openh264
@ -199,7 +200,7 @@ popd
%license LICENSE
%doc README.md
%{_libdir}/libopenh264.so.4
%{_libdir}/libopenh264.so.%{version}
%{_libdir}/libopenh264.so.%{openh264_version}
%files devel
%{_includedir}/wels/

Loading…
Cancel
Save