Add review patch from Artem

epel9
Simone Caronni 5 years ago
parent 8f1ae30cbf
commit c5540be3d5

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

Loading…
Cancel
Save