c5540be
#global _with_tests 1
8f1ae30
#global _with_ffmpeg 1
8f1ae30
#global _with_ImageMagick 1
8f1ae30
8f1ae30
Name:       vapoursynth
8f1ae30
Version:    48
92baa57
Release:    10%{?dist}
c5540be
Summary:    Video processing framework with simplicity in mind
8f1ae30
License:    LGPLv2
8f1ae30
URL:        http://www.vapoursynth.com
8f1ae30
8f1ae30
Source0:    https://github.com/%{name}/%{name}/archive/R%{version}/%{name}-R%{version}.tar.gz
8f1ae30
Patch0:     %{name}-version-info.patch
8f1ae30
Patch1:     https://github.com/vapoursynth/vapoursynth/commit/a53ed4dda74d61d4cb56842dc0c6e6e7c3870e11.patch#/%{name}-python38.patch
92baa57
Patch2:     %{name}-gcc11.patch
8f1ae30
2d74286
ExclusiveArch:  %{ix86} x86_64
2d74286
8f1ae30
BuildRequires:  autoconf
8f1ae30
BuildRequires:  automake
8f1ae30
BuildRequires:  gcc-c++
8f1ae30
BuildRequires:  libtool
8f1ae30
BuildRequires:  nasm
8f1ae30
BuildRequires:  pkgconfig(python3)
8f1ae30
BuildRequires:  pkgconfig(tesseract)
8f1ae30
BuildRequires:  pkgconfig(zimg)
b21b5be
BuildRequires:  python3
8f1ae30
BuildRequires:  python3-Cython
8f1ae30
BuildRequires:  python3-setuptools
8f1ae30
c5540be
%{?_with_tests:
c5540be
BuildRequires:  %{name}-devel
c5540be
BuildRequires:  python3dist(pytest)
c5540be
}
c5540be
8f1ae30
%{?_with_ImageMagick:
8f1ae30
BuildRequires:  pkgconfig(Magick++) >= 7.0
8f1ae30
}
8f1ae30
8f1ae30
%{?_with_ffmpeg:
8f1ae30
BuildRequires:  pkgconfig(libass)
8f1ae30
BuildRequires:  pkgconfig(libavcodec)
8f1ae30
BuildRequires:  pkgconfig(libavformat)
8f1ae30
BuildRequires:  pkgconfig(libavutil)
8f1ae30
}
8f1ae30
8f1ae30
%description
c5540be
VapourSynth is an application for video manipulation. Or a plugin. Or a library.
c5540be
It’s hard to tell because it has a core library written in C++ and a Python
c5540be
module to allow video scripts to be created.
8f1ae30
8f1ae30
c5540be
%package        libs
c5540be
Summary:        VapourSynth's core library with a C++ API
c5540be
Obsoletes:      lib%{name} < %{version}-%{release}
c5540be
Provides:       lib%{name} == %{version}-%{release}
c5540be
c5540be
%description    libs
8f1ae30
VapourSynth's core library with a C++ API.
8f1ae30
c5540be
c5540be
%package -n     python3-%{name}
c5540be
Summary:        Python interface for VapourSynth
8f1ae30
8f1ae30
%description -n python3-%{name}
8f1ae30
Python interface for VapourSynth/VSSCript.
8f1ae30
8f1ae30
c5540be
%package        devel
c5540be
Summary:        Development files for %{name}
c5540be
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c5540be
c5540be
%description    devel
8f1ae30
Development files for %{name}.
8f1ae30
8f1ae30
c5540be
%package        tools
c5540be
Summary:        Extra tools for VapourSynth
c5540be
c5540be
%description    tools
8f1ae30
This package contains the vspipe tool for interfacing with VapourSynth.
8f1ae30
8f1ae30
c5540be
%package        plugins
c5540be
Summary:        VapourSynth plugins
cdc0af2
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c5540be
c5540be
%description    plugins
8f1ae30
VapourSynth plugins.
8f1ae30
c5540be
8f1ae30
%prep
8f1ae30
%autosetup -p1 -n %{name}-R%{version}
8f1ae30
c5540be
8f1ae30
%build
8f1ae30
autoreconf -vif
8f1ae30
%configure \
8f1ae30
    --disable-static \
8f1ae30
    --enable-x86-asm \
8f1ae30
    --enable-core \
