that could cause errors with certain shader compilers. OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/movit?expand=0&rev=42
108 lines
3.1 KiB
RPMSpec
108 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package movit
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _sonum 8
|
|
Name: movit
|
|
Version: 1.7.1
|
|
Release: 0
|
|
Summary: GPU video filter library
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://movit.sesse.net
|
|
Source0: %{name}-%{version}.tar.xz
|
|
BuildRequires: libtool
|
|
BuildRequires: make
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(eigen3) >= 3.4.0
|
|
BuildRequires: pkgconfig(epoxy)
|
|
BuildRequires: pkgconfig(fftw3)
|
|
BuildRequires: pkgconfig(sdl2)
|
|
%if 0%{?suse_version} == 1315
|
|
# For SLE12
|
|
BuildRequires: gcc7-c++
|
|
%else
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
|
|
%description
|
|
Movit is a library for video filters. It uses the GPU present in many
|
|
computers to accelerate computation of common filters and
|
|
transitions, facilitating real-time HD video editing.
|
|
|
|
%package -n libmovit%{_sonum}
|
|
Summary: GPU video filter library
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
# Shaders used to be split; Ensure upgrade path until Leap 15.5 EOL (Dec. 2024).
|
|
Provides: %{name}%{_sonum}-data = %{version}
|
|
Obsoletes: %{name}%{_sonum}-data < %{version}
|
|
|
|
%description -n libmovit%{_sonum}
|
|
Movit is a library for video filters. It uses the GPU present in many
|
|
computers to accelerate computation of common filters and
|
|
transitions, facilitating real-time HD video editing.
|
|
|
|
This package contains the Movit shared library.
|
|
|
|
%package devel
|
|
Summary: Development files for the Movit GPU video filter library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libmovit%{_sonum} = %{version}
|
|
|
|
%description devel
|
|
Movit is a library for video filters. It uses the GPU present in many
|
|
computers to accelerate computation of common filters and
|
|
transitions, facilitating real-time HD video editing.
|
|
|
|
This package contains the development files (library and header files).
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# For SLE12, force use of GCC 7
|
|
test -x "$(type -p gcc-7)" && export CC=gcc-7
|
|
test -x "$(type -p g++-7)" && export CXX=g++-7
|
|
|
|
./autogen.sh
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags} TESTS=
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}%{_libdir}/libmovit.la
|
|
|
|
%post -n libmovit%{_sonum} -p /sbin/ldconfig
|
|
%postun -n libmovit%{_sonum} -p /sbin/ldconfig
|
|
|
|
%files -n libmovit%{_sonum}
|
|
%license COPYING
|
|
%doc README NEWS
|
|
%{_libdir}/libmovit.so.*
|
|
|
|
%files devel
|
|
%license COPYING
|
|
%{_libdir}/libmovit.so
|
|
%{_includedir}/%{name}
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|