]>
Commit | Line | Data |
---|---|---|
1bbada96 AM |
1 | Summary: Library for creating and editing videos |
2 | Name: libopenshot | |
c2d45ab5 | 3 | Version: 0.1.9 |
8a3cc938 | 4 | Release: 3 |
1bbada96 AM |
5 | License: LGPL-3.0+ |
6 | Group: Libraries | |
f2083487 | 7 | Source0: https://github.com/OpenShot/libopenshot/archive/v%{version}.tar.gz |
c2d45ab5 | 8 | # Source0-md5: 74012e7260c91c3413b45401c46bfcc0 |
9d4c4944 | 9 | Patch0: imagemagick7.patch |
c2d45ab5 | 10 | Patch1: %{name}-ffmpeg.patch |
1bbada96 | 11 | Group: Development/Libraries |
1eccc80b | 12 | URL: http://www.openshot.org/ |
1bbada96 AM |
13 | BuildRequires: ImageMagick-c++-devel |
14 | BuildRequires: Qt5Core-devel | |
15 | BuildRequires: Qt5Multimedia-devel | |
16 | BuildRequires: Qt5MultimediaWidgets-devel | |
17 | BuildRequires: cmake | |
18 | BuildRequires: cppzmq-devel | |
19 | BuildRequires: doxygen | |
20 | BuildRequires: ffmpeg-devel | |
21 | BuildRequires: ffmpeg-libs | |
22 | BuildRequires: libopenshot-audio-devel | |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: python3-devel | |
25 | BuildRequires: swig | |
26 | BuildRequires: unittest-cpp-devel | |
27 | BuildRequires: zeromq-devel | |
1eccc80b | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1bbada96 | 29 | |
5e00ae6e JR |
30 | %define skip_post_check_so libopenshot.so.* |
31 | ||
1bbada96 AM |
32 | %description |
33 | OpenShot Library (libopenshot) is an open-source project dedicated to | |
34 | delivering high quality video editing, animation, and playback | |
35 | solutions to the world. For more information visit | |
36 | <http://www.openshot.org/>. | |
37 | ||
1eccc80b | 38 | %package devel |
1bbada96 AM |
39 | Summary: Development files for %{name} |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
1eccc80b | 43 | %description devel |
1bbada96 AM |
44 | The %{name}-devel package contains libraries and header files for |
45 | developing applications that use %{name}. | |
46 | ||
1eccc80b | 47 | %package -n python3-%{name} |
1bbada96 AM |
48 | Summary: Python bindings for %{name} |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
1eccc80b | 52 | %description -n python3-%{name} |
1bbada96 AM |
53 | The python-%{name} package contains python bindings for applications |
54 | that use %{name}. | |
55 | ||
56 | %prep | |
f2083487 | 57 | %setup -q |
9d4c4944 | 58 | %patch0 -p1 |
c2d45ab5 | 59 | %patch1 -p1 |
1bbada96 | 60 | |
1bbada96 AM |
61 | sed -i -e 's#${_REL_PYTHON_MODULE_PATH}#%{py3_sitedir}#g' src/bindings/python/CMakeLists.txt |
62 | ||
1eccc80b ER |
63 | %build |
64 | install -d build | |
1bbada96 | 65 | cd build |
f2083487 AM |
66 | %cmake .. \ |
67 | -DENABLE_RUBY=NO | |
1bbada96 AM |
68 | %{__make} |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} -C build install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
1eccc80b ER |
79 | %post -p /sbin/ldconfig |
80 | %postun -p /sbin/ldconfig | |
1bbada96 AM |
81 | |
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libopenshot.so.*.* | |
c2d45ab5 | 85 | %attr(755,root,root) %ghost %{_libdir}/libopenshot.so.14 |
1bbada96 AM |
86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_includedir}/libopenshot | |
90 | %attr(755,root,root) %{_libdir}/libopenshot.so | |
91 | ||
92 | %files -n python3-%{name} | |
93 | %defattr(644,root,root,755) | |
94 | %{py3_sitedir}/openshot.py | |
95 | %attr(755,root,root) %{py3_sitedir}/_openshot.so |