Add review patch from Artem

This commit is contained in:
Simone Caronni 2020-02-29 16:57:11 +01:00
parent 8f1ae30cbf
commit c5540be3d5

View File

@ -1,10 +1,11 @@
#global _with_tests 1
#global _with_ffmpeg 1
#global _with_ImageMagick 1
Name: vapoursynth
Version: 48
Release: 4%{?dist}
Summary: A video processing framework with simplicity in mind
Release: 5%{?dist}
Summary: Video processing framework with simplicity in mind
License: LGPLv2
URL: http://www.vapoursynth.com
@ -23,6 +24,11 @@ BuildRequires: pkgconfig(zimg)
BuildRequires: python3-Cython
BuildRequires: python3-setuptools
%{?_with_tests:
BuildRequires: %{name}-devel
BuildRequires: python3dist(pytest)
}
%{?_with_ImageMagick:
BuildRequires: pkgconfig(Magick++) >= 7.0
}
@ -35,47 +41,54 @@ BuildRequires: pkgconfig(libavutil)
}
%description
VapourSynth is an application for video manipulation. Or a plugin. Or a
library. Its hard to tell because it has a core library written in C++ and a
Python module to allow video scripts to be created.
VapourSynth is an application for video manipulation. Or a plugin. Or a library.
Its hard to tell because it has a core library written in C++ and a Python
module to allow video scripts to be created.
%package libs
Summary: VapourSynth's core library with a C++ API
Obsoletes: lib%{name} < %{version}-%{release}
Provides: lib%{name} == %{version}-%{release}
%description libs
%package libs
Summary: VapourSynth's core library with a C++ API
Obsoletes: lib%{name} < %{version}-%{release}
Provides: lib%{name} == %{version}-%{release}
%description libs
VapourSynth's core library with a C++ API.
%package -n python3-%{name}
Summary: Python interface for VapourSynth
%package -n python3-%{name}
Summary: Python interface for VapourSynth
%description -n python3-%{name}
Python interface for VapourSynth/VSSCript.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
Development files for %{name}.
%package tools
Summary: Extra tools for VapourSynth
%description tools
%package tools
Summary: Extra tools for VapourSynth
%description tools
This package contains the vspipe tool for interfacing with VapourSynth.
%package plugins
Summary: VapourSynth plugins
Requires: libvapoursynth%{?_isa} = %{version}-%{release}
%description plugins
%package plugins
Summary: VapourSynth plugins
Requires: libvapoursynth%{?_isa} = %{version}-%{release}
%description plugins
VapourSynth plugins.
%prep
%autosetup -p1 -n %{name}-R%{version}
%build
autoreconf -vif
%configure \
@ -97,6 +110,7 @@ autoreconf -vif
%make_build
%install
%py3_install
%make_install
@ -108,6 +122,13 @@ rm -fr %{buildroot}%{_docdir}/%{name}
%ldconfig_scriptlets libs
%ldconfig_scriptlets -n python3-%{name}
%{?_with_tests:
%check
%{python3} -m pytest -v
}
%files libs
%doc ChangeLog
%license COPYING.LGPLv2.1 ofl.txt
@ -120,7 +141,7 @@ rm -fr %{buildroot}%{_docdir}/%{name}
%{python3_sitearch}/VapourSynth-*.egg-info
%files devel
%{_includedir}/%{name}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-script.so
%{_libdir}/pkgconfig/%{name}.pc
@ -132,7 +153,12 @@ rm -fr %{buildroot}%{_docdir}/%{name}
%files plugins
%{_libdir}/%{name}/lib*.so
%changelog
* Tue Feb 25 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 48-5
- Add tests
- Cosmetic spec file improvements
* Thu Feb 20 2020 Simone Caronni <negativo17@gmail.com> - 48-4
- More review fixes.
- Use upstream patch for Python 3.8.