-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgstreamer1-libav.spec
52 lines (43 loc) · 1.76 KB
/
gstreamer1-libav.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Name: gstreamer1-libav
Version: 1.24.9
Release: 1%{?dist}
Summary: GStreamer 1.0 libav-based plug-ins
Group: Applications/Multimedia
License: LGPLv2+
URL: http://gstreamer.freedesktop.org/
Source0: http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-%{version}.tar.xz
BuildRequires: gstreamer-dev
BuildRequires: gst-plugins-base-dev
BuildRequires: orc-dev
BuildRequires: bzip2-dev
BuildRequires: zlib-dev
BuildRequires: not-ffmpeg-dev
BuildRequires: yasm
BuildRequires: meson
%description
libav gstreamer plugins
%prep
%setup -n gst-libav-%{version}
%build
export LANG=C.UTF-8
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
export CFLAGS="$CFLAGS -O3 -Ofast -falign-functions=32 -ffat-lto-objects -flto=auto -fno-semantic-interposition -mprefer-vector-width=256 "
export FCFLAGS="$FFLAGS -O3 -Ofast -falign-functions=32 -ffat-lto-objects -flto=auto -fno-semantic-interposition -mprefer-vector-width=256 "
export FFLAGS="$FFLAGS -O3 -Ofast -falign-functions=32 -ffat-lto-objects -flto=auto -fno-semantic-interposition -mprefer-vector-width=256 "
export CXXFLAGS="$CXXFLAGS -O3 -Ofast -falign-functions=32 -ffat-lto-objects -flto=auto -fno-semantic-interposition -mprefer-vector-width=256 "
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" meson \
--libdir=lib64 --prefix=/usr \
--buildtype=plain \
-D package-name="gst-libav plugin compiled by ClearFraction" \
-D package-origin="https://github.com/clearfraction" \
-D doc=disabled builddir
ninja -v -C builddir
%install
DESTDIR=%{buildroot} ninja -C builddir install
%files
%{_libdir}/gstreamer-1.0/libgstlibav.so
%changelog
# based on https://github.com/UnitedRPMs/gstreamer1-libav