3 %bcond_without doc # documentation
4 %bcond_without ffmpeg # subtext plugin (libass+ffmpeg based)
5 %bcond_with sse # use SSE/SSE2 instructions on x86 (no runtime detection)
6 %bcond_without static_libs # static libraries
8 %ifarch pentium4 %{x8664}
9 # x32 asm is not supported (as of 38)
12 Summary: A video processing framework with simplicity in mind
13 Summary(pl.UTF-8): Szkielet do przetwarzania obrazu stworzony z myślą o prostocie
19 #Source0Download: https://github.com/vapoursynth/vapoursynth/releases
20 Source0: https://github.com/vapoursynth/vapoursynth/archive/R%{version}/%{name}-%{version}.tar.gz
21 # Source0-md5: 78d0183f0afd3702f3edc176b2491f5d
22 Patch0: %{name}-genericarch.patch
23 URL: http://www.vapoursynth.com/
24 BuildRequires: ImageMagick-c++-devel >= 1:7
25 BuildRequires: autoconf >= 2.50
26 BuildRequires: automake >= 1:1.11
27 # libavcodec libavformat libavutil
28 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
29 %{?with_ffmpeg:BuildRequires: libass-devel}
30 BuildRequires: libstdc++-devel >= 6:4.8
31 BuildRequires: libtool >= 2:2
32 BuildRequires: pkgconfig
33 BuildRequires: python3-Cython
34 BuildRequires: python3-devel >= 1:3.2
35 BuildRequires: sed >= 4.0
36 %{?with_doc:BuildRequires: sphinx-pdg}
37 BuildRequires: tesseract-devel >= 3
41 BuildRequires: zimg-devel >= 2.5
43 Requires: cpuinfo(sse2)
45 Requires: python3-libs >= 1:3.2
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 # non-function std::__once_call, std::__once_callable symbols
50 %define skip_post_check_so libvapoursynth-script.so.*
53 VapourSynth is an application for video manipulation. Or a plugin. Or
54 a library. It's hard to tell because it has a core library written in
55 C++ and a Python module to allow video scripts to be created.
57 %description -l pl.UTF-8
58 VapourSynth to aplikacja do obróbki obrazu. Albo wtyczka. Albo
59 biblioteka. Trudno stwierdzić, ponieważ ma główną bibliotekę napisaną
60 w C++ oraz moduł Pythona pozwalający na tworzenie skryptów do obrazu.
63 Summary: Image reader/writer plugin for VapourSynth
64 Summary(pl.UTF-8): Wtyczka VapourSynth odczytująca i zapisują obrazy
66 Requires: %{name} = %{version}-%{release}
68 %description plugin-imwri
69 Image reader/writer plugin for VapourSynth.
71 %description plugin-imwri -l pl.UTF-8
72 Wtyczka VapourSynth odczytująca i zapisują obrazy.
75 Summary: OCR plugin for VapourSynth
76 Summary(pl.UTF-8): Wtyczka OCR dla VapourSyntha
78 Requires: %{name} = %{version}-%{release}
80 %description plugin-ocr
81 OCR plugin for VapourSynth.
83 %description plugin-ocr -l pl.UTF-8
84 Wtyczka OCR dla VapourSyntha.
86 %package plugin-subtext
87 Summary: Subtitle rendering plugin for VapourSynth
88 Summary(pl.UTF-8): Wtyczka VapourSynth nanosząca podpisy
90 Requires: %{name} = %{version}-%{release}
92 %description plugin-subtext
93 Subtitle rendering plugin for VapourSynth.
95 %description plugin-subtext -l pl.UTF-8
96 Wtyczka VapourSynth nanosząca podpisy.
99 Summary: Header files for VapourSynth libraries
100 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VapourSynth
101 Group: Development/Libraries
102 Requires: %{name} = %{version}-%{release}
103 Requires: python3-devel >= 1:3.2
104 Requires: zimg-devel >= 2.5
107 Header files for VapourSynth libraries.
109 %description devel -l pl.UTF-8
110 Pliki nagłówkowe bibliotek VapourSynth.
113 Summary: Static VapourSynth libraries
114 Summary(pl.UTF-8): Statyczne biblioteki VapourSynth
115 Group: Development/Libraries
116 Requires: %{name}-devel = %{version}-%{release}
119 Static VapourSynth libraries.
121 %description static -l pl.UTF-8
122 Statyczne biblioteki VapourSynth.
125 Summary: Documentation for VapourSynth library
126 Summary(pl.UTF-8): Dokumentacja do biblioteki VapourSynth
128 %if "%{_rpmversion}" >= "5"
133 Documentation for VapourSynth library.
135 %description doc -l pl.UTF-8
136 Dokumentacja do biblioteki VapourSynth.
139 %setup -q -n %{name}-R%{version}
143 %{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
152 --disable-silent-rules \
153 %{!?with_ffmpeg:--disable-subtext} \
154 %{!?with_static_libs:--disable-static} \
155 %{!?with_sse:--disable-x86-asm}
159 %{__make} -C doc html
163 rm -rf $RPM_BUILD_ROOT
166 DESTDIR=$RPM_BUILD_ROOT
168 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la
169 # obsoleted by pkg-config
170 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la
172 %{__rm} $RPM_BUILD_ROOT%{_libdir}/vapoursynth/*.la
175 rm -rf $RPM_BUILD_ROOT
177 %post -p /sbin/ldconfig
178 %postun -p /sbin/ldconfig
181 %defattr(644,root,root,755)
182 %doc ChangeLog ofl.txt
183 %attr(755,root,root) %{_bindir}/vspipe
184 %attr(755,root,root) %{_libdir}/libvapoursynth.so
185 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so.*.*.*
186 %attr(755,root,root) %ghost %{_libdir}/libvapoursynth-script.so.0
187 %attr(755,root,root) %{py3_sitedir}/vapoursynth.so
188 %dir %{_libdir}/vapoursynth
189 %attr(755,root,root) %{_libdir}/vapoursynth/libeedi3.so
190 %attr(755,root,root) %{_libdir}/vapoursynth/libmiscfilters.so
191 %attr(755,root,root) %{_libdir}/vapoursynth/libmorpho.so
192 %attr(755,root,root) %{_libdir}/vapoursynth/libremovegrain.so
193 %attr(755,root,root) %{_libdir}/vapoursynth/libvinverse.so
194 %attr(755,root,root) %{_libdir}/vapoursynth/libvivtc.so
197 %defattr(644,root,root,755)
198 # R: ImageMagick-c++ >= 1:7
199 %attr(755,root,root) %{_libdir}/vapoursynth/libimwri.so
202 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/vapoursynth/libocr.so
207 %files plugin-subtext
208 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/vapoursynth/libsubtext.so
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/libvapoursynth-script.so
216 %{_includedir}/vapoursynth
217 %{_pkgconfigdir}/vapoursynth.pc
218 %{_pkgconfigdir}/vapoursynth-script.pc
220 %if %{with static_libs}
222 %defattr(644,root,root,755)
223 %{_libdir}/libvapoursynth.a
224 %{_libdir}/libvapoursynth-script.a
229 %defattr(644,root,root,755)
230 %doc doc/_build/html/{_static,api,functions,plugins,*.html,*.js}