3 %bcond_without doc # documentation
4 %bcond_without ffmpeg # subtext plugin (libass+ffmpeg based)
5 %bcond_with im # imwri plugin (requires ImageMagick with Q16 or Q32 and HDRI support)
6 %bcond_with sse # use SSE/SSE2 instructions on x86 (no runtime detection)
7 %bcond_without static_libs # static libraries
9 %ifarch pentium4 %{x8664}
10 # x32 asm is not supported (as of 38)
13 Summary: A video processing framework with simplicity in mind
14 Summary(pl.UTF-8): Szkielet do przetwarzania obrazu stworzony z myślą o prostocie
20 #Source0Download: https://github.com/vapoursynth/vapoursynth/releases
21 Source0: https://github.com/vapoursynth/vapoursynth/archive/R%{version}/%{name}-%{version}.tar.gz
22 # Source0-md5: 4acbd7521e0aa3d403c93532271d6880
23 Patch0: %{name}-genericarch.patch
24 Patch1: python-3.8.patch
25 Patch2: %{name}-sse2.patch
26 URL: http://www.vapoursynth.com/
27 %{?with_im:BuildRequires: ImageMagick-c++-devel >= 1:7}
28 BuildRequires: autoconf >= 2.50
29 BuildRequires: automake >= 1:1.11
30 # libavcodec libavformat libavutil
31 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
32 %{?with_ffmpeg:BuildRequires: libass-devel}
33 BuildRequires: libstdc++-devel >= 6:4.8
34 BuildRequires: libtool >= 2:2
38 BuildRequires: pkgconfig
39 BuildRequires: python3-Cython
40 BuildRequires: python3-devel >= 1:3.2
41 BuildRequires: sed >= 4.0
42 %{?with_doc:BuildRequires: sphinx-pdg}
43 BuildRequires: tesseract-devel >= 3
44 BuildRequires: zimg-devel >= 2.5
46 Requires: cpuinfo(sse2)
48 Requires: python3-libs >= 1:3.2
51 Obsoletes: vapoursynth-plugin-imwri
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 # non-function std::__once_call, std::__once_callable symbols
56 %define skip_post_check_so libvapoursynth-script.so.*
59 VapourSynth is an application for video manipulation. Or a plugin. Or
60 a library. It's hard to tell because it has a core library written in
61 C++ and a Python module to allow video scripts to be created.
63 %description -l pl.UTF-8
64 VapourSynth to aplikacja do obróbki obrazu. Albo wtyczka. Albo
65 biblioteka. Trudno stwierdzić, ponieważ ma główną bibliotekę napisaną
66 w C++ oraz moduł Pythona pozwalający na tworzenie skryptów do obrazu.
69 Summary: Image reader/writer plugin for VapourSynth
70 Summary(pl.UTF-8): Wtyczka VapourSynth odczytująca i zapisują obrazy
72 Requires: %{name} = %{version}-%{release}
74 %description plugin-imwri
75 Image reader/writer plugin for VapourSynth.
77 %description plugin-imwri -l pl.UTF-8
78 Wtyczka VapourSynth odczytująca i zapisują obrazy.
81 Summary: OCR plugin for VapourSynth
82 Summary(pl.UTF-8): Wtyczka OCR dla VapourSyntha
84 Requires: %{name} = %{version}-%{release}
86 %description plugin-ocr
87 OCR plugin for VapourSynth.
89 %description plugin-ocr -l pl.UTF-8
90 Wtyczka OCR dla VapourSyntha.
92 %package plugin-subtext
93 Summary: Subtitle rendering plugin for VapourSynth
94 Summary(pl.UTF-8): Wtyczka VapourSynth nanosząca podpisy
96 Requires: %{name} = %{version}-%{release}
98 %description plugin-subtext
99 Subtitle rendering plugin for VapourSynth.
101 %description plugin-subtext -l pl.UTF-8
102 Wtyczka VapourSynth nanosząca podpisy.
105 Summary: Header files for VapourSynth libraries
106 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VapourSynth
107 Group: Development/Libraries
108 Requires: %{name} = %{version}-%{release}
109 Requires: python3-devel >= 1:3.2
110 Requires: zimg-devel >= 2.5
113 Header files for VapourSynth libraries.
115 %description devel -l pl.UTF-8
116 Pliki nagłówkowe bibliotek VapourSynth.
119 Summary: Static VapourSynth libraries
120 Summary(pl.UTF-8): Statyczne biblioteki VapourSynth
121 Group: Development/Libraries
122 Requires: %{name}-devel = %{version}-%{release}
125 Static VapourSynth libraries.
127 %description static -l pl.UTF-8
128 Statyczne biblioteki VapourSynth.
131 Summary: Documentation for VapourSynth library
132 Summary(pl.UTF-8): Dokumentacja do biblioteki VapourSynth
134 %if "%{_rpmversion}" >= "5"
139 Documentation for VapourSynth library.
141 %description doc -l pl.UTF-8
142 Dokumentacja do biblioteki VapourSynth.
145 %setup -q -n %{name}-R%{version}
147 %if "%{py3_ver}" >= "3.8"
153 %{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
162 %{!?with_im:--disable-imwri} \
163 --disable-silent-rules \
164 %{!?with_ffmpeg:--disable-subtext} \
165 %{!?with_static_libs:--disable-static} \
166 %{!?with_sse:--disable-x86-asm}
170 %{__make} -C doc html
174 rm -rf $RPM_BUILD_ROOT
177 DESTDIR=$RPM_BUILD_ROOT
179 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la
180 # obsoleted by pkg-config
181 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la
183 %{__rm} $RPM_BUILD_ROOT%{_libdir}/vapoursynth/*.la
186 rm -rf $RPM_BUILD_ROOT
188 %post -p /sbin/ldconfig
189 %postun -p /sbin/ldconfig
192 %defattr(644,root,root,755)
193 %doc ChangeLog ofl.txt
194 %attr(755,root,root) %{_bindir}/vspipe
195 %attr(755,root,root) %{_libdir}/libvapoursynth.so
196 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so.*.*.*
197 %attr(755,root,root) %ghost %{_libdir}/libvapoursynth-script.so.0
198 %attr(755,root,root) %{py3_sitedir}/vapoursynth.so
199 %dir %{_libdir}/vapoursynth
200 %attr(755,root,root) %{_libdir}/vapoursynth/libeedi3.so
201 %attr(755,root,root) %{_libdir}/vapoursynth/libmiscfilters.so
202 %attr(755,root,root) %{_libdir}/vapoursynth/libmorpho.so
203 %attr(755,root,root) %{_libdir}/vapoursynth/libremovegrain.so
204 %attr(755,root,root) %{_libdir}/vapoursynth/libvinverse.so
205 %attr(755,root,root) %{_libdir}/vapoursynth/libvivtc.so
209 %defattr(644,root,root,755)
210 # R: ImageMagick-c++ >= 1:7
211 %attr(755,root,root) %{_libdir}/vapoursynth/libimwri.so
215 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/vapoursynth/libocr.so
220 %files plugin-subtext
221 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/vapoursynth/libsubtext.so
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so
229 %{_includedir}/vapoursynth
230 %{_pkgconfigdir}/vapoursynth.pc
231 %{_pkgconfigdir}/vapoursynth-script.pc
233 %if %{with static_libs}
235 %defattr(644,root,root,755)
236 %{_libdir}/libvapoursynth.a
237 %{_libdir}/libvapoursynth-script.a
242 %defattr(644,root,root,755)
243 %doc doc/_build/html/{_static,api,functions,plugins,*.html,*.js}