Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37563695
en ru br
ALT Linux repositórios
S:64-alt1

Group :: Vídeo
RPM: vapoursynth

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define sonamev 0

%def_without tests
%def_with ffmpeg
# waiting ImageMagick >= 7.0
%def_without ImageMagick

Name: vapoursynth
Version: 63
Release: alt1
Summary: Video processing framework with simplicity in mind
License: WTFPL and LGPL-2.1+ and OFL-1.1 and GPL-2.0+ and ISC and MIT
Group: Video
Url: http://www.vapoursynth.com

Packager: Leontiy Volodin <lvol at altlinux.org>

Source: https://github.com/%name/%name/archive/R%version/%name-R%version.tar.gz
Patch: %name-version-info.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: nasm
BuildRequires: pkgconfig(tesseract)
BuildRequires: pkgconfig(zimg)
BuildRequires: python3-module-Cython
BuildRequires: python3-module-setuptools
BuildRequires: glibc-pthread

%if_with tests
BuildRequires: python3-test
BuildRequires: python3-module-pytest
%endif

%if_with ImageMagick
BuildRequires: pkgconfig(Magick++) >= 7.0
%endif

%if_with ffmpeg
BuildRequires: pkgconfig(libass)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
%endif

%description
VapourSynth is an application for video manipulation. Or a plugin. Or a library.
It is hard to tell because it has a core library written in C++ and a Python
module to allow video scripts to be created.

%package -n lib%name%version
Summary: VapourSynth core library with a C++ API
Group: System/Libraries
Provides: lib%name = %version
Obsoletes: lib%name < %version
Requires: lib%name-script%sonamev = %version

%description -n lib%name%version
VapourSynth core library with a C++ API.

%package -n lib%name-script%sonamev
Summary: VapourSynth script library with a C++ API
Group: System/Libraries

%description -n lib%name-script%sonamev
VapourSynth script library with a C++ API.

%package -n python3-module-%name
Summary: Python interface for VapourSynth
Group: Development/Python3

%description -n python3-module-%name
Python interface for VapourSynth/VSSCript.

%package devel
Summary: Development files for %name
Group: Development/Other

%description devel
Development files for %name.

%package tools
Summary: Extra tools for VapourSynth
Group: Video

%description tools
This package contains the vspipe tool for interfacing with VapourSynth.

# %%package plugins

# Summary: VapourSynth plugins
# Group: Video

# %%description plugins

# VapourSynth plugins.

%prep
%setup -n %name-R%version
%patch -p1

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' setup.py

%build
%add_optflags -L/%_lib -lpthread
%autoreconf
%configure \
   --disable-static \
   --enable-x86-asm \
   --enable-core \
   --enable-vsscript \
   --enable-vspipe \
   --enable-python-module \
   --enable-eedi3 \
%if_with ImageMagick
   --imwri \
%endif
   --enable-miscfilters \
   --enable-morpho \
   --enable-ocr \
   --enable-removegrain \
%if_with ffmpeg
   --enable-subtext \
%endif
   --enable-vinverse \
   --enable-vivtc

%make_build LIBDIR=%_libdir
# %%pyproject_build

%install
%__python3 setup.py install --skip-build --root=%buildroot --force
%makeinstall_std
find %buildroot -type f -name "*.la" -delete

# Let RPM pick up docs in the files section

rm -fr %buildroot%_docdir/%name

%if_with tests
%check
python3 -m pytest -v
%endif

%files -n lib%name%version
%doc ChangeLog COPYING.LESSER README.md
%_libdir/lib%name.so.%{version}*

%files -n lib%name-script%sonamev
%_libdir/lib%name-script.so.%{sonamev}*

%files -n python3-module-%name
%python3_sitelibdir/%name.so
%python3_sitelibdir/VapourSynth-*.egg-info

%files devel
%_includedir/%name/
%_libdir/lib%name.so
%_libdir/lib%name-script.so
%_pkgconfigdir/%name.pc
%_pkgconfigdir/%name-script.pc

%files tools
%_bindir/vspipe

# %%files plugins

# %%dir %%_libdir/%%name
# %%_libdir/%%name/lib*.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009