]> git.pld-linux.org Git - packages/gstreamer-editing-services.git/blame - gstreamer-editing-services.spec
- updated to 1.24.0
[packages/gstreamer-editing-services.git] / gstreamer-editing-services.spec
CommitLineData
4c938980
JB
1#
2# Conditional build:
bb34f29b 3%bcond_without apidocs # API documentation
a36d7d7a 4%bcond_without python3 # CPython 3.x binding
4c938980 5%bcond_without static_libs # static library
9506438a 6
2875a142 7%define gstmver 1.0
e3c90ae0
JB
8%define gst_ver 1.24.0
9%define gstpb_ver 1.24.0
10%define gstdevtools_ver 1.24.0
03a607d8
JB
11Summary: GStreamer Editing Services library
12Summary(pl.UTF-8): Biblioteka funkcji edycyjnych GStreamera (GStreamer Editing Services)
13Name: gstreamer-editing-services
e3c90ae0 14Version: 1.24.0
2875a142 15Release: 1
03a607d8
JB
16License: LGPL v2+
17Group: Libraries
bb34f29b 18Source0: https://gstreamer.freedesktop.org/src/gstreamer-editing-services/gst-editing-services-%{version}.tar.xz
e3c90ae0 19# Source0-md5: b5969d5f9b7c46f6b94bfa1d25c41ebf
c5f85166 20URL: https://gstreamer.freedesktop.org/
ade479e0 21BuildRequires: bash-completion-devel >= 1:2.0
e48a6cef 22BuildRequires: flex >= 2.5.31
e3c90ae0 23BuildRequires: glib2-devel >= 1:2.67.4
03a607d8 24BuildRequires: gobject-introspection-devel >= 0.9.6
a0d68f2d
JB
25BuildRequires: gstreamer-devel >= %{gst_ver}
26BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_ver}
e3c90ae0
JB
27# for tests/check only
28#BuildRequires: gstreamer-plugins-bad-devel >= %{gstpb_ver}
2875a142 29BuildRequires: gstreamer-validate-devel >= %{gstdevtools_ver}
bb34f29b 30%{?with_apidocs:BuildRequires: hotdoc >= 0.11.0}
e3c90ae0 31BuildRequires: meson >= 1.1
bb34f29b 32BuildRequires: ninja >= 1.5
8824c481 33BuildRequires: libxml2-devel >= 2.0
4c938980 34BuildRequires: pkgconfig >= 1:0.9.0
a36d7d7a
JB
35%if %{with python3}
36BuildRequires: python3 >= 1:3.4
2875a142
JB
37# for proper overrides dir detection
38BuildRequires: python3-pygobject3
a36d7d7a 39%endif
15bb0bf1 40BuildRequires: rpm-build >= 4.6
a36d7d7a 41BuildRequires: rpm-pythonprov
bb34f29b 42BuildRequires: rpmbuild(macros) >= 1.736
8824c481
JB
43BuildRequires: tar >= 1:1.22
44BuildRequires: xz
e3c90ae0 45Requires: glib2 >= 1:2.67.4
a0d68f2d
JB
46Requires: gstreamer >= %{gst_ver}
47Requires: gstreamer-plugins-base >= %{gstpb_ver}
2875a142 48Requires: gstreamer-validate >= %{gstdevtools_ver}
9ade4937 49Obsoletes: gstreamer-gnonlin < 1.6.0
03a607d8
JB
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
500412a1
JB
52# must be consistent with python-pygobject3.spec because of "..overrides" and "..importer" imports
53%define py3_gi_overridesdir %{py3_sitedir}/gi/overrides
54
03a607d8
JB
55%description
56GStreamer Editing Services is a high-level library for facilitating
57the creation of audio/video non-linear editors.
58
59%description -l pl.UTF-8
60GStreamer Editing Services to wysokopoziomowa biblioteka ułatwiająca
61tworzenie nieliniowych edytorów audio/video.
62
63%package devel
64Summary: Header files for GStreamer Editing Services library
65Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GStreamer Editing Services
66Group: Development/Libraries
67Requires: %{name} = %{version}-%{release}
e3c90ae0 68Requires: glib2-devel >= 1:2.67.4
a0d68f2d
JB
69Requires: gstreamer-devel >= %{gst_ver}
70Requires: gstreamer-plugins-base-devel >= %{gstpb_ver}
03a607d8
JB
71
72%description devel
73Header files for GStreamer Editing Services library.
74
75%description devel -l pl.UTF-8
76Pliki nagłówkowe biblioteki GStreamer Editing Services.
77
78%package static
79Summary: Static GStreamer Editing Services library
80Summary(pl.UTF-8): Statyczba biblioteka GStreamer Editing Services
81Group: Development/Libraries
82Requires: %{name}-devel = %{version}-%{release}
83
84%description static
85Static GStreamer Editing Services library.
86
87%description static -l pl.UTF-8
88Statyczba biblioteka GStreamer Editing Services.
89
90%package apidocs
91Summary: API documentation for GStreamer Editing Services library
92Summary(pl.UTF-8): Dokumentacja API biblioteki GStreamer Editing Services
93Group: Documentation
9ade4937 94Obsoletes: gstreamer-gnonlin-apidocs < 1.6.0
9506438a 95BuildArch: noarch
03a607d8
JB
96
97%description apidocs
98API documentation for GStreamer Editing Services library.
99
100%description apidocs -l pl.UTF-8
101Dokumentacja API biblioteki GStreamer Editing Services.
102
a36d7d7a
JB
103%package -n python3-gstreamer-editing-services
104Summary: Python GI binding for GStreamer Editing Services
105Summary(pl.UTF-8): Wiązanie Pythona GI do usług GStreamer Editing Services
106Group: Libraries/Python
107Requires: %{name} = %{version}-%{release}
108Requires: python3-pygobject3 >= 3.0
bb34f29b 109Obsoletes: python-gstreamer-editing-services < 1.18
a36d7d7a
JB
110
111%description -n python3-gstreamer-editing-services
112Python GI binding for GStreamer Editing Services.
113
114%description -n python3-gstreamer-editing-services -l pl.UTF-8
115Wiązanie Pythona GI do usług GStreamer Editing Services.
116
4c938980
JB
117%package -n bash-completion-gstreamer-editing-services
118Summary: Bash completion for GStreamer Editing Services utilities
119Summary(pl.UTF-8): Bashowe uzupełnianie paramterów narzędzi GStreamer Editing Services
120Group: Applications/Shells
121Requires: %{name} = %{version}-%{release}
ade479e0 122Requires: bash-completion >= 1:2.0
a36d7d7a 123BuildArch: noarch
4c938980
JB
124
125%description -n bash-completion-gstreamer-editing-services
126Bash completion for GStreamer Editing Services utilities (ges-launch).
127
128%description -n bash-completion-gstreamer-editing-services -l pl.UTF-8
129Bashowe uzupełnianie paramterów narzędzi GStreamer Editing Services
130(ges-launch).
131
03a607d8 132%prep
bb34f29b 133%setup -q -n gst-editing-services-%{version}
03a607d8
JB
134
135%build
bb34f29b 136%meson build \
500412a1
JB
137 %{!?with_apidocs:-Ddoc=false} \
138 -Dpygi-overrides-dir=%{py3_sitedir}/gi/overrides
bb34f29b
JB
139
140%ninja_build -C build
141
142%if %{with apidocs}
143cd build/docs
e3c90ae0
JB
144for component_dir in gst-editing-services-doc plugin-ges plugin-nle ; do
145 LC_ALL=C.UTF-8 hotdoc run --conf-file ${component_dir}.json
bb34f29b
JB
146done
147%endif
03a607d8
JB
148
149%install
150rm -rf $RPM_BUILD_ROOT
151
bb34f29b 152%ninja_install -C build
03a607d8 153
7ef37517 154%if %{with static_libs}
a0d68f2d 155%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.a
bb34f29b 156%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/pkgconfig
7ef37517 157%endif
4c938980 158
bb34f29b
JB
159%if %{with python3}
160%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
161%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
c5f85166 162%endif
8824c481 163
bb34f29b
JB
164%if %{with apidocs}
165install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
e3c90ae0 166cp -pr build/docs/{gst-editing-services-doc,plugin-ges,plugin-nle} $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
a36d7d7a
JB
167%endif
168
03a607d8
JB
169%clean
170rm -rf $RPM_BUILD_ROOT
171
172%post -p /sbin/ldconfig
173%postun -p /sbin/ldconfig
174
175%files
176%defattr(644,root,root,755)
177%doc AUTHORS ChangeLog NEWS README RELEASE
8824c481
JB
178%attr(755,root,root) %{_bindir}/ges-launch-1.0
179%attr(755,root,root) %{_libdir}/libges-1.0.so.*.*.*
180%attr(755,root,root) %ghost %{_libdir}/libges-1.0.so.0
181%{_libdir}/girepository-1.0/GES-1.0.typelib
a0d68f2d 182%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstges.so
4c938980 183%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstnle.so
bb34f29b 184%if %{with python3}
4c938980 185%{_libdir}/gst-validate-launcher/python/launcher/apps/geslaunch.py*
c5f85166 186%endif
4c938980 187%{_datadir}/gstreamer-1.0/validate/scenarios/ges-edit-clip-while-paused.scenario
e48a6cef 188%{_mandir}/man1/ges-launch-1.0.1*
03a607d8
JB
189
190%files devel
191%defattr(644,root,root,755)
8824c481
JB
192%attr(755,root,root) %{_libdir}/libges-1.0.so
193%{_includedir}/gstreamer-1.0/ges
194%{_datadir}/gir-1.0/GES-1.0.gir
195%{_pkgconfigdir}/gst-editing-services-1.0.pc
03a607d8 196
4c938980 197%if %{with static_libs}
03a607d8
JB
198%files static
199%defattr(644,root,root,755)
8824c481 200%{_libdir}/libges-1.0.a
4c938980 201%endif
03a607d8 202
bb34f29b 203%if %{with apidocs}
03a607d8
JB
204%files apidocs
205%defattr(644,root,root,755)
bb34f29b 206%{_docdir}/gstreamer-%{gstmver}/gst-editing-services-doc
e3c90ae0
JB
207%{_docdir}/gstreamer-%{gstmver}/plugin-ges
208%{_docdir}/gstreamer-%{gstmver}/plugin-nle
a36d7d7a
JB
209%endif
210
211%if %{with python3}
212%files -n python3-gstreamer-editing-services
213%defattr(644,root,root,755)
500412a1
JB
214%{py3_gi_overridesdir}/GES.py
215%{py3_gi_overridesdir}/__pycache__/GES.cpython-*.py[co]
c5f85166
JB
216%endif
217
4c938980
JB
218%files -n bash-completion-gstreamer-editing-services
219%defattr(644,root,root,755)
220%{bash_compdir}/ges-launch-1.0
This page took 0.320132 seconds and 4 git commands to generate.