File libavutil-patch.spec of Package libavutil-patch
#
# spec file for package libavutil-patch
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libavutil-patch
Version: 1.0
Release: 0
Summary: A patch for libavutil time header file
License: GPL-2.0
Group: Development/Libraries/C and C++
BuildArch: noarch
BuildRequires: -post-build-checks
%if 0%{?suse_version} && ( 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1315 && 0%{?sle_version} && 0%{?sle_version} >= 120100 ) )
Requires: ffmpeg-devel
%define libpath "ffmpeg/libavutil"
%else
Requires: libavutil-devel
%define libpath "libavutil"
%endif
%description
This package deactivates the time.h header file coming with libavutil.
%prep
%build
%install
%post
%{__mv} %{_includedir}/%{libpath}/time.h %{_includedir}/%{libpath}/time.h_
%postun
%{__mv} %{_includedir}/%{libpath}/time.h_ %{_includedir}/%{libpath}/time.h
%files
%changelog