1 Summary: Library for creating and editing videos
7 Source0: https://launchpad.net/libopenshot/0.1/%{version}/+download/%{name}-%{version}.tar.gz
8 # Source0-md5: 842551733c3bd82a7ffd9eaeea1c2b1d
9 Patch0: imagemagick7.patch
10 Group: Development/Libraries
11 URL: http://www.openshot.org/
12 BuildRequires: ImageMagick-c++-devel
13 BuildRequires: Qt5Core-devel
14 BuildRequires: Qt5Multimedia-devel
15 BuildRequires: Qt5MultimediaWidgets-devel
17 BuildRequires: cppzmq-devel
18 BuildRequires: doxygen
19 BuildRequires: ffmpeg-devel
20 BuildRequires: ffmpeg-libs
21 BuildRequires: libopenshot-audio-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: python3-devel
25 BuildRequires: unittest-cpp-devel
26 BuildRequires: zeromq-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define skip_post_check_so libopenshot.so.*
32 OpenShot Library (libopenshot) is an open-source project dedicated to
33 delivering high quality video editing, animation, and playback
34 solutions to the world. For more information visit
35 <http://www.openshot.org/>.
38 Summary: Development files for %{name}
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 The %{name}-devel package contains libraries and header files for
44 developing applications that use %{name}.
46 %package -n python3-%{name}
47 Summary: Python bindings for %{name}
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
51 %description -n python3-%{name}
52 The python-%{name} package contains python bindings for applications
59 sed -i -e 's#${_REL_PYTHON_MODULE_PATH}#%{py3_sitedir}#g' src/bindings/python/CMakeLists.txt
68 rm -rf $RPM_BUILD_ROOT
70 %{__make} -C build install \
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
76 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_libdir}/libopenshot.so.*.*
82 %attr(755,root,root) %ghost %{_libdir}/libopenshot.so.11
85 %defattr(644,root,root,755)
86 %{_includedir}/libopenshot
87 %attr(755,root,root) %{_libdir}/libopenshot.so
89 %files -n python3-%{name}
90 %defattr(644,root,root,755)
91 %{py3_sitedir}/openshot.py
92 %attr(755,root,root) %{py3_sitedir}/_openshot.so