]>
Commit | Line | Data |
---|---|---|
4aa15439 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # documentation | |
4aa15439 JB |
4 | %bcond_with sse # use SSE/SSE2 instructions on x86 (no runtime detection) |
5 | %bcond_without static_libs # static libraries | |
6 | # | |
601fdc1d JB |
7 | %ifarch pentium4 %{x8664} |
8 | # x32 asm is not supported (as of 38) | |
4aa15439 JB |
9 | %define with_sse 1 |
10 | %endif | |
11 | Summary: A video processing framework with simplicity in mind | |
12 | Summary(pl.UTF-8): Szkielet do przetwarzania obrazu stworzony z myślą o prostocie | |
13 | Name: vapoursynth | |
8ecdaf04 JB |
14 | Version: 55 |
15 | Release: 1 | |
4aa15439 JB |
16 | License: LGPL v2.1+ |
17 | Group: Libraries | |
18 | #Source0Download: https://github.com/vapoursynth/vapoursynth/releases | |
19 | Source0: https://github.com/vapoursynth/vapoursynth/archive/R%{version}/%{name}-%{version}.tar.gz | |
8ecdaf04 | 20 | # Source0-md5: 16d1e2806413ddd847728743638027f8 |
e7e4ec47 | 21 | Patch0: %{name}-sse2.patch |
4aa15439 | 22 | URL: http://www.vapoursynth.com/ |
4aa15439 JB |
23 | BuildRequires: autoconf >= 2.50 |
24 | BuildRequires: automake >= 1:1.11 | |
4aa15439 JB |
25 | BuildRequires: libstdc++-devel >= 6:4.8 |
26 | BuildRequires: libtool >= 2:2 | |
49f229e1 JB |
27 | %if %{with sse} |
28 | BuildRequires: nasm | |
29 | %endif | |
4aa15439 JB |
30 | BuildRequires: pkgconfig |
31 | BuildRequires: python3-Cython | |
32 | BuildRequires: python3-devel >= 1:3.2 | |
8ecdaf04 | 33 | BuildRequires: rpm-build >= 4.6 |
87d3612d | 34 | BuildRequires: rpmbuild(macros) >= 1.752 |
4aa15439 JB |
35 | BuildRequires: sed >= 4.0 |
36 | %{?with_doc:BuildRequires: sphinx-pdg} | |
4aa15439 JB |
37 | BuildRequires: zimg-devel >= 2.5 |
38 | %if %{with sse} | |
39 | Requires: cpuinfo(sse2) | |
40 | %endif | |
41 | Requires: python3-libs >= 1:3.2 | |
42 | Requires: zimg >= 2.5 | |
8ecdaf04 | 43 | Obsoletes: vapoursynth-plugin-imwri < 54-5 |
4aa15439 JB |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | # non-function std::__once_call, std::__once_callable symbols | |
47 | %define skip_post_check_so libvapoursynth-script.so.* | |
48 | ||
49 | %description | |
50 | VapourSynth is an application for video manipulation. Or a plugin. Or | |
51 | a library. It's hard to tell because it has a core library written in | |
52 | C++ and a Python module to allow video scripts to be created. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | VapourSynth to aplikacja do obróbki obrazu. Albo wtyczka. Albo | |
56 | biblioteka. Trudno stwierdzić, ponieważ ma główną bibliotekę napisaną | |
57 | w C++ oraz moduł Pythona pozwalający na tworzenie skryptów do obrazu. | |
58 | ||
4aa15439 JB |
59 | %package devel |
60 | Summary: Header files for VapourSynth libraries | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VapourSynth | |
62 | Group: Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | Requires: python3-devel >= 1:3.2 | |
65 | Requires: zimg-devel >= 2.5 | |
66 | ||
67 | %description devel | |
68 | Header files for VapourSynth libraries. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe bibliotek VapourSynth. | |
72 | ||
73 | %package static | |
74 | Summary: Static VapourSynth libraries | |
75 | Summary(pl.UTF-8): Statyczne biblioteki VapourSynth | |
76 | Group: Development/Libraries | |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | ||
79 | %description static | |
80 | Static VapourSynth libraries. | |
81 | ||
82 | %description static -l pl.UTF-8 | |
83 | Statyczne biblioteki VapourSynth. | |
84 | ||
85 | %package doc | |
86 | Summary: Documentation for VapourSynth library | |
87 | Summary(pl.UTF-8): Dokumentacja do biblioteki VapourSynth | |
88 | Group: Documentation | |
266d43e2 | 89 | BuildArch: noarch |
4aa15439 JB |
90 | |
91 | %description doc | |
92 | Documentation for VapourSynth library. | |
93 | ||
94 | %description doc -l pl.UTF-8 | |
95 | Dokumentacja do biblioteki VapourSynth. | |
96 | ||
97 | %prep | |
98 | %setup -q -n %{name}-R%{version} | |
99 | %patch0 -p1 | |
100 | ||
101 | %if %{without sse} | |
102 | %{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac | |
103 | %endif | |
104 | ||
105 | %build | |
106 | %{__libtoolize} | |
107 | %{__aclocal} | |
108 | %{__autoconf} | |
109 | %{__automake} | |
110 | %configure \ | |
111 | --disable-silent-rules \ | |
4aa15439 JB |
112 | %{!?with_static_libs:--disable-static} \ |
113 | %{!?with_sse:--disable-x86-asm} | |
114 | %{__make} | |
115 | ||
116 | %if %{with doc} | |
117 | %{__make} -C doc html | |
118 | %endif | |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
8ecdaf04 | 122 | install -d $RPM_BUILD_ROOT%{_libdir}/vapoursynth |
4aa15439 JB |
123 | |
124 | %{__make} install \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
127 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la | |
128 | # obsoleted by pkg-config | |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la | |
4aa15439 JB |
130 | |
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
137 | %files | |
138 | %defattr(644,root,root,755) | |
87d3612d | 139 | %doc ChangeLog README.md |
4aa15439 JB |
140 | %attr(755,root,root) %{_bindir}/vspipe |
141 | %attr(755,root,root) %{_libdir}/libvapoursynth.so | |
142 | %attr(755,root,root) %{_libdir}/libvapoursynth-script.so.*.*.* | |
143 | %attr(755,root,root) %ghost %{_libdir}/libvapoursynth-script.so.0 | |
144 | %attr(755,root,root) %{py3_sitedir}/vapoursynth.so | |
145 | %dir %{_libdir}/vapoursynth | |
4aa15439 JB |
146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/libvapoursynth-script.so | |
150 | %{_includedir}/vapoursynth | |
151 | %{_pkgconfigdir}/vapoursynth.pc | |
152 | %{_pkgconfigdir}/vapoursynth-script.pc | |
153 | ||
154 | %if %{with static_libs} | |
155 | %files static | |
156 | %defattr(644,root,root,755) | |
157 | %{_libdir}/libvapoursynth.a | |
158 | %{_libdir}/libvapoursynth-script.a | |
159 | %endif | |
160 | ||
161 | %if %{with doc} | |
162 | %files doc | |
163 | %defattr(644,root,root,755) | |
8ecdaf04 | 164 | %doc doc/_build/html/{_static,api,functions,*.html,*.js} |
4aa15439 | 165 | %endif |