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 URL: http://www.vapoursynth.com/
26 %{?with_im:BuildRequires: ImageMagick-c++-devel >= 1:7}
27 BuildRequires: autoconf >= 2.50
28 BuildRequires: automake >= 1:1.11
29 # libavcodec libavformat libavutil
30 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
31 %{?with_ffmpeg:BuildRequires: libass-devel}
32 BuildRequires: libstdc++-devel >= 6:4.8
33 BuildRequires: libtool >= 2:2
37 BuildRequires: pkgconfig
38 BuildRequires: python3-Cython
39 BuildRequires: python3-devel >= 1:3.2
40 BuildRequires: sed >= 4.0
41 %{?with_doc:BuildRequires: sphinx-pdg}
42 BuildRequires: tesseract-devel >= 3
43 BuildRequires: zimg-devel >= 2.5
45 Requires: cpuinfo(sse2)
47 Requires: python3-libs >= 1:3.2
50 Obsoletes: vapoursynth-plugin-imwri
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 # non-function std::__once_call, std::__once_callable symbols
55 %define skip_post_check_so libvapoursynth-script.so.*
58 VapourSynth is an application for video manipulation. Or a plugin. Or
59 a library. It's hard to tell because it has a core library written in
60 C++ and a Python module to allow video scripts to be created.
62 %description -l pl.UTF-8
63 VapourSynth to aplikacja do obróbki obrazu. Albo wtyczka. Albo
64 biblioteka. Trudno stwierdzić, ponieważ ma główną bibliotekę napisaną
65 w C++ oraz moduł Pythona pozwalający na tworzenie skryptów do obrazu.
68 Summary: Image reader/writer plugin for VapourSynth
69 Summary(pl.UTF-8): Wtyczka VapourSynth odczytująca i zapisują obrazy
71 Requires: %{name} = %{version}-%{release}
73 %description plugin-imwri
74 Image reader/writer plugin for VapourSynth.
76 %description plugin-imwri -l pl.UTF-8
77 Wtyczka VapourSynth odczytująca i zapisują obrazy.
80 Summary: OCR plugin for VapourSynth
81 Summary(pl.UTF-8): Wtyczka OCR dla VapourSyntha
83 Requires: %{name} = %{version}-%{release}
85 %description plugin-ocr
86 OCR plugin for VapourSynth.
88 %description plugin-ocr -l pl.UTF-8
89 Wtyczka OCR dla VapourSyntha.
91 %package plugin-subtext
92 Summary: Subtitle rendering plugin for VapourSynth
93 Summary(pl.UTF-8): Wtyczka VapourSynth nanosząca podpisy
95 Requires: %{name} = %{version}-%{release}
97 %description plugin-subtext
98 Subtitle rendering plugin for VapourSynth.
100 %description plugin-subtext -l pl.UTF-8
101 Wtyczka VapourSynth nanosząca podpisy.
104 Summary: Header files for VapourSynth libraries
105 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VapourSynth
106 Group: Development/Libraries
107 Requires: %{name} = %{version}-%{release}
108 Requires: python3-devel >= 1:3.2
109 Requires: zimg-devel >= 2.5
112 Header files for VapourSynth libraries.
114 %description devel -l pl.UTF-8
115 Pliki nagłówkowe bibliotek VapourSynth.
118 Summary: Static VapourSynth libraries
119 Summary(pl.UTF-8): Statyczne biblioteki VapourSynth
120 Group: Development/Libraries
121 Requires: %{name}-devel = %{version}-%{release}
124 Static VapourSynth libraries.
126 %description static -l pl.UTF-8
127 Statyczne biblioteki VapourSynth.
130 Summary: Documentation for VapourSynth library
131 Summary(pl.UTF-8): Dokumentacja do biblioteki VapourSynth
133 %if "%{_rpmversion}" >= "5"
138 Documentation for VapourSynth library.
140 %description doc -l pl.UTF-8
141 Dokumentacja do biblioteki VapourSynth.
144 %setup -q -n %{name}-R%{version}
146 %if "%{py3_ver}" >= "3.8"
151 %{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
160 %{!?with_im:--disable-imwri} \
161 --disable-silent-rules \
162 %{!?with_ffmpeg:--disable-subtext} \
163 %{!?with_static_libs:--disable-static} \
164 %{!?with_sse:--disable-x86-asm}
168 %{__make} -C doc html
172 rm -rf $RPM_BUILD_ROOT
175 DESTDIR=$RPM_BUILD_ROOT
177 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la
178 # obsoleted by pkg-config
179 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la
181 %{__rm} $RPM_BUILD_ROOT%{_libdir}/vapoursynth/*.la
184 rm -rf $RPM_BUILD_ROOT
186 %post -p /sbin/ldconfig
187 %postun -p /sbin/ldconfig
190 %defattr(644,root,root,755)
191 %doc ChangeLog ofl.txt
192 %attr(755,root,root) %{_bindir}/vspipe
193 %attr(755,root,root) %{_libdir}/libvapoursynth.so
194 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so.*.*.*
195 %attr(755,root,root) %ghost %{_libdir}/libvapoursynth-script.so.0
196 %attr(755,root,root) %{py3_sitedir}/vapoursynth.so
197 %dir %{_libdir}/vapoursynth
198 %attr(755,root,root) %{_libdir}/vapoursynth/libeedi3.so
199 %attr(755,root,root) %{_libdir}/vapoursynth/libmiscfilters.so
200 %attr(755,root,root) %{_libdir}/vapoursynth/libmorpho.so
201 %attr(755,root,root) %{_libdir}/vapoursynth/libremovegrain.so
202 %attr(755,root,root) %{_libdir}/vapoursynth/libvinverse.so
203 %attr(755,root,root) %{_libdir}/vapoursynth/libvivtc.so
207 %defattr(644,root,root,755)
208 # R: ImageMagick-c++ >= 1:7
209 %attr(755,root,root) %{_libdir}/vapoursynth/libimwri.so
213 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/vapoursynth/libocr.so
218 %files plugin-subtext
219 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/vapoursynth/libsubtext.so
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so
227 %{_includedir}/vapoursynth
228 %{_pkgconfigdir}/vapoursynth.pc
229 %{_pkgconfigdir}/vapoursynth-script.pc
231 %if %{with static_libs}
233 %defattr(644,root,root,755)
234 %{_libdir}/libvapoursynth.a
235 %{_libdir}/libvapoursynth-script.a
240 %defattr(644,root,root,755)
241 %doc doc/_build/html/{_static,api,functions,plugins,*.html,*.js}