8f1ae30
    --enable-vsscript \
8f1ae30
    --enable-vspipe \
8f1ae30
    --enable-python-module \
8f1ae30
    --enable-eedi3 \
8f1ae30
    --%{?_with_ImageMagick:enable}%{!?_with_ImageMagick:disable}-imwri \
8f1ae30
    --enable-miscfilters \
8f1ae30
    --enable-morpho \
8f1ae30
    --enable-ocr \
8f1ae30
    --enable-removegrain \
8f1ae30
    --%{?_with_ffmpeg:enable}%{!?_with_ffmpeg:disable}-subtext \
8f1ae30
    --enable-vinverse \
8f1ae30
    --enable-vivtc \
8f1ae30
8f1ae30
%make_build
8f1ae30
c5540be
8f1ae30
%install
8f1ae30
%py3_install
8f1ae30
%make_install
8f1ae30
find %{buildroot} -type f -name "*.la" -delete
8f1ae30
8f1ae30
# Let RPM pick up docs in the files section
8f1ae30
rm -fr %{buildroot}%{_docdir}/%{name}
8f1ae30
8f1ae30
%ldconfig_scriptlets libs
8f1ae30
%ldconfig_scriptlets -n python3-%{name}
8f1ae30
c5540be
c5540be
%{?_with_tests:
c5540be
%check
c5540be
%{python3} -m pytest -v
c5540be
}
c5540be
c5540be
8f1ae30
%files libs
8f1ae30
%doc ChangeLog
8f1ae30
%license COPYING.LGPLv2.1 ofl.txt
8f1ae30
%dir %{_libdir}/%{name}
8f1ae30
%{_libdir}/lib%{name}.so.*
8f1ae30
%{_libdir}/lib%{name}-script.so.*
8f1ae30
8f1ae30
%files -n python3-%{name}
8f1ae30
%{python3_sitearch}/%{name}.so
8f1ae30
%{python3_sitearch}/VapourSynth-*.egg-info
8f1ae30
8f1ae30
%files devel
c5540be
%{_includedir}/%{name}/
8f1ae30
%{_libdir}/lib%{name}.so
8f1ae30
%{_libdir}/lib%{name}-script.so
8f1ae30
%{_libdir}/pkgconfig/%{name}.pc
8f1ae30
%{_libdir}/pkgconfig/%{name}-script.pc
8f1ae30
8f1ae30
%files tools
8f1ae30
%{_bindir}/vspipe
8f1ae30
8f1ae30
%files plugins
8f1ae30
%{_libdir}/%{name}/lib*.so
8f1ae30
c5540be
8f1ae30
%changelog
92baa57
* Sat Oct 17 2020 Jeff Law <law@redhat.com> - 48-10
92baa57
- Fix missing #include for gcc-11
92baa57
32e61f7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 48-9
32e61f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
32e61f7
2648d17
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 48-8
2648d17
- Rebuilt for Python 3.9
2648d17
cdc0af2
* Sat Mar 07 2020 Simone Caronni <negativo17@gmail.com> - 48-7
cdc0af2
- Fix broken dependency.
cdc0af2
d9bfdd6
* Sat Feb 29 2020 Simone Caronni <negativo17@gmail.com> - 48-6
d9bfdd6
- Make it exclusive for i686/x86_64.
d9bfdd6
- Fix build on RHEL/CentOS 8.
d9bfdd6
c5540be
* Tue Feb 25 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 48-5
c5540be
- Add tests
c5540be
- Cosmetic spec file improvements
c5540be
8f1ae30
* Thu Feb 20 2020 Simone Caronni <negativo17@gmail.com> - 48-4
8f1ae30
- More review fixes.
8f1ae30
- Use upstream patch for Python 3.8.
8f1ae30
8f1ae30
* Fri Feb 07 2020 Simone Caronni <negativo17@gmail.com> - 48-3
8f1ae30
- Review fixes.
8f1ae30
8f1ae30
* Sun Jan 26 2020 Simone Caronni <negativo17@gmail.com> - 48-2
8f1ae30
- Move script library into main library package.
8f1ae30
- Fix build with Python 3.8.
8f1ae30
8f1ae30
* Thu Jan 16 2020 Simone Caronni <negativo17@gmail.com> - 48-1
8f1ae30
- First build.