Build gstreamer1 and libpeas bindings

epel9
Kalev Lember 8 years ago
parent 8f9e3a613a
commit ca9cab9e25

@ -19,6 +19,7 @@ BuildRequires: ldc, ldc-phobos-devel, ldc-druntime-devel, gtk3-devel, libcurl-d
BuildRequires: vte291-devel BuildRequires: vte291-devel
# Explicit require since gtkd use dlopen internally so rpm can't detect this. # Explicit require since gtkd use dlopen internally so rpm can't detect this.
Requires: atk, gtk3, gdk-pixbuf2, pango, cairo, gdk-pixbuf2, libcurl Requires: atk, gtk3, gdk-pixbuf2, pango, cairo, gdk-pixbuf2, libcurl
Requires: libpeas
Requires: vte291 Requires: vte291
Requires: mesa-libGL, mesa-libGLU, gtksourceview3 Requires: mesa-libGL, mesa-libGLU, gtksourceview3
Requires: gstreamer1, gstreamer1-plugins-base, xz Requires: gstreamer1, gstreamer1-plugins-base, xz
@ -64,16 +65,29 @@ Active l'autocompletion pour pour la bibliothèque gtkd dans geany (IDE)
mkdir geany_config mkdir geany_config
%build %build
make %{?_smp_mflags} -f ./GNUmakefile shared-libs shared-vte DC=ldc2 CC=gcc libdir=%{?_lib} DCFLAGS="%{_d_optflags}" make %{?_smp_mflags} DC=ldc2 libdir=%{?_lib} DCFLAGS="%{_d_optflags}" \
shared-gstreamer \
shared-libs \
shared-peas \
shared-vte
# generate geany tags # generate geany tags
geany -c geany_config -g gtkd.d.tags $(find src* -name "*.d") geany -c geany_config -g gtkd.d.tags $(find src* -name "*.d")
# Need to be update to gtk3
%check %check
make %{?_smp_mflags} DC=ldc2 test make %{?_smp_mflags} DC=ldc2 test
%install %install
make %{?_smp_mflags} install-shared install-shared-vte install-headers install-headers-vte DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{?_lib} datadir=%{_datadir} # Create missing directory
mkdir -p %{buildroot}%{_datadir}/pkgconfig
make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{?_lib} datadir=%{_datadir} \
install-shared-gstreamer install-headers-gstreamer \
install-shared install-headers \
install-shared-peas install-headers-peas \
install-shared-vte install-headers-vte
# Fix up peasd-3.pc install path
mv %{buildroot}%{_datadir}/pkgconfig/peasd-3.pc %{buildroot}%{_libdir}/pkgconfig/
# geany tags # geany tags
mkdir -p %{buildroot}/%{_datadir}/geany/tags/ mkdir -p %{buildroot}/%{_datadir}/geany/tags/
@ -86,24 +100,32 @@ install -m0644 gtkd.d.tags %{buildroot}/%{_datadir}/geany/tags/
%files %files
%license COPYING %license COPYING
%doc AUTHORS README %doc AUTHORS README
%{_libdir}/libgstreamerd-3.so.%{gtkd_major}
%{_libdir}/libgstreamerd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%{_libdir}/libgtkd-3.so.%{gtkd_major} %{_libdir}/libgtkd-3.so.%{gtkd_major}
%{_libdir}/libgtkd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libgtkd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%{_libdir}/libgtkdgl-3.so.%{gtkd_major} %{_libdir}/libgtkdgl-3.so.%{gtkd_major}
%{_libdir}/libgtkdgl-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libgtkdgl-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%{_libdir}/libgtkdsv-3.so.%{gtkd_major} %{_libdir}/libgtkdsv-3.so.%{gtkd_major}
%{_libdir}/libgtkdsv-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libgtkdsv-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%{_libdir}/libpeasd-3.so.%{gtkd_major}
%{_libdir}/libpeasd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%{_libdir}/libvted-3.so.%{gtkd_major} %{_libdir}/libvted-3.so.%{gtkd_major}
%{_libdir}/libvted-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libvted-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump}
%files devel %files devel
%{_d_includedir}/%{name}-3 %{_d_includedir}/%{name}-3
%{_libdir}/libgstreamerd-3.so
%{_libdir}/libgtkd-3.so %{_libdir}/libgtkd-3.so
%{_libdir}/libgtkdgl-3.so %{_libdir}/libgtkdgl-3.so
%{_libdir}/libgtkdsv-3.so %{_libdir}/libgtkdsv-3.so
%{_libdir}/libpeasd-3.so
%{_libdir}/libvted-3.so %{_libdir}/libvted-3.so
%{_libdir}/pkgconfig/gstreamerd-3.pc
%{_libdir}/pkgconfig/gtkd-3.pc %{_libdir}/pkgconfig/gtkd-3.pc
%{_libdir}/pkgconfig/gtkdgl-3.pc %{_libdir}/pkgconfig/gtkdgl-3.pc
%{_libdir}/pkgconfig/gtkdsv-3.pc %{_libdir}/pkgconfig/gtkdsv-3.pc
%{_libdir}/pkgconfig/peasd-3.pc
%{_libdir}/pkgconfig/vted-3.pc %{_libdir}/pkgconfig/vted-3.pc
%files geany-tags %files geany-tags
@ -112,6 +134,7 @@ install -m0644 gtkd.d.tags %{buildroot}/%{_datadir}/geany/tags/
%changelog %changelog
* Thu Dec 29 2016 Kalev Lember <klember@redhat.com> - 3.4.0-1 * Thu Dec 29 2016 Kalev Lember <klember@redhat.com> - 3.4.0-1
- Update to 3.4.0 - Update to 3.4.0
- Build gstreamer1 and libpeas bindings
* Wed Nov 30 2016 Kalev Lember <klember@redhat.com> - 3.3.1-4 * Wed Nov 30 2016 Kalev Lember <klember@redhat.com> - 3.3.1-4
- Rebuilt for new ldc compiler - Rebuilt for new ldc compiler

Loading…
Cancel
Save