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: e6b37c3c7af6902f3835182292668550
23 Patch0: %{name}-sse2.patch
24 URL: http://www.vapoursynth.com/
25 %{?with_im:BuildRequires: ImageMagick-c++-devel >= 1:7}
26 BuildRequires: autoconf >= 2.50
27 BuildRequires: automake >= 1:1.11
28 # libavcodec libavformat libavutil
29 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
30 %{?with_ffmpeg:BuildRequires: libass-devel}
31 BuildRequires: libstdc++-devel >= 6:4.8
32 BuildRequires: libtool >= 2:2
36 BuildRequires: pkgconfig
37 BuildRequires: python3-Cython
38 BuildRequires: python3-devel >= 1:3.2
39 BuildRequires: rpmbuild(macros) >= 1.752
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
136 Documentation for VapourSynth library.
138 %description doc -l pl.UTF-8
139 Dokumentacja do biblioteki VapourSynth.
142 %setup -q -n %{name}-R%{version}
146 %{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
155 %{!?with_im:--disable-imwri} \
156 --disable-silent-rules \
157 %{!?with_ffmpeg:--disable-subtext} \
158 %{!?with_static_libs:--disable-static} \
159 %{!?with_sse:--disable-x86-asm}
163 %{__make} -C doc html
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT
172 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la
173 # obsoleted by pkg-config
174 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la
176 %{__rm} $RPM_BUILD_ROOT%{_libdir}/vapoursynth/*.la
179 rm -rf $RPM_BUILD_ROOT
181 %post -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
185 %defattr(644,root,root,755)
186 %doc ChangeLog README.md
187 %attr(755,root,root) %{_bindir}/vspipe
188 %attr(755,root,root) %{_libdir}/libvapoursynth.so
189 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libvapoursynth-script.so.0
191 %attr(755,root,root) %{py3_sitedir}/vapoursynth.so
192 %dir %{_libdir}/vapoursynth
193 %attr(755,root,root) %{_libdir}/vapoursynth/libeedi3.so
194 %attr(755,root,root) %{_libdir}/vapoursynth/libmiscfilters.so
195 %attr(755,root,root) %{_libdir}/vapoursynth/libmorpho.so
196 %attr(755,root,root) %{_libdir}/vapoursynth/libremovegrain.so
197 %attr(755,root,root) %{_libdir}/vapoursynth/libvinverse.so
198 %attr(755,root,root) %{_libdir}/vapoursynth/libvivtc.so
202 %defattr(644,root,root,755)
203 # R: ImageMagick-c++ >= 1:7
204 %attr(755,root,root) %{_libdir}/vapoursynth/libimwri.so
208 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/vapoursynth/libocr.so
213 %files plugin-subtext
214 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/vapoursynth/libsubtext.so
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so
222 %{_includedir}/vapoursynth
223 %{_pkgconfigdir}/vapoursynth.pc
224 %{_pkgconfigdir}/vapoursynth-script.pc
226 %if %{with static_libs}
228 %defattr(644,root,root,755)
229 %{_libdir}/libvapoursynth.a
230 %{_libdir}/libvapoursynth-script.a
235 %defattr(644,root,root,755)
236 %doc doc/_build/html/{_static,api,functions,plugins,*.html,*.js